Core: On the issue of this point, it is best to print out this to see
You can render that array on the page.
<div>{{listData}}</div>
You'll see something magical, even time and space.
Solution:
GetList () {
Let _this=this
Let params={
Currentpage:_this.currentpage,
Pagesize:_this.pagesize,
}
_this.ajax ({
Type: "Post",
Data:params,
URL: "/author/fans/fanstimelist",
Success (RES) {
_this.listdata=res.responsebody.data
Console.log (_this.listdata, ' data printing ')
Console.log (_this, ' data printing ')
}
The best solution when using the arrow function. has been changed to an arrow function
GetList () {
Let params={
CurrentPage:this.currentPage,
PageSize:this.pageSize,
}
This.ajax ({
Type: "Post",
Data:params,
URL: "/author/fans/fanstimelist",
Success: (res) + = {
This.listdata=res.responsebody.data
Console.log (this.listdata, ' data printing ')
Console.log (this, ' Data printing ')
}
});
},
In Vue, loop an array, do not display the problem, get a fake data, it will loop out instead? Why