2012-03-19 52 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