uview!form表单校验不好用,自定义方法
//表单校验
// params form表单对应model rules表单检验rules
checkRules(params, rules) {
for (let key in rules) {
let arr = rules[key]
for (let i = 0; i < arr.length; i++) {
let rule = arr[i],
val = params[key] === 0 ? '0' : params[key]
原创
2021-06-10 13:21:54 ·
6247 阅读 ·
0 评论