会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Miss--Yang
博客园
首页
新随笔
联系
管理
订阅
1
2
3
4
下一页
2020年6月18日
vue中头部写成公用组件
摘要: 写一个公用的组件 这样在其它页面也可以直接复用 组件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 无所谓。。。
阅读(1286)
评论(0)
推荐(0)
2020年6月17日
vue中判断APP 为ios系统 安卓系统 浏览器判断 微信 qq 支付宝
摘要: 在入口文件main.js中引入 // userAgent client const userAgent = navigator.appVersion const userAgentL = userAgent.toLowerCase() Vue.prototype.$client = Vue.clie
阅读全文
posted @ 2020-06-17 16:44 无所谓。。。
阅读(1463)
评论(0)
推荐(0)
vconsole调试工具使用
摘要: 安装命令 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 无所谓。。。
阅读(3148)
评论(0)
推荐(0)
vue 电话号中间四位****代替
摘要: <template> <div> {{ phone | phoneLize }} </div> </template> <script> export default { name: 'index', data() { return { phone: '18790888888' }; }, // s
阅读全文
posted @ 2020-06-17 15:35 无所谓。。。
阅读(727)
评论(0)
推荐(0)
vue中使用倒计时
摘要: 短信验证码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 无所谓。。。
阅读(25546)
评论(0)
推荐(2)
在APP中ios输入账号和密码时键盘闪烁
摘要: 在APP中 ios手机 用户打开默认的自动识别密码,会出现调起键盘输入密码时 键盘一直闪烁的bug 解决方法:1用户在ios系统的设置中 自己关闭自动识别密码 (这种问题建议还是开发解决吧,用户体验不好,,,) 第二种解决方法: 下面以vant组件使用为例 这是一个登陆页 一开始这样写就 用户打开默
阅读全文
posted @ 2020-06-17 10:47 无所谓。。。
阅读(2544)
评论(1)
推荐(0)
vue中返回随机数
摘要: <template> <div> {{ data }} </div> </template> <script> export default { name: 'index', data() { return { data:'' }; }, created() { this.getRandomInt(
阅读全文
posted @ 2020-06-17 10:33 无所谓。。。
阅读(11442)
评论(0)
推荐(0)
vue 阿里云的滑动验证
摘要: 网址: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 无所谓。。。
阅读(2434)
评论(0)
推荐(0)
2020年4月13日
从零开发一套完整的vue项目开发环境
摘要: 转载自 https://juejin.im/post/5e0cba76f265da5d4e27480c 从零开发一套完整的vue项目开发环境 Vue社区 1月3日 关注 Vue社区,回复“加群” 加入我们一起学习,天天进步 汤小梦 juejin.im/post/5e0cba76f265da5d4e2
阅读全文
posted @ 2020-04-13 14:29 无所谓。。。
阅读(674)
评论(0)
推荐(0)
vue中修改第三方组件中的样式
摘要: 项目在中修改第三方组件样式,但由于 scoped 属性的样式隔离,可能需要去除 scoped 或是另起一个 style 。这些做法都会带来副作用(组件样式污染、不够优雅),样式穿透在css预处理器中使用才生效 我们可以使用 >>> 或 /deep/ 解决这一问题 <style scoped> 外层
阅读全文
posted @ 2020-04-13 13:39 无所谓。。。
阅读(1224)
评论(0)
推荐(0)
1
2
3
4
下一页
公告