jquery 删除一个数组中的元素
1 |
$(document).ready( function (){ |
2 |
var arr = [ "jQuery" , "JavaScript" , "HTML" , "Ajax" , "Css" ]; |
3 |
var itemtoRemove = "HTML" ; |
4 |
arr.splice($.inArray(itemtoRemove, arr),1); |
5 |
}); |