Open
Description
-
validator.min.js 文件问题
try catch中复用了e变量;
在ie8试了一下, try catch中的e变量会在try中就定义的,chrome不会,可以用
try{console.log(e === undefined)}catch(e){console.log(e)}
检验下
ie8会返回true, 而chrome不会有输出。 -
兼容问题
if (isEmpty && rules.indexOf("required") === -1) {
ie8 是不兼容 Array.prototype.indexOf 的, 可以用 field.rules.indexOf
Metadata
Assignees
Labels
No labels