Looking to achieve the following:
Obviously this compiles to: 2条回答 醉梦人生 (楼主) 2020-12-28 12:15 Try this (ES5): ... Or with ES6+ ... Remember that everything between { and } is just Javascript, so the expression is 'total total-' + obj.state which is then set as the class of the DOM node. 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Obviously this compiles to:
Try this (ES5):
...
Or with ES6+
Remember that everything between { and } is just Javascript, so the expression is 'total total-' + obj.state which is then set as the class of the DOM node.
{
}
'total total-' + obj.state