aralejs / validator

Form Validator Widget
aralejs.org/validator/
41 stars 28 forks source link

errormessage重写后无法替换自定义的{{}} #37

Closed lianqin7 closed 11 years ago

lianqin7 commented 11 years ago
Validator.addRule('test', function(options){
    options.index = 9;

    return false;
}, '第{{index}}个字符有问题!');

validator.addItem({
    element: '#input1',
    rule: 'test',
    errormessageTest: '这里的错误提示中的{{index}}不会被替换!'
});
lianqin7 commented 11 years ago

已经简单修复掉了,等会pull过来