摘要:
//准备数组数据 var obj = new Object(); obj.name="test"; obj.age = 11; var obj1 = new Object(); obj1.name="objname"; obj.age=12; var arr = []; arr.push(obj); 阅读全文
摘要:
formValidate.js内容如下: formValidation:function(fields){ var rules = new Object(); var messages = new Object(); for(let i=0,len=fields.length;i<len;i++){ 阅读全文