微信小程序正则匹配手机号

    if (!/^1[3456789]\d{9}$/.test(this.data.mobile)) {
      wx.showToast({
        title: '联系人电话格式错误',
        icon: 'none',
      });
      return;
    }
posted @ 2020-06-29 15:41  吸取天地精华  阅读(2054)  评论(0)    收藏  举报