search

Home  >  Q&A  >  body text

javascript - vue src path problem

The tag given directly by the background

<img src="images/ic_search.png">

Error report:

Add ./ and the path is correct

<img src="./images/ic_search.png">

How to configure vue to make the following path correct

<img src="images/ic_search.png">
天蓬老师天蓬老师2803 days ago654

reply all(1)I'll reply

  • 为情所困

    为情所困2017-05-19 10:42:30

    If you don’t add ./, it will be an absolute path. The absolute path is relative to the root node, which is /. If you add it, it will be a relative path, relative to the current file.

    reply
    0
  • Cancelreply