0
我正在研究jQuery Mobile應用程序,該應用程序應該根據jQuery移動中的表單中選定的項目從webservice獲取數據。如何編寫一個簡單的web服務,它返回jQuery Mobile中的ajax調用上的JSON對象
$("#catalogue").live('click',function(){
$.ajax({
type: "GET",
url: "LifeService\log",
data: "json="+$("prodcat");,
dataType: "json",
success: function (msg) {
alert(msg);
}
});
});
該函數不返回任何東西。當我簡單地在瀏覽器中使用該值運行web服務時,我收到了成功消息。任何人都可以告訴我如何從jQuery Mobile調用webservice?