js中的 for, for in, for of foreach,filter使用

下面是对数组进行循环

   var array = [
        { id:
1, name: \'ohzri\', birth: \'1999.09.09\', city: \'湖北\', salary: 9379 }, { id: 2, name: \'rqgfd\', birth: \'1999.10.28\', city: \'湖北\', salary: 1060 }, { id: 3, name: \'fwfsh\', birth: \'1999.09.17\', city: \'广西\', salary: 9736 }, { id: 4, name: \'bqibt\', birth: \'1999.04.20\', city: \'湖南\', salary: 9471 }, { id: 5, name: \'ypklq\', birth: \'1999.06.28\', city: \'山东\', salary: 3123 }, { id: 6, name: \'lupnr\', birth: \'2001.10.03\', city: \'河南\', salary: 4630 }
      ];

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/zgjzfw.html