摘要:
wx.getUserInfo({ success: function (res) { //用户信息 console.log(res) } }) 阅读全文
摘要:
电话号 :/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1})|(17[0-9]{1}))+\d{8})$/ 身份证号:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20| 阅读全文
摘要:
需要传递的对象需要先转成 字符串 var queryBean = JSON.stringify(传递的对象) wx.redirectTo({ url: '/pages/index/index?info=' + queryBean , }) 接受页面需要吧字符串转回来 var user_info = 阅读全文
摘要:
Git一些常用指令和规范 当我们写完代码的时候肯定是需要提交代码的,这时候就需要用到Git了,所以我们必须要了解一些Git常用的指令。在多人协作的大项目中,我们也要懂得一些规范。 首先我们电脑需要安装git,安装好git之后做一些配置,以及设置好SSH才可以正常使用git git官网 在官网中我们可 阅读全文
摘要:
规定属于其父元素的第二个子元素的每个 p 的背景色: p:nth-child(2) { background:#ff0000; } 阅读全文
摘要:
安装依赖 npm install scroll 使用的地方引入 var scroll = require('scroll') scroll.left(滚动dom, 滚动位置) var page = require('scroll-doc')() var ease = require('ease-co 阅读全文
摘要:
placeholder-class="phcolor" .phcolor { color: #D3D3D3; } 阅读全文
摘要:
data: show: true, count: "", timer: null, getCode() { const TIME_COUNT = 60; if (!this.timer) { this.count = TIME_COUNT; this.show = false; this.timer 阅读全文
摘要:
.bottom-tab button { background: #FFF; color: #000; height: 100%; font-size: 0; } .bottom-tab button::after { border: none; } button:not([size=mini]) 阅读全文
摘要:
if (!(/^1[34578]\d{9}$/.test(this.data.info_list[2].val.value))) { wx.showToast({ title: '手机号码有误', duration: 2000, icon: 'none' }); return false; } 阅读全文