xutongbao
function isValidIP(ip) {
    var reg = /^(\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])$/
    return reg.test(ip);
} 

let a = isValidIP(\'10.10.10.1111\')
console.log(a)

 

分类:

技术点:

相关文章:

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