Skip to content

Commit

Permalink
0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tlxfif committed Jul 10, 2018
1 parent d182110 commit f5df03b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,23 @@ complexValidate.option({
}
}


1)curr为当前验证对象

2)group不变,为当前验证范围中带有该验证类型的数组

3)multiRegex改为regex,现在只需要传一个需要验证的函数和验证类型字符串"int|notNull|length(1,5)"即可:
```
xxx:{
type:'fun',
regex:function (i,j,regex) {
return regex(i,"int|notNull|length(1,5)")
}
}
```

第四个参数及以后的参数由用户定义

如上述代码所示,定义了k,j参数,在 validate="xxx(1,2)"


Expand Down

0 comments on commit f5df03b

Please sign in to comment.