文章詳情頁
javascript - 七牛接口跨域
瀏覽:97日期: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. 對mysql某個字段監(jiān)控的功能2. javascript - windows下如何使用babel,遇到了困惑3. html5 - ElementUI table中el-table-column怎么設置百分比顯示。4. javascript - js中向下取整5. python - 為什么正常輸出中文沒有亂碼,zip函數(shù)之后出現(xiàn)中文編程unicode編碼的問題,我是遍歷輸出的啊。6. html - vue項目中用到了elementUI問題7. showpassword里的this 是什么意思?代表哪個元素8. java enum 變量不能再case里面重復定義?9. JavaScript事件10. javascript - table列過多,有什么插件可以提供列排序和選擇顯示列的功能
排行榜

熱門標簽