摘要: <template> <div ref="line" class="tab-line"></div> </template> <script> this.$refs.line.style.transform = "translateX("+width*index+"px)"; //width是导航栏 阅读全文
posted @ 2020-11-17 13:38 kilig-wu 阅读(1380) 评论(0) 推荐(0) 编辑
摘要: var viewValue = "2014-04-04 23:33:34" // 在谷歌上可以正确解析,而在ie与edge上缺解析不了 f = new Date(viewValue).getTime(); console.log(f); //解决方式 f = new Date(Date.parse( 阅读全文
posted @ 2020-11-17 13:35 kilig-wu 阅读(154) 评论(0) 推荐(0) 编辑
摘要: <template> <el-date-picker lable="开始日期" v-model="bb" type="daterange" placeholder="选择日期" style="width: 100%;" format="yyyy-MM-dd " value-format="yyyy- 阅读全文
posted @ 2020-11-17 13:29 kilig-wu 阅读(3200) 评论(0) 推荐(0) 编辑
摘要: html: `<button list-event="export_list">导出</button>` js代码 /*A.call(B,x,y) 1、改变函数A的this指向,使之指向B; 2、 把A函数放到B中运行,x和y是A函数的参数。*/ var car_data = { init : fu 阅读全文
posted @ 2020-11-17 13:27 kilig-wu 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 1、get ①、a链接的href属性 ②、window.location.href=url/location.href=url 2、post axios拦截处理 service.interceptors.response.use((response) => { return response //不 阅读全文
posted @ 2020-11-17 12:44 kilig-wu 阅读(486) 评论(0) 推荐(0) 编辑