使用说明
-
安装
npm i regtool
-
语法
// 导包 let regtool = require('regtool'); // 验证手机号 regtool.isTel('手机号'); // 验证手机号 regtool.isEmail('邮箱号');
安装
npm i regtool
语法
// 导包
let regtool = require('regtool');
// 验证手机号
regtool.isTel('手机号');
// 验证手机号
regtool.isEmail('邮箱号');
npm i regtool
1
1.1.0
ISC
2.18 kB
6