//子組件列表 <ForecastList :items='list'></ForecastList> //實例 data: function () { return { data:{}, Model:{}, list:{} }; }, components:{ ForecastList }, mounted:function() { $('#slider').find('span').on('click',function(){ $.ajax({ url: urlgeren, data:{'gameName':type,"pn":1}, dataType: "json", jsonp: "cb", dataType: 'jsonp', success: function(data){ this.data=data this.Model = data.Model this.list = data.Model.list }.bind(this) }); }在父組件中點擊按鈕,已經(jīng)請求回來數(shù)據(jù)進行了綁定,但是組件中列表中的數(shù)據(jù)沒有改變,這難道還要重新渲染一次子組件嗎;
vue ajax請求回來的數(shù)據(jù)沒有渲染到頁面
慕容708150
2018-09-01 10:08:19