文章详情页
javascript - 图片无法正常加载
浏览:325日期: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. dockerfile - [docker build image失败- npm install]2. docker网络端口映射,没有方便点的操作方法么?3. 关docker hub上有些镜像的tag被标记““This image has vulnerabilities””4. docker-compose中volumes的问题5. boot2docker无法启动6. docker gitlab 如何git clone?7. docker images显示的镜像过多,狗眼被亮瞎了,怎么办?8. dockerfile - 我用docker build的时候出现下边问题 麻烦帮我看一下9. mysql - phpmyadmin怎么分段导出数据啊?10. docker api 开发的端口怎么获取?
排行榜
![dockerfile - [docker build image失败- npm install]](http://www.haobala.com/attached/image/news/202311/1028105a80.png)
网公网安备