判断字符串是否为 IP 地址(IPv4 或 IPv6)
输入值
是否为合法 IP 地址
stringIsIp('127.0.0.1'); // true Copy
stringIsIp('127.0.0.1'); // true
判断字符串是否为 IP 地址(IPv4 或 IPv6)