不支持cors也不支持jsonp的callbackvar url = 'http://www.runoob.com/try/angularjs/data/sites.php';function hello(res) { console.log(res);}function jsonp(url) { var script = document.createElement('script'); script.src = url; script.id = 'test' document.body.appendChild(script);}window.onload = function(){ jsonp(url)}貌似无解?
添加回答
举报
0/150
提交
取消