我最近为我的 Jade 和 Connect-Assets 升级了我的 package.json。 Jade 0.35 到 1.30 和 Connect-Assets 2.3.3 到 3.0.0-beta1。但我对以下语法有疑问:
meta(name="viewport", content="initial-scale=1.0, width=device-width, user-scalable=no")
//- link(rel="icon", type="image/png", href="/static/favicon.ico")
//- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons
link( href="../../../bootstrap/3.0.0/css/bootstrap.min.css", rel="stylesheet")
link( href="../../../ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css", rel="stylesheet")
!= css('custom')
准确地说是最后一行 != css('custom')
bên cạnh đó
!= js('app')
!= js('controllers')
!= js('directives')
!= js('filters')
!= js('services')
Cảm ơn trước!
较新版本的 Jade 存在一个您可能遇到的已知问题 — 请参阅 this GitHub issue .
app.use(require('connect-assets')({
helperContext: app.locals
});
Tôi là một lập trình viên xuất sắc, rất giỏi!