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