标签:快速 nbsp lang col 查找 bbb div aaa indexof
var a=["aaa","bbb","ccc]; var b="ccc" var i = a.indexOf(b);//i=2 a.splice(i, 1);//a=["aaa","bbb"]
數組快速查找和刪除
原文地址:https://www.cnblogs.com/mandongpiaoxue/p/11406492.html