wijmo.data 名前空間 : IAjaxDataViewOptions メソッド |
Javascript (Usage) | |
---|---|
var value; // Type: any value = wijmo.data.IAjaxDataViewOptions(); |
Javascript (Specification) | |
---|---|
|
data: new wijmo.data.AjaxDataView("http://ws.geonames.org/searchJSON", { ajax: { dataType: "jsonp", data: { username: "demo", style: "SHORT" } }, pageSize: 10, onRequest: function (settings, shape) { settings.data.startRow = shape.pageSize * shape.pageIndex; settings.data.maxRows = shape.pageSize; }, onResponse: function (response) { return { totalItemCount: response.totalResultsCount, results: response.geonames }; } })