5、AngularJS 直接绑定显示html ($sce、$sanitize服务)
摘要:
1、直接使用$sce服务(angularjs中:$sce.trustAsHtml($scope.snippet)。html:ng-bind-html="snippet") 以下代码输出: 2、使用angular-sanitize.js 模块中的$sanitize服务,信任字符串,直接显示html 以 阅读全文
posted @ 2018-03-02 12:18 ducky_L 阅读(213) 评论(0) 推荐(0) 编辑