Feedback on using new URL (
, import. meta. URL). href
#15290
Labels
documentation
Improvements or additions to documentation
, import. meta. URL). href
#15290
Documentation is
Explain in Detail
When I use template strings like this,
const pngName = 'sun.png' let img = new URL(
../../assets/icons/weather/${pngName}, import.meta.url).href
it's correct.Or I can use it this way
let img = new URL(
@/assets/icons/weather/sun.png, import.meta.url).href
, which is also correct.But using both together is wrong.like
const pngName = 'sun.png' let img = new URL(
@/assets/icons/weather/${pngName}, import.meta.url).href
Your Suggestion for Changes
Please continue to improve the relevant manuals or optimize them
Reproduction
No response
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: