摘要: //手机号脱敏处理 function noPassByMobile(str){ //中间四位脱敏 if(null != str && str != undefined){ var pat=/(\d{3})\d*(\d{4})/; return str.replace(pat,'$1****$2'); 阅读全文
posted @ 2020-12-10 11:22 可不可以重名 阅读(1954) 评论(0) 推荐(1)
摘要: //存 function setCookie(key,val,time){ var date=new Date(); //获取当前时间 if(time==''||time==undefined||time==null){//time为空 date.setTime(date.getTime() + 4 阅读全文
posted @ 2020-12-10 11:16 可不可以重名 阅读(130) 评论(0) 推荐(0)
摘要: 效果: (1)在app.json中将 navigationStyle 设置为 custom (2)公共导航组件目录 ①index.wxml: ②index.wxss: ③index.json ④index.js ⑤app.js ⑥app.wxss (3)需要引入导航的页面: ①test.wxml ② 阅读全文
posted @ 2020-11-18 18:21 可不可以重名 阅读(159) 评论(0) 推荐(0)
摘要: css: a{ color:inherit; text-decoration: none; display: block; } .btn3{ margin:20px; width:250px; height: 60px; line-height: 60px; font-size:16px; colo 阅读全文
posted @ 2020-10-27 10:11 可不可以重名 阅读(117) 评论(0) 推荐(0)
摘要: css: .nav{ position: relative; } .nav .subline{ height: 5px; background: #ff9f00; position: absolute; bottom: 0; left: 0; } .nav ul{ display: flex; he 阅读全文
posted @ 2020-09-01 16:04 可不可以重名 阅读(123) 评论(0) 推荐(0)
摘要: 方法一: css: .box{ width:300px; height: 300px; display: flex; align-items: center; border:1px solid red; } .box img{ margin:0 auto; } html: <div class="b 阅读全文
posted @ 2020-08-13 15:31 可不可以重名 阅读(143) 评论(0) 推荐(0)
摘要: css: li{ list-style: none; } ul li{ width:100px; font-size:16px; height: 45px; line-height: 45px; text-align: justify;; border:1px solid red; } ul li: 阅读全文
posted @ 2020-07-31 17:15 可不可以重名 阅读(154) 评论(0) 推荐(0)
摘要: js: function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r 阅读全文
posted @ 2020-07-31 17:10 可不可以重名 阅读(148) 评论(0) 推荐(0)
摘要: html: <form> <div class="line"> <div class="hint left">+86</div> <input type="number" class="tel num right model" id="tel" placeholder="请输入手机号" /> </d 阅读全文
posted @ 2020-07-31 16:35 可不可以重名 阅读(215) 评论(0) 推荐(0)
摘要: css: .file { position: relative; display: block; background: #D0EEFF; width:120px; height: 35px; line-height: 35px; color: #075db3; text-decoration: n 阅读全文
posted @ 2020-07-31 16:09 可不可以重名 阅读(80) 评论(0) 推荐(0)