摘要: var $name = '好1' var reg = /[`~!@#$%^&*()_\-+=<>?:"{}|,\/;'\\[\]~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘’,。、1234567890]/g; console.log(reg.test($name)) var is 阅读全文
posted @ 2017-07-31 12:17 wings-lhw 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 引入,在main.js里 阅读全文
posted @ 2017-05-17 18:49 wings-lhw 阅读(1383) 评论(1) 推荐(0) 编辑
摘要: 适合于隐藏部分手机号,银行卡,姓名等 str:字符串 begin:开始 end:结束 char:用什么替换 function mask(str,begin,end,char){ var fstStr = str.substring(0,begin); var scdStr =str.substrin 阅读全文
posted @ 2017-05-11 14:15 wings-lhw 阅读(234) 评论(0) 推荐(0) 编辑
摘要: <template> <div id="shoplist"> <p class="all" > <input type="radio" name="b" value="0" v-model="inputdata"/> <span>★</span> <input type="radio" name=" 阅读全文
posted @ 2017-05-05 18:09 wings-lhw 阅读(2190) 评论(1) 推荐(0) 编辑
摘要: <template> <div class="city-select" id="city"> <select v-model="selectedProvince" name="province"> <option v-for="(item, index) in provinces" v-if="it 阅读全文
posted @ 2017-04-26 18:10 wings-lhw 阅读(909) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <div style="padding:20px;"> <div class="show"> <div class="picture" :style="'backgroundImage:url('+headerImage+')'"></div> </div> <di 阅读全文
posted @ 2017-04-26 15:00 wings-lhw 阅读(1359) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> *{ margin: 0; padding: 0; } #win{ left: 500px; width: 300p 阅读全文
posted @ 2016-09-27 21:00 wings-lhw 阅读(214) 评论(0) 推荐(0) 编辑