本文实例讲述了JavaScript中filter的用法。 ... var arr = [1, 2, 4, 5, 6, 9, 10, 15]; var r = arr.filter(function (x) { return x % 2 !==
確定! 回上一頁