摘要: 问题: 在AngularJS 1.x 中可以使用ng-bind-html来插入一段html代码,相当于struts2 标签的escape属性。但是AngularJS 2中取消了ng-bind-html,当项目中确实有需要动态插入html代码的时候我们该怎么做呢? 解决方法: 使用[innerHtml 阅读全文
posted @ 2016-12-14 23:57 lvhongqiang 阅读(406) 评论(0) 推荐(0) 编辑