摘要: 实现效果 1.实现代码 <template> <div class="test"> <ul :style="{ width: config.width + 'px', height: config.height + 'px' }"> <li><span v-if="num >= 10"></span 阅读全文
posted @ 2021-08-24 10:28 赤川 阅读(1307) 评论(2) 推荐(2) 编辑
摘要: 1.stopBtnRepeat.js // 阻止按钮重复提交 import Vue from 'vue' Vue.directive("stopBtnRepeat", { bind: function (el, binding) { function clickHandler(e) { if (el 阅读全文
posted @ 2021-03-26 13:52 赤川 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 1.实现的效果 2.template <template> <div class="entrance"> <div class="header"> <h2>BFF赤川什么什么系统入口</h2> </div> <div class="content"> <div class="box" :class= 阅读全文
posted @ 2021-03-06 17:03 赤川 阅读(3142) 评论(1) 推荐(1) 编辑
摘要: 1.安装stompjs、sockjs-client npm install sockjs-client --savenpm install stompjs --save 2.建立连接 initWebSocket() { const socket = new SockJS(this.socketUrl 阅读全文
posted @ 2020-12-21 17:02 赤川 阅读(1795) 评论(0) 推荐(2) 编辑
摘要: 效果 1.html 在盒子里面增加四个span标签 <div class="login_form"> <span class="light"></span><span class="light"></span><span class="light"></span><span class="light 阅读全文
posted @ 2020-12-07 14:23 赤川 阅读(5323) 评论(5) 推荐(2) 编辑
摘要: 1.date.js /* ### getCurrentDate() 日期格式 > 2020-11-26 星期四 11:03:21 ### */ export function getCurrentDate() { var myDate = new Date(); var year = myDate. 阅读全文
posted @ 2020-11-26 11:13 赤川 阅读(1044) 评论(0) 推荐(1) 编辑
摘要: 实现效果 实现步骤 1.html结构 <div class="upload"> <p class="upload_title">图片 </p> <div class="upload_r"> <a class="mui-icon-right-nav mui-pull-right a1"> <span 阅读全文
posted @ 2020-09-27 17:34 赤川 阅读(1260) 评论(2) 推荐(1) 编辑
摘要: 1.实现效果 2.步骤原理 1.样式:thead头部固定,tbody滚动,动态给tbody加动画效果 2.数据:计时器更改数据变化,每次数组尾部添加第一个元素 this.tableData.push(this.tableData[0]),再去除第一个元素 this.tableData.shift() 阅读全文
posted @ 2020-08-20 09:41 赤川 阅读(8510) 评论(1) 推荐(3) 编辑
摘要: 一、高亮某一行 1.table属性 rowClassName 1 <a-table 2 class="alerm" 3 size="small" 4 ref="table" 5 rowKey="id" 6 :rowSelection="{selectedRowKeys: selectedRowKey 阅读全文
posted @ 2020-08-10 15:46 赤川 阅读(5390) 评论(0) 推荐(3) 编辑
摘要: 1.引入ht.js 将ht的lib放在public文件夹中 2.在index.html中引入 3. .eslintrc文件里配置 1 globals: { 2 ht: true 3 } 4.再执行命令yarn global add eslint 5.简单测试使用 <div class="test_h 阅读全文
posted @ 2020-08-06 14:57 赤川 阅读(738) 评论(0) 推荐(2) 编辑