如何使用jsonp服务回调对params表进行排序?

时间:2012-08-24 03:56:22

标签: jquery parameters jsonp jquery-callback

如何使用params使用jsonp服务回调对桌面heaader进行排序?

url params:adServerId,advertiserId,campaignId,startDate,endDate,active,inactive,sortBy,start,limit

我的HTML代码:

`<table id="adcampaignGrid" class="grid" onclick="sort()">
<tr>
   <thead>
   <th>Ad Server Id</th>
    <th>Advertiser Id</th>
    <th>Advertiser Name</th>
  <tr>
 </table>`

我的JQuery代码:

$.each(data.response.docs, function (i,  item) { // json is the name of the object
        var row = $("<tr></tr>");
        row.append('<td>' + item.adServerId + '</td>'); //item is named at the opening of this $.each function
        row.append('<td>' + item.advertiserId + '</td>');
        row.append('<td>' + item.advertiserName + '</td>');
        row.append('<td>' + item.campaignId + '</td>');
        $("#adcampaignGrid").append(row);

0 个答案:

没有答案