2010-05-18 63 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

相关问题