一个小疑惑?
$(document).ready(function(){
$(#formSet).validate({
rules:{
username:{
required:true,
minlength:2,
maxlength:10
},
password:{
required:true,
minlength:2,
maxlength:10
}
},
我想问一下在rules和password里面为什么都是用逗号来分隔的?之前js不都是用分号(;)的吗?