function checkIP()                                      //检查IP
{
var exp=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/; 
	obj=document.getElementById("NTPaddress").value;
	var reg1 = obj.match(exp); 
	if(reg1==null){
			alert("NTP地址输入不合法!");
			return false;
	}else{
			//alert("修改成功!");
			setTimeSet();
			return true;
		}
}

  

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
猜你喜欢
  • 2021-07-17
  • 2022-12-23
  • 2022-02-27
  • 2021-11-17
  • 2022-12-23
  • 2021-05-01
相关资源
相似解决方案