你好,当iserver地址和网页地址不同时,iclinet默认为跨域,请求为jsonp,将isInTheSameDomain设为true,用POST请求发json
例如:
getfeaturesBySQLService= new SuperMap.REST.GetFeaturesBySQLService(url2, {
eventListeners: {
"processCompleted": addFeaturesProcessCompleted,
"processFailed": processFailed
},isInTheSameDomain:true
});