调用web接口,get请求,发现提示:No 'Access-Control-Allow-Origin' header is present on the requested resource.web
这个和安全机制有关,默认不容许跨域调用ajax
处理手段:使用jsonp格式, ajax请求参数dataType:'JSONP'。json
$.ajax({ url: "http://.......", type: 'GET', dataType: 'JSONP',//here success: function (data) { } });