文章詳情頁
javascript - 七牛接口跨域
瀏覽:121日期:2023-03-07 16:47:49
問題描述
XMLHttpRequest cannot load http://api.qiniu.com/status/g... No ’Access-Control-Allow-Origin’ header is present on the requested resource. Origin ’http://192.168.1.54:8080’ is therefore not allowed access.
$.ajax({
url:’http://api.qiniu.com/status/get/prefop?id=z0.5923a37345a2650c9977c17e’, type:'GET', dataType:'json', success:function(data){console.log(data) }});
問題解答
回答1:dataType: ’jsonp’
jquery jsonp跨域
標簽:
JavaScript
相關文章:
1. 怎么在phpstudy中用phpexcel上傳數據到MYSQL?2. javascript - 百度搜索網站,如何讓搜索結果顯示一張圖片加上一段描述,如圖;求教3. phpadmin的數據庫,可以設置自動變化時間的變量嗎?就是不需要接收時間數據,自動變化4. html5和Flash對抗是什么情況?5. 求救一下,用新版的phpstudy,數據庫過段時間會消失是什么情況?6. html - 爬蟲時出現“DNS lookup failed”,打開網頁卻沒問題,這是什么情況?7. mac里的docker如何命令行開啟呢?8. boot2docker無法啟動9. 這是什么情況???10. gosts內容是空的
排行榜
