2012-03-19 56 views
0
$.ajax({ 
    type: "POST", 
    url: "ContactList.asmx/GetContacts", 
    data: "{'start':" + 1 + "}", 
    contentType: "application/json; charset=utf-8", 
    dataType: "json", 
    success: function (msg) { 
     $.mobile.showPageLoadingMsg(); 
     console.log(msg.d); 
    }, 
    error: function() { 
     $('[data-url="' + tempdataurl + '"] div[data-role="content"]').html("Error loading article. Please try web version."); 
    } 
}); 

我該如何發送Muttiple參數?我有2個參數開始和計數。請幫忙。jquery mobile asp.net web服務參數

回答

1

請試試這個代碼

data: {start: 1 ,count:5} 
+0

感謝哈利。 :) – 2012-03-19 12:57:10