Home > Net >  The asp.net backend to front-end res curr count assignment
The asp.net backend to front-end res curr count assignment

Time:11-03

Problem: asp.net backend to front-end res curr count assignment, I can't thank you all for the teacher to a train of thought, thank you for the
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; }
}
  • Related