javascript正則表達式驗證IP地址的埠合法性(0-65535) ...
javascript正則表達式驗證IP地址的埠合法性
if (!(/^[1-9]\d*$/.test(port) && 1 <= 1 * port && 1 * port <= 65535)){ return false }
提示文案:
您的埠不符合範圍:0-65535
javascript正則表達式驗證IP地址的埠合法性(0-65535) ...
javascript正則表達式驗證IP地址的埠合法性
if (!(/^[1-9]\d*$/.test(port) && 1 <= 1 * port && 1 * port <= 65535)){ return false }
提示文案:
您的埠不符合範圍:0-65535