var arr = [1, 2, 3, 4, 5];
var removeItem = 2;
arr = $.grep(arr, function(value) {
return value != removeItem;
});
12345caixiao ©著作权
var arr = [1, 2, 3, 4, 5];
var removeItem = 2;
arr = $.grep(arr, function(value) {
return value != removeItem;
});
下一篇:前端开发的级别及要求
本文详细的介绍了,在Java 中数组的使用,并对其内存存在形式进行了详细的分析。
Java编写一个简单的计算器。
去除数组中重复的数字,首先这个eSameElement(int arr[],int n); void
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M