var a=["aaa","bbb","ccc"]; var b="ccc" var i = a.indexOf(b);//查找數組:i=2 a.splice(i, 1);//移出指定item:a=["aaa","bbb"]