getNewsData: function () { let self=this;
$.ajax({
url:'news/ListAll',
type:'post',
dataType:'json',
success:function (result) { if(result.code === 200){ self.total = result.total; self.newsData = result.data;
}
}
});
},
loadCurrentData: function(){
},loadCurrentData如何獲取getNewsData返回的newsData的數(shù)據(jù)?
VUE獲取另一個方法返回的數(shù)據(jù)
UYOU
2018-10-24 12:45:20