From fe3f632046234265bbaf398717f0b749fdfeee84 Mon Sep 17 00:00:00 2001 From: wangxin Date: Wed, 15 May 2019 11:26:54 +0800 Subject: [PATCH] =?UTF-8?q?IP=E8=8C=83=E5=9B=B4=E7=9A=84=E8=B5=B7=E5=A7=8B?= =?UTF-8?q?IP=E5=BF=85=E9=A1=BB=E5=B0=8F=E4=BA=8E=E7=BB=88=E6=AD=A2IP?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1.11.0/jquery.validate.method.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js index 997b2ca9e..e159097f4 100644 --- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js +++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js @@ -341,7 +341,7 @@ var validateIpPattern= function(ipType,ipPattern,value,element){ ||(startPart0>191&&startPart1>191&&startPart0<224&&startPart1<224) ||(startPart0>223&&startPart1>223&&startPart0<240&&startPart1<240) ||(startPart0>239&&startPart1>239&&startPart0<256&&startPart1<256)){//仅允许同段IP - if(ipToNumber(startIp)<=ipToNumber(endIp)){//比较IP大小 + if(ipToNumber(startIp)=$(max).find("option:selected").data("sort")){ +// return false; +// }else{ +// return true; +// } +//}); \ No newline at end of file