标签: javascript ip
我有一个javascript数组的IP地址,但有些IP地址包含这样的prot数:198.228.200.169:466835 如何使用javascript函数删除端口号,如下所示: 198.228.200.169
非常感谢你!