摘要: 1.运用 setInterval()定时器计算秒数 <!DOCTYPE html> <html> <head> <title>JS实现计数器</title> <meta http-equiv="content-type" content="text/html; charset=gbk"> <scri 阅读全文
posted @ 2020-12-24 09:08 倔强的烤马铃薯 阅读(16) 评论(0) 推荐(0)
摘要: 1.展示界面 <div style='font-size:50px;color:red'>{{hour}}:{{branch}}:{{second}}</div> <el-button type="primary" icon="el-icon-video-pause" @click='start'> 阅读全文
posted @ 2020-12-21 19:19 倔强的烤马铃薯 阅读(25) 评论(0) 推荐(0)
摘要: 1.直接贴代码 <template> <div> <el-table :data="tableData" border style="width: 100%" @selection-change="selectAll" ref="multipleTables"> <el-table-column m 阅读全文
posted @ 2020-12-10 18:23 倔强的烤马铃薯 阅读(24) 评论(0) 推荐(0)
摘要: 1.安装依赖 npm install echarts -S 2.引入main.js import echarts from 'echarts' Vue.prototype.$echarts = echarts 3.创建一个vue页面 <template> <DIV> <el-card id="mai 阅读全文
posted @ 2020-11-27 14:38 倔强的烤马铃薯 阅读(30) 评论(0) 推荐(0)
摘要: 1.引入viewerjs npm install viewerjs 2.在main.js中配置 import Viewer from 'v-viewer' import 'viewerjs/dist/viewer.css' Vue.use(Viewer,{ defaultOptions: { zIn 阅读全文
posted @ 2020-11-24 16:44 倔强的烤马铃薯 阅读(30) 评论(0) 推荐(0)
摘要: 1.大写转化为小写 .toLowerCase() var str='AbC' var str1=str.toLowerCase() 2.小写转化为大写 .toUpperCase() var str='AbC' var str1=str.toUpperCase() 阅读全文
posted @ 2020-11-20 11:36 倔强的烤马铃薯 阅读(15) 评论(0) 推荐(0)
摘要: 1.html代码 <el-upload class="avatar-uploader" :action="url" 请求的地址 :headers='myheaders' 请求头 :on-preview="handlePictureCardPreview" 点击文件列表中已上传的文件时的钩子 :on- 阅读全文
posted @ 2020-11-11 09:24 倔强的烤马铃薯 阅读(436) 评论(0) 推荐(0)
摘要: <div @click='event'>单击事件</div> <div @dblclick='event'>双击事件</div> <div @mousedown='event'>按下事件</div> <div @mouseup='event'>抬起事件</div> <div @mousemove=' 阅读全文
posted @ 2020-11-10 10:51 倔强的烤马铃薯 阅读(10) 评论(0) 推荐(0)
摘要: vue无缝滚动插件地址:https://chenxuan1993.gitee.io/component-document/index_prod#/component/svg-bar-default 1.安装插件 npm install vue-seamless-scroll --save 2.引入m 阅读全文
posted @ 2020-11-09 09:09 倔强的烤马铃薯 阅读(19) 评论(0) 推荐(0)
摘要: 小程序自定义搜索框固定在头部。 代码示例: <view class="inputtop"> <input type="text" placeholder="输入内容进行检索" class='input' placeholder-class="placeholder" bindblur="onBind 阅读全文
posted @ 2020-11-08 15:19 倔强的烤马铃薯 阅读(65) 评论(0) 推荐(0)