json的简单数据格式
var arr={"obj1":["张三","12","女"],"obj2":["李四","12","女"],"obj3":["王五","12","女"],} var str="
"; $.each(arr,function(i,v){ str+="" }) str+="姓名 | 年龄 | 性别 |
"+arr[i][0]+" | "+arr[i][1]+" | "+arr[i][2]+" |
var arr={"obj1":["张三","12","女"],"obj2":["李四","12","女"],"obj3":["王五","12","女"],} var str="
"; $.each(arr,function(i,v){ str+="" }) str+="姓名 | 年龄 | 性别 |
"+arr[i][0]+" | "+arr[i][1]+" | "+arr[i][2]+" |
转载于:https://juejin.im/post/5a6047ef518825734501935b