search

Home  >  Q&A  >  body text

javascript - Image not loading properly

First of all, Xiaocai (myself) built a local server using Node.js
Use http://localhost:3000/index.html to access the written html page,
But the lines used in the web page The above pictures cannot be loaded normally, I am begging for a solution.

The phenomenon is as follows,
html uses an online absolute address
<img src="http://file.xitie.net.cn/91_4... class="on">

http://localhost:3000/index.html Visit

It is normal again under open in new tab.

Find the reason and found that the remote address of the localhost pull-down picture and the address opened in the new window are different
Remote Address:183.134.9.58:80

Please advise

天蓬老师天蓬老师2728 days ago644

reply all(1)I'll reply

  • 迷茫

    迷茫2017-06-05 11:15:06

    https://imququ.com/post/x-for... I think this article can help you

    reply
    0
  • Cancelreply