文章詳情頁
javascript - 圖片無法正常加載
瀏覽:310日期:2023-09-05 09:33:59
問題描述
首先小菜(本人) 用Node.js搭建了一個本地服務器用 http://localhost:3000/index.html 訪問寫好的html 頁面,但是網頁中的 所用到的 線上圖片都無法正常加載出來 ,跪求解決之道。
現象如下, html 中使用的是線上絕對地址<img src='http://file.xitie.net.cn/91_4... class='on'>
http://localhost:3000/index.html 訪問下

在open in new tab 下 又是正常的。

查找原因 發現, localhost下 拉圖片的 remote Address 和 新窗戶打開下的地址是不一樣的Remote Address:183.134.9.58:80
請指教
問題解答
回答1:https://imququ.com/post/x-for... 我想這篇文章能夠幫到你
標簽:
JavaScript
相關文章:
1. 關docker hub上有些鏡像的tag被標記““This image has vulnerabilities””2. boot2docker無法啟動3. docker-compose中volumes的問題4. docker安裝后出現Cannot connect to the Docker daemon.5. nignx - docker內nginx 80端口被占用6. java - SSH框架中寫分頁時service層中不能注入分頁類7. 關于docker下的nginx壓力測試8. dockerfile - 為什么docker容器啟動不了?9. node.js - antdesign怎么集合react-redux對input控件進行初始化賦值10. docker容器呢SSH為什么連不通呢?
排行榜

網公網安備