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.
我正在使用 Lineman,我必须在页面的 body 标记之前包含 Modernizr.js。常规的 app.js 应该在其默认位置,在正文的末尾。碰巧我在项目中包含的每个 javascript 文件都捆绑在 app.js 中。
我只是想出如何处理这个问题。我只是使用 Lineman 项目下的“静态”文件夹。您放在那里的每一项资产都不会受到影响。所以我创建了一个“js”文件夹并将我的modernizr.js 文件放在那里。在网页中,只需通过“js/modernizr.js”引用即可。
我只是喜欢 Lineman.js。真的很酷!