玉 - 如何用连字符表示属性?(Jade - how to denote an attribute with a hyphen?)
我想在jade模板中的标签上放置一个html5 data-attribute 。 我到底怎么做? 以下给出了语法错误。
script(data-main="public/javascripts" src="public/javascripts/require.js")I would like to place an html5 data-attribute on a tag in a jade template. How on earth do I do this? The following gives a syntax error.
script(data-main="public/javascripts" src="public/javascripts/require.js")最满意答案
这是正确的,但您需要在属性之间使用逗号。
script(data-main="public/javascripts", src="public/javascripts/require.js")That is correct, but you need a comma between the attributes.
script(data-main="public/javascripts", src="public/javascripts/require.js")更多推荐
发布评论