js 获取 ajax 元素,vue 通过ajax获取数据,dom元素没有更新里面数据

1.通过ajax请求数据成功,vue 中的data里面内容已经更新;但是页面table里面的内容却没有更新。

2.且这里获取回来的数据并不是新添加的动态属性,并不会出现大家遇到动态的属性的数据不更新的问题。

请各位帮忙看一下。

bVMAPL?w=962&h=562

$.ajax({

type: 'get',

url: url,

data: postData,

dataType: 'json',

success: (res) => {

let student_report = new Vue({

el: '#student_report',

data: function () {

return {

stu_scores: [],

indicator_info: [],

absent: {},

cheat: {}

}

},

created: function () {

this.stu_scores = res.stu_scores;

this.indicator_info = res.indicator_info;

this.absent = res.absent;

this.cheat = res.cheat;

}

});

}

});