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.
我的 Jade 视图中有以下内容:
- var items = "one" each item in items div(id= #{items})
我想要的是:
<div id="one"></div>
但翡翠呈现:
<div id="undefinedoneundefined"></div>
这让我发疯,我正在使用 Jade 和 Express.js。
顺便说一句,我问过类似但不太清楚的问题,希望不要因为我的愚蠢而惹恼任何人。
像这样的东西?
- var items = ["one", "two", "three"] each item in items div(id= item)