2012-03-19 3 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."); 
    } 
}); 

어떻게 매개 변수를 보낼 수 있습니까? 2 매개 변수 시작 및 개수가 있습니다. 도와주세요.Jquery Mobile asp.net webservice 매개 변수

답변

1

이 코드

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

덕분에 해리를 시도하십시오. :) –