我有以下内容:
var selected = true;
<span class="selected-@selected">text</span>
根据 selected 的值,我期望得到以下输出:
<span class="selected-True">text</span>
<span class="selected-False">text</span>
但我得到:
<span class="selected-class">text</span>
<span class="selected-">text</span>
谁能解释一下?