2010-05-18 42 views

回答

1

使用Ajax + Jquery的:http://api.jquery.com/jQuery.ajax/

$.ajax({ 
            type: "POST", 
            contentType: "application/json; charset=utf-8", 
            dataType: "json", 
            url: "http://monitoring-gps.com.ua/aspservices/asptest.asmx/METHODNAME",                
            data: "{'paramName':'" + ParamValue + "'}", 
            success: function(data) { alert("That works;") } 
           }); 
+0

$就({ 類型: 「POST」, 的contentType: 「應用程序/ JSON;字符集= UTF-8」, 數據類型: 「JSON」, URL:「HTTP: //monitoring-gps.com.ua/aspservices/asptest.asmx/DeviceList「, data:」{}「, success:function(data){alert(」That works;「)} }); 也許我做錯了什麼? – Artem 2010-05-19 17:53:58

相關問題