Skip to content

addRule方法回调函数this指向问题 #31

@nuintun

Description

@nuintun

如题,个人觉得:

Validator.addRule('idcard', function (options){
   //TODO this指向当前 Validator 实例更合理
}, '{{display}}错误');

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions