Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将动态 url 链接存储到 pug 变量#{img} 中。现在我想将该变量包含到我的图像元素中。谁能帮我填空?
#{img} //some dynamic url img(src=" ") //want to set src = #{img}
像这样做
- var img = "img/test.jpg" img(src=img)
并阅读此