01 2022 档案

摘要:console.time('starttime'); //将请求添加到promise内 let p1 = new Promise((resolve, reject) => { axios({ url: url method: 'post', data: { } }) .then((res) => { 阅读全文
posted @ 2022-01-22 10:49 ComeIntoBud 阅读(143) 评论(0) 推荐(0) 编辑
摘要:<!-- showOverlay 控制是否显示遮罩层 --> <!-- 这所有的前提是 vue项目引入了vant组件 --> <van-overlay :show="showOverlay" > <div style="position:fixed;top:50%;left:50%;z-index: 阅读全文
posted @ 2022-01-21 15:16 ComeIntoBud 阅读(557) 评论(0) 推荐(0) 编辑
摘要:1 //验证手机号码 2 checkPhone(phone) { 3 if(!(/^1(3|4|5|6|7|8|9)\d{9}$/.test(phone))){ 4 return false; //不满足条件 5 }else{ 6 return true ;//满足条件 7 } 8 }, 阅读全文
posted @ 2022-01-20 17:20 ComeIntoBud 阅读(359) 评论(0) 推荐(0) 编辑
摘要:1 var now = new Date(); // 当前日期 2 var nowDayOfWeek = now.getDay(); // 今天本周的第几天 3 var nowDay = now.getDate(); // 当前日 4 var nowMonth = now.getMonth(); / 阅读全文
posted @ 2022-01-20 16:50 ComeIntoBud 阅读(716) 评论(0) 推荐(0) 编辑

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