【发布时间】:2014-11-05 01:13:52
【问题描述】:
我的页面中有一个 span 元素。我将单词连接到 AngularJS 中的单个变量,然后将变量引用到页面中的 span 元素。
$scope.abc = "Downstream";
$scope.abc.concat('<b>','Upstream',</b>);
查看页面时显示Downstream<b>Upstream</b>
如何用粗体单独显示Upstream这个词?
【问题讨论】:
标签: javascript html angularjs