摘要: 用循环中的filter方法。 var colors = ["red", "blue", "grey"]; colors = colors.filter(function(item) { return item != "red" }); console.log(colors); // ["blue", 阅读全文
posted @ 2021-11-10 14:23 NULL_xy 阅读(25) 评论(0) 推荐(0)