grep
1 | var array = [1, 2, 3, 4, 5, 6, 7, 8, 9]; |
each
1 | var anObject = {one : 1, two : 2, three : 3}; // 对 json 数组 each |
inArray
1 | var anArray = ['one', 'two', 'three']; |
map
1 | var strings = ['0', '1', '2', '3', '4', 'S', '6']; |
JSON 对象
1 | var json = [{ dd : 'SB', AA : '东东', re1 : 123 }, { cccc : 'dd', lk : '1qw' }]; |
1 | var obj = { "name" : "冯娟", "password" : "123456", "department" : "技术部", "sex" : "女", "old" : 30 }; |