//子组件列表
<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)
});
}
神不在的星期二
相关分类