function isPort(port) {
    if (/^[1-9]\d*|0$/.test(port) && port * 1 >= 0 && port * 1 <= 65535){
        return true
    }
    return false;
}

 

相关文章:

  • 2021-11-29
  • 2021-12-09
  • 2021-12-26
  • 2022-12-23
  • 2021-12-26
  • 2022-12-23
  • 2021-08-21
  • 2022-02-12
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
相关资源
相似解决方案