06 2020 档案

摘要:@mouseove 移入事件 @mouseleave 移出事件 1 <template> 2 <div class="pc"> 3 <h1>{{ msg }}</h1> 4 <div 5 class="demo" 6 @mouseover="mouseOver" 7 @mouseleave="mou 阅读全文
posted @ 2020-06-24 21:31 我有头盔 阅读(1838) 评论(0) 推荐(0)
摘要:1 全选 2 <input type="checkbox" id="quanxuan" > 3 <br> 4 单选 5 <input type="checkbox" class="item"> 6 <br> 7 单选 8 <input type="checkbox" class="item"> 9 阅读全文
posted @ 2020-06-16 18:27 我有头盔 阅读(900) 评论(0) 推荐(0)
摘要:事件处理程序分为DOM0级和DOM2级,如果是用onclick方式绑定的事件可以用如下方法取消: 1 btn.onclick=null;//删除事件处理程序 如果使用addEventListener()方法添加事件,可以通过removeEventListener()移出事件,需要注意两点:1.rem 阅读全文
posted @ 2020-06-15 16:58 我有头盔 阅读(12870) 评论(0) 推荐(0)
摘要:uni.uploadFile(OBJECT) 能将文件转成file格式 1 uni.chooseImage({ 2 success: (chooseImageRes) => { 3 const tempFilePaths = chooseImageRes.tempFilePaths; 4 uni.u 阅读全文
posted @ 2020-06-10 19:33 我有头盔 阅读(1716) 评论(0) 推荐(0)
摘要:1.手机号正则 //手机号正则 var mPattern = /^1[34578]\d{9}$/; //http://caibaojian.com/regexp-example.html2.身份证正则 //身份证号(18位)正则 var cP = /^[1-9]\d{5}(18|19|([23]\d 阅读全文
posted @ 2020-06-05 15:54 我有头盔 阅读(365) 评论(0) 推荐(0)