摘要:
小程序保存图片功能实现 wxml: wxss: js: 阅读全文
posted @ 2018-08-14 14:49
刘俊涛的博客
阅读(2373)
评论(0)
推荐(0)
摘要:
小程序清除缓存功能如何实现 Wxml: 清空缓存 Js: clearStorage: function(){ var that = this; that.setData({ loading:true, disabled:true }); that.update(); ... 阅读全文
posted @ 2018-08-14 14:05
刘俊涛的博客
阅读(9384)
评论(0)
推荐(2)
摘要:
/** * 数字进行千位转换成字符串 */ function escapeThousands(int) { let num = (int || 0).toString(), result = ''; while(num.length > 3) { result = ',' + num.slice(-3) + result; num = num.s... 阅读全文
posted @ 2018-08-14 11:12
刘俊涛的博客
阅读(822)
评论(0)
推荐(0)
摘要:
用来验证身份证格式是否正确 isCardID : function(sId){ var iSum=0 ; var info="" ; if(!/^\d{17}(\d|x)$/i.test(sId)) return "你输入的身份证长度或格式错误"; sId=sId.replace(/x$/i,"a"); if(th... 阅读全文
posted @ 2018-08-14 10:43
刘俊涛的博客
阅读(1441)
评论(0)
推荐(0)