javascript - What does the wavy line in the src attribute in the vue+webpack project mean?
PHPz
PHPz 2017-05-16 13:35:40
0
2
1922
<img src="~examples/assets/images/hamburger.png" class="image">

What does the wavy line here mean?

PHPz
PHPz

学习是最好的投资!

reply all(2)
滿天的星座

Absolute path, adding ~ is the absolute path, no matter what path your current .vue file is under. will match the absolute path configured in the example.

phpcn_u1582

This is an alias configured in webpack. Configure resolve.alias in webpack and you can use it. Find the relevant configuration yourself

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template