文章詳情頁
javascript - 圖片無法正常加載
瀏覽:334日期: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 下 又是正常的。

查找原因 發(fā)現, localhost下 拉圖片的 remote Address 和 新窗戶打開下的地址是不一樣的Remote Address:183.134.9.58:80
請指教
問題解答
回答1:https://imququ.com/post/x-for... 我想這篇文章能夠幫到你
標簽:
JavaScript
相關文章:
1. golang - 用IDE看docker源碼時的小問題2. javascript - 請指條明路,angular的$event,在select中卻是undefined?3. 前端 - @media query 使用出現的問題?4. 我何時應該在Java中使用JFrame.add(component)和JFrame.getContentPane()。add(component)5. html - css氣泡,實現“倒三角(不知道算不算三角了)”可透明的。6. 運行python程序時出現“應用程序發(fā)生異常”的內存錯誤?7. docker - 如何修改運行中容器的配置8. 利用IPMI遠程安裝centos報錯!9. phpstudy8.1沒集成mysql-front10. html5和Flash對抗是什么情況?
排行榜

網公網安備