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.
例如:
<span class="'"+${Status}+"'">${Name}</span>
我正在尝试将我的 CSS 类设置为我正在显示其姓名的用户的状态。
上面的语法是错误的。
如何嵌入${Status}引号中的值?
${Status}
使用单引号分隔符:
<span class='${Status}'>${Name}</span>