随笔 - 193  文章 - 0  评论 - 8  阅读 - 32万 
11 2021 档案
vue 移动端弹窗后禁止页面滚动 @touchmove.prevent
摘要:可以在遮罩层中添加 @touchmove.prevent 就可以实现禁止页面滚动 注意 弹窗里面有滚动条的也是无法滚动的 具体使用 父标签上添加 @touchmove.prevent <div @touchmove.prevent> </div> ps:转载于https://www.cnblogs. 阅读全文
posted @ 2021-11-29 09:43 仔仔爱学习 阅读(1876) 评论(0) 推荐(0) 编辑
vue新建项目
摘要:1、一般用webpack来新建项目,方便管理,开发中,线上 npm install -g vue-cli vue init webpack projectName 或者 vue init webpack-simple projectName 2、简单的新建项目 vue create hello-wo 阅读全文
posted @ 2021-11-25 14:59 仔仔爱学习 阅读(122) 评论(0) 推荐(0) 编辑
树结构的数组,修改值,dom有效
摘要:修改第一层的数据,是可以让dom生效的 this,$emit(arr,index,val) arr:原数据 index:第几个 val:修改后的值 阅读全文
posted @ 2021-11-15 14:41 仔仔爱学习 阅读(38) 评论(0) 推荐(0) 编辑
vue props 默认值
摘要:props: { demoString: { type: String, default: '' }, demoNumber: { type: Number, default: 0 }, demoBoolean: { type: Boolean, default: true }, demoArray 阅读全文
posted @ 2021-11-11 11:09 仔仔爱学习 阅读(227) 评论(0) 推荐(0) 编辑
时间戳转string string 转时间 获取时间
摘要:1、时间戳转时间 function formatDateDay(value,type='-') { if(value) { let date = new Date(parseInt(value) * 1000) let Y=date.getFullYear() let M = (date.getMo 阅读全文
posted @ 2021-11-11 10:24 仔仔爱学习 阅读(826) 评论(0) 推荐(0) 编辑
vue 页面返回 重新获取数据
摘要:1、方法一:Vue利用visibilitychange监听页面显示和隐藏 mounted() { document.addEventListener('visibilitychange', _this.handleVisiable) }, destroyed() { document.removeE 阅读全文
posted @ 2021-11-11 10:17 仔仔爱学习 阅读(1451) 评论(0) 推荐(0) 编辑
flex 样式总结
摘要:1、上下顶边 display: flex; flex-direction:row; flex-wrap:wrap; align-content:space-between; 2、垂直居中 display:flex; align-items:center;/*垂直居中*/ justify-conten 阅读全文
posted @ 2021-11-11 09:59 仔仔爱学习 阅读(389) 评论(0) 推荐(0) 编辑
css 强制不换行
摘要:white-space:nowrap; 阅读全文
posted @ 2021-11-11 09:55 仔仔爱学习 阅读(78) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示