Detailed information on the front: use layui
$. Ajax ({... Omit the parameter
Complete: a function ( res, curr, count
{
console.log(res);
//get the current page number
The console. The log (curr);
//get data amount
The console. The log (count);
}
Res curr count the three parameters of the background asp.net how to copy
CodePudding user response:
Viewstatus?
CodePudding user response:
I used this parameter, form layui paging interface is almost the{
"Code" : 0,
"MSG" : ", "
"Count" : 1,
"Data" : []
}
If multiple parameters, it is also an object,
The background is a class like this
Public class WebResponseContent {
Public int code {get; set; }
.
Public object data {get; set; }
}