我已经定义了AJAX请求的数据参数,如下所示
"{"take":200,"reportId":"D:\\Sample\\Listbox sample\\DashboardServiceInstaller\\DashboardServiceInstaller\\DashboardServiceInstaller\\listbox sample.sydx","controlId":"ListBox_1","masterData":"[{\"Key\":\"ListBox_1\",\"Value\":[{\"Items\":[]}],\"MultiSelection\":false,\"Filter\":\"Exclude\"}]","rangeData":"[]","modifiedConnectionStrings":"\"\"","listboxRowCount":"1096","currentUser":"null","isPublic":false,"skip":800}"
和ajax请求定义如下
$.ajax({
beforeSend : ()
cache : true
contentType : "application/json; charset=utf-8"
crossDomain : undefined
data: "{"take":200,"reportId":"D:\\Sample\\Listbox sample\\DashboardServiceInstaller\\DashboardServiceInstaller\\DashboardServiceInstaller\\listbox sample.sydx","controlId":"ListBox_1","masterData":"[{\"Key\":\"ListBox_1\",\"Value\":[{\"Items\":[]}],\"MultiSelection\":false,\"Filter\":\"Exclude\"}]","rangeData":"[]","modifiedConnectionStrings":"\"\"","listboxRowCount":"1096","currentUser":"null","isPublic":false,"skip":800}"
dataType : "json"
ejPvtData : Object
error : ()
jsonp : "callback"
processData : false
success : ()
type : "POST"
url : "http://localhost:3002/DashboardService.svc/GetListBoxRows"
})
一旦ajax请求提升到服务,请求url和Request Payload如下
请求网址:http://localhost:3002/DashboardService.svc/GetListBoxRows
和请求有效负载
- controlID:“ListBox_1”
- currentUser: “空”
- isPublic:假
- listboxRowCount: “1096”
- masterData: “[{” 密钥 “:” ListBox_1" , “值”:[{ “文件”:[]}], “多选”:假, “过滤器”: “排除”}]“
- modifiedConnectionStrings: “” “”
- rangeData: “[]”
- reportId:“D:\ Sample \ Listbox sample \ DashboardServiceInstaller \ DashboardServiceInstaller \ DashboardServiceInstaller \ listbox sample.sydx“
- 跳过:600
- 取:200
醇>
我的要求:我只需从服务中获取200条记录,但它已获取201条记录,即使我定义为200条记录。
data.d Array [201] [0 ... 99] [100 ... 199] 200:Object
长度为201
为什么我会获得更多数据,有什么方法可以解决这个问题。