文章詳情頁(yè)
javascript - 七牛接口跨域
瀏覽:168日期:2023-03-07 16:47:49
問(wèn)題描述
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) }});
問(wèn)題解答
回答1:dataType: ’jsonp’
jquery jsonp跨域
標(biāo)簽:
JavaScript
上一條:javascript - 如何在鼠標(biāo)不動(dòng)(沒(méi)有mousemove)的時(shí)候 獲取鼠標(biāo)位置下一條:javascript - 在textarea中插入文本
相關(guān)文章:
1. docker - 各位電腦上有多少個(gè)容器啊?容器一多,自己都搞混了,咋辦呢?2. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””3. mac里的docker如何命令行開(kāi)啟呢?4. 關(guān)于docker下的nginx壓力測(cè)試5. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問(wèn)題6. nignx - docker內(nèi)nginx 80端口被占用7. docker容器呢SSH為什么連不通呢?8. 如何解決Centos下Docker服務(wù)啟動(dòng)無(wú)響應(yīng),且輸入docker命令無(wú)響應(yīng)?9. docker start -a dockername 老是卡住,什么情況?10. dockerfile - 我用docker build的時(shí)候出現(xiàn)下邊問(wèn)題 麻煩幫我看一下
排行榜

熱門(mén)標(biāo)簽
網(wǎng)公網(wǎng)安備