我是使用Jade的新手 - 目前爲止它非常棒。Jade:沒有價值的元素屬性
但有一兩件事,我需要發生的是一種元素與 '的itemscope' 屬性:
<header itemscope itemtype="http://schema.org/WPHeader">
我的玉記法是:
header(itemscope, itemtype='http://schema.org/WPHeader')
但是結果是:
<header itemscope="itemscope" itemtype="http://schema.org/WPHeader">
如何確保我獲得正確的結果 - itemscope
而不是itemscope="itemscope"
?
itemscope =「itemscope」只會像itemscope一樣工作。看起來這就是Jade的默認行爲。我只是隨它而去。 – jwerre