1.splice 删除,切割,返回新数组 参数一,下标,参数二 个数例如:for(var x in idList){ if(idList[x] == id){ idList.splice(x,1) }}