map()是数组遍历的一种方法;map()中的参数为一个回调函数,其中的 v 表示当前元素,i 表示索引;使用map()方法时须通过 return 返回一个新的数组;
for(var i=0;i<data.list.lenght;i++){ // 代码编写错误