Skip to content

IE8问题 #17

Open
Open
@jinboyigu

Description

  1. 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不会有输出。

  2. 兼容问题
    if (isEmpty && rules.indexOf("required") === -1) {
    ie8 是不兼容 Array.prototype.indexOf 的, 可以用 field.rules.indexOf

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions