第一步:
获取接口数据
第二步 打印接口数据(数据为数组的嵌套)
第三步 获取数组,遍历数据
created(){
this.proValue();
},
methods: {
proValue(){
textApi.getAllUser().then((response) => {
//获取接口内的所有数组里面的数据
this.tableData = response.data.commDateList;
console.log(this.tableData);
//对嵌套数组进行遍历
for(var index=0;ind