摘要: <template> <div class="main" ref="main"> <div class="left"></div> <div class="pull" >⋮</div> <div class="right"></div> </div> </template> <script> imp 阅读全文
posted @ 2021-06-28 13:41 代码搬运工9527 阅读(509) 评论(0) 推荐(0) 编辑
摘要: html使用组件: <div class="cell photo" @click.stop="imagesPreview(img.url)" :style=" 'background-image: url('+ img.url +') " ></div> <van-image-preview v-m 阅读全文
posted @ 2020-06-08 15:53 代码搬运工9527 阅读(1697) 评论(0) 推荐(0) 编辑
摘要: 页面: <input v-model="xxx" v-focus/> 方法: directives: { // 注册一个局部的自定义指令 v-focus focus: { // 指令的定义 inserted: function(el, validateStr) { el.addEventListen 阅读全文
posted @ 2020-06-02 13:28 代码搬运工9527 阅读(3407) 评论(0) 推荐(0) 编辑
摘要: let peitime = "2018-10-17 17:41:41";peitime = peitime.substr(0, 16);peitime = peitime.replace(/-/g, "/");peitime = Date.parse(peitime);if (peitime / 1 阅读全文
posted @ 2019-10-17 17:45 代码搬运工9527 阅读(296) 评论(0) 推荐(0) 编辑
摘要: //主页 //组件 阅读全文
posted @ 2019-10-17 17:34 代码搬运工9527 阅读(961) 评论(0) 推荐(0) 编辑
摘要: StarPhone(phone) { var str = String(phone); var len = str.length; if (len >= 7) { var reg = str.slice(-7, -3); return str.replace(reg, "****"); } else 阅读全文
posted @ 2019-08-14 10:35 代码搬运工9527 阅读(882) 评论(0) 推荐(0) 编辑
摘要: 1. 你能描述一下渐进增强和优雅降级之间的不同吗? 答: 定义: 优雅降级(graceful degradation): 一开始就构建站点的完整功能,然后针对浏览器测试和修复 渐进增强(progressive enhancement): 一开始只构建站点的最少特性,然后不断针对各浏览器追加功能。 都 阅读全文
posted @ 2019-08-02 10:42 代码搬运工9527 阅读(480) 评论(0) 推荐(0) 编辑
摘要: (用于画table时上下两页分别存在table的一部分) table上加一新空div <div style="page-break-after:always"></div> 阅读全文
posted @ 2019-07-24 11:28 代码搬运工9527 阅读(3880) 评论(0) 推荐(0) 编辑
摘要: 在router/index.js文件中 const router = new VueRouter({ scrollBehavior(to,from,saveTop){ if(saveTop){ return saveTop; }else{ return {x:0,y:0} } }, }) 阅读全文
posted @ 2019-07-18 13:36 代码搬运工9527 阅读(2480) 评论(0) 推荐(0) 编辑
摘要: <input type="text" @blur.prevent="inputLoseFocus"> 阅读全文
posted @ 2019-06-17 20:28 代码搬运工9527 阅读(530) 评论(0) 推荐(0) 编辑