使用:var people1 = { apple: 0, banana: { weight: 52, price: 100 }, age: 97};var people2 = { banana: { price: 200 }, age: 100};jQuery.extend(people1,people2);//或$.extend(people1,people2););//或var c=$.extend(people1,people2););people1的内容变为:{apple:0,banana{price:200},age:100} Read More
posted @ 2013-09-30 15:47
tinyphp
Views(807)
Comments(0)
Diggs(0)
jquery.validate是jquery的一个验证框架,可以迅速验证一些常见的输入,并且可以自己扩充自己的验证方法!这里先从介绍简单的使用方法:jquery.validate.js下载地址1、导入js库js库+jquery.validate.js2、 验证表单:姓名:邮箱:3、执行:4、拓展验证:jquery.validate.js里面的message有什么验证内容type和name值改成相应的值,如:下面的date 5、修改验证提示:引入messages_cn.js:jQuery.extend(jQuery.validator.messages, { required: "必选 Read More
posted @ 2013-09-30 11:47
tinyphp
Views(2595)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号