检查是否为 ip string
字符串值
isIpAddress('::1'); /// trueisIpAddress('127.0.0.1'); /// trueisIpAddress('2001:DB8:0:0:8:800:200C:417A'); /// trueisIpAddress('255.255.255.123.123'); /// false Copy
isIpAddress('::1'); /// trueisIpAddress('127.0.0.1'); /// trueisIpAddress('2001:DB8:0:0:8:800:200C:417A'); /// trueisIpAddress('255.255.255.123.123'); /// false
检查是否为 ip string