我正在从 json 制作一个表单。我在tv4.js中使用具有依赖性的angular-schema-form。我从这个 https://github.com/Textalk/angular-schema-form/blob/master/docs/index学习.md#global-options 我们可以在元素上应用 onchange 。但是当我应用它时不调用它也没有给出任何错误,为什么?Plunker http://plnkr.co/edit/wbziK5aRUg69JuwXDoVy?p=preview
onChange: function(modelValue,form) {
console.log("Password is",modelValue);
}
我是这样用的
"email": {
"title": "Email",
"type": "string",
"minLength": 2,
"pattern": "^\\S+@\\S+$",
onChange: function(modelValue,form) {
console.log("Password is"+modelValue);
},
validationMessage: {
200: "Address is too short, man.",
"default": "Just write a proper address, will you?" //Special catch all error message
},
"description": "Email will be used for evil.",
required: true
},
装订有问题吗?