摘要: 写一个公用的组件 这样在其它页面也可以直接复用 组件m-header.vue <template> <div class="top-page" :class="{'top-bg': hasBg}" :style="{height:1.28+statusBarHeight+'rem',paddingT 阅读全文
posted @ 2020-06-18 13:45 无所谓。。。 阅读(1263) 评论(0) 推荐(0) 编辑
摘要: 在入口文件main.js中引入 // userAgent client const userAgent = navigator.appVersion const userAgentL = userAgent.toLowerCase() Vue.prototype.$client = Vue.clie 阅读全文
posted @ 2020-06-17 16:44 无所谓。。。 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: 安装命令 npm i --S vconsole 然后再入口文件main.js中引入 let VConsole = require('../node_modules/vconsole/dist/vconsole.min');//路径根据项目自己找 let vConsole = new VConsole 阅读全文
posted @ 2020-06-17 16:22 无所谓。。。 阅读(3001) 评论(0) 推荐(0) 编辑
摘要: <template> <div> {{ phone | phoneLize }} </div> </template> <script> export default { name: 'index', data() { return { phone: '18790888888' }; }, // s 阅读全文
posted @ 2020-06-17 15:35 无所谓。。。 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 短信验证码60s倒计时 <template> <div> <button v-if="show" @click="getCode">获取验证码</button> <button v-if="!show">{{ times }}s</button> </div> </template> <script 阅读全文
posted @ 2020-06-17 10:57 无所谓。。。 阅读(25455) 评论(0) 推荐(2) 编辑
摘要: 在APP中 ios手机 用户打开默认的自动识别密码,会出现调起键盘输入密码时 键盘一直闪烁的bug 解决方法:1用户在ios系统的设置中 自己关闭自动识别密码 (这种问题建议还是开发解决吧,用户体验不好,,,) 第二种解决方法: 下面以vant组件使用为例 这是一个登陆页 一开始这样写就 用户打开默 阅读全文
posted @ 2020-06-17 10:47 无所谓。。。 阅读(2171) 评论(1) 推荐(0) 编辑
摘要: <template> <div> {{ data }} </div> </template> <script> export default { name: 'index', data() { return { data:'' }; }, created() { this.getRandomInt( 阅读全文
posted @ 2020-06-17 10:33 无所谓。。。 阅读(11229) 评论(0) 推荐(0) 编辑
摘要: 网址:https://help.aliyun.com/document_detail/121898.html?spm=a2c4g.11186623.6.559.c58f2430eBmuaf 可直接使用 <template> <div> <div id="__nc" style="margin-lef 阅读全文
posted @ 2020-06-17 10:20 无所谓。。。 阅读(2264) 评论(0) 推荐(0) 编辑
摘要: 转载自 https://juejin.im/post/5e0cba76f265da5d4e27480c 从零开发一套完整的vue项目开发环境 Vue社区 1月3日 关注 Vue社区,回复“加群” 加入我们一起学习,天天进步 汤小梦 juejin.im/post/5e0cba76f265da5d4e2 阅读全文
posted @ 2020-04-13 14:29 无所谓。。。 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 项目在中修改第三方组件样式,但由于 scoped 属性的样式隔离,可能需要去除 scoped 或是另起一个 style 。这些做法都会带来副作用(组件样式污染、不够优雅),样式穿透在css预处理器中使用才生效 我们可以使用 >>> 或 /deep/ 解决这一问题 <style scoped> 外层 阅读全文
posted @ 2020-04-13 13:39 无所谓。。。 阅读(1210) 评论(0) 推荐(0) 编辑