//登录输入密码
userPasswordInput: function (e) {
var that = this;

this.setData({
userPassword: e.detail.value
})
// console.log(e.detail.value.length)
// console.log(e.detail.value);
var value = e.detail.value
var strkong = /^[0-9a-zA-Z]{0,25}$/g;
if (strkong.test(value)) {
that.setData({
truePwd: true
})
} else {
// console.log("cwoca")
wx.showModal({
title: '提示',
content: '密码由0~25位由数字和26个英文字母混合而成',
showCancel: false,
success: function (res) {
that.setData({
truePwd: false
})
}

})

}
},

相关文章:

  • 2022-01-17
  • 2022-12-23
  • 2021-11-28
  • 2021-10-08
  • 2021-11-23
  • 2022-01-01
猜你喜欢
  • 2022-01-01
  • 2021-11-23
  • 2021-08-11
  • 2022-02-07
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案