//页面加载时候执行
,created()
{
axios.get('searchAll/1/20').then(response => {
console.log(response);
this.results = response.data;//绑定数据!
})
}
使用,created()就行了
//页面加载时候执行
,created()
{
axios.get('searchAll/1/20').then(response => {
console.log(response);
this.results = response.data;//绑定数据!
})
}
使用,created()就行了