文章詳情頁
javascript - 圖片無法正常加載
瀏覽:137日期:2023-09-05 09:33:59
問題描述
首先小菜(本人) 用Node.js搭建了一個(gè)本地服務(wù)器用 http://localhost:3000/index.html 訪問寫好的html 頁面,但是網(wǎng)頁中的 所用到的 線上圖片都無法正常加載出來 ,跪求解決之道。
現(xiàn)象如下, html 中使用的是線上絕對地址<img src='http://file.xitie.net.cn/91_4... class='on'>
http://localhost:3000/index.html 訪問下
在open in new tab 下 又是正常的。
查找原因 發(fā)現(xiàn), localhost下 拉圖片的 remote Address 和 新窗戶打開下的地址是不一樣的Remote Address:183.134.9.58:80
請指教
問題解答
回答1:https://imququ.com/post/x-for... 我想這篇文章能夠幫到你
標(biāo)簽:
JavaScript
相關(guān)文章:
1. javascript - webpack 報(bào)錯(cuò) 新人 求解2. nginx 80端口反向代理多個(gè)域名,怎樣隱藏端口的?3. angular.js - 關(guān)于ng-model和ng-bind的疑問4. node.js - 跑antd的的模板例子!想修改端口,怎么修改呢!!(里面好像用了什么dora插件!!!)5. windows-7 - Wamp集成環(huán)境Apache無法啟動(dòng)6. android - NavigationView 的側(cè)滑菜單中如何保存新增項(xiàng)(通過程序添加)7. angular.js - angular做點(diǎn)擊購買時(shí)的遮罩層8. 關(guān)于thinkphp 5.1中,ajax提交數(shù)據(jù)url的格式寫法,加花括號就出錯(cuò),請老師指點(diǎn)9. 有大佬知道這種接口文件怎么使用嗎?10. tp5 不同控制器中的變量調(diào)用問題
排行榜

熱門標(biāo)簽