摘要: 加密:encodeURIComponent(参数) 解密:decodeURIComponent(参数) 阅读全文
posted @ 2020-07-13 19:04 武小妞 阅读(1795) 评论(0) 推荐(0) 编辑
摘要: https://github.com/surmon-china/vue-awesome-swiper/blob/master/examples/03-pagination.vue https://surmon-china.github.io/vue-awesome-swiper/ 阅读全文
posted @ 2020-06-18 12:14 武小妞 阅读(413) 评论(0) 推荐(0) 编辑
摘要: http://www.luyixian.cn/javascript_show_149449.aspx 阅读全文
posted @ 2019-11-16 14:04 武小妞 阅读(503) 评论(0) 推荐(0) 编辑
摘要: JS 控制不能输入特殊字符 <input type="text" class="domain" onkeyup="this.value=this.value.replace(/[^u4e00-u9fa5w]/g,'');"> this.value=this.value.replace(/[^u4e0 阅读全文
posted @ 2019-11-08 11:13 武小妞 阅读(163) 评论(0) 推荐(0) 编辑
摘要: let first = this.data.date //开始时间 let second = e.detail.value //结束时间 var data1 = Date.parse(first.replace(/-/g, "/")); var data2 = Date.parse(second.replace(/-/g, "/")); var dat... 阅读全文
posted @ 2019-11-04 10:42 武小妞 阅读(3706) 评论(0) 推荐(0) 编辑
摘要: data{ timer:'', countDownNum:'发送验证码', } // 点击验证码倒计时获取验证码 Gain:function(e){ let that = this let countDownNum = '60' that.setData({ timer: ... 阅读全文
posted @ 2019-11-01 09:55 武小妞 阅读(552) 评论(0) 推荐(0) 编辑
摘要: //获取当前时间戳 var timestamp = Date.parse(new Date()); timestamp = timestamp / 1000; console.log("当前时间戳为:" + timestamp); //获取当前时间 var n = timestamp * 1000; var date = new Date(n); //年 var Y = date.getFullY 阅读全文
posted @ 2019-10-28 12:11 武小妞 阅读(17720) 评论(0) 推荐(0) 编辑
摘要: 1、页面代码 js代码 css样式 阅读全文
posted @ 2019-10-26 15:32 武小妞 阅读(2060) 评论(0) 推荐(0) 编辑
摘要: util.js index.js index.wxml 写一个就行,数据绑定事件绑定同理 阅读全文
posted @ 2019-10-15 17:51 武小妞 阅读(6394) 评论(0) 推荐(0) 编辑
摘要: cnpm i postcss-px2rem --save cnpm install px2rem-loader --save 2、配置px2rem build目录下vue-loader.conf.js中,做如下修改: module.exports = { loaders: utils.cssLoad 阅读全文
posted @ 2019-09-28 14:14 武小妞 阅读(2042) 评论(0) 推荐(0) 编辑