加入common.js,共用的js方法写在里面

This commit is contained in:
wangxin
2018-04-09 11:03:22 +08:00
parent 689b4eb460
commit e6e9c81672
5 changed files with 65 additions and 22 deletions

View File

@@ -62,16 +62,6 @@ $(function(){
});
$("#ipCfgFrom").validate({
rules: {
srcPort: {
max: 65535,
min: 0
},
dstPort: {
max: 65535,
min: 0
}
},
errorPlacement: function(error,element){
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
},