if (index === 1) {
return true; //类似于continue
}
})
4、过滤数组...$.grep(array, callback[, invert])
callback不能是正则表达式,可以在函数中声明
var arr = [1, 3, 6, 13, 38, 9, 8, 24, 15... // return ''; 返回空格数组
})
6、更多数组操作方法
$.inArray(value, array) 返回值在数组中的下标
console.log($.inArray(2,...catch
除了低版本 IE(6、7),兼容性很好
可以将对象与 JSON 数据格式互相转化
2、JSON.parse 方法
将 JSON 数据格式转化为对象
第二个参数接受一个过滤函数
注意去除数据中的尾逗号...https://geekmubai.com/programming/741.html