0
在下面的示例中,我如何指定$ skip和$ top參數?odata datajs批量分頁
OData.request({
requestUri: "http://ODataServer/FavoriteMovies.svc/$batch",
method: "POST",
data: { __batchRequests: [
{ requestUri: "BestMovies(0)", method: "GET" },
{ requestUri: "BestMovies(1)", method: "GET" }
]}
},
function (data, response) {
//success handler
}, undefined, OData.batchHandler);
數據:{__batchRequests:[ {requestUri: 「BestMovies(0)$頂部= 4&$跳過= 0?」,方法: 「GET」}, {requestUri:?「BestMovies(1)$頂部= 4& $ skip = 0「,方法:」GET「} ]} – dm80 2011-04-20 20:49:30