![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html
Martin -Tang
这个作者很懒,什么都没留下…
展开
-
uniapp js缓存
存值button(){uni.setStorage({ key:'user', data:data //存值 }) }获取值try { var value = uni.getStorageSync('user')//拿值 if (value!="") { this.name=value } } catch (e) { // Do something w原创 2020-11-05 11:28:04 · 747 阅读 · 1 评论 -
uniapp js 时间戳转换时间
uniapp js 时间戳转换时间var dates=12345612var now = new Date(datec*1000);var year = now.getFullYear();var month = now.getMonth() + 1;if (month < 10) { month = '0' + month }var date = now.getDate();if (date < 10) { date = '0' + date }console.log(原创 2020-11-05 14:05:07 · 1053 阅读 · 0 评论 -
js判断电话号码,身份证号码,日期,邮箱,邮政,是否符合规则
@uniapp js判断电话号码是否符合规则var strTemp = /^1[3|4|5|6|7|8|9][0-9]{9}$/;if(strTemp.test(this.phone)){this.phonnumber == true}else{this.phonnumber == false}功能快捷键撤销:Ctrl/Command + Z重做:Ctrl/Command + Y加粗:Ctrl/Command + B斜体:Ctrl/Command + I标题:Ctrl/Command原创 2020-11-05 11:07:20 · 2181 阅读 · 1 评论