美文网首页
json 中使用html 标签

json 中使用html 标签

作者: sunflower_07 | 来源:发表于2017-06-06 17:41 被阅读0次

    json 中使用html 标签

    json 数据中有HTML标签怎么使用

    1.使用AngularJS 中ng-bind-html 指令

    ng-bind-html="expression"

    expression指定要执行的变量或表达式。

    2.引入AngularJs 中的angular-sanitize.js文件

    3.并在模块中注入ngSanitize

    相关文章

      网友评论

          本文标题:json 中使用html 标签

          本文链接:https://www.haomeiwen.com/subject/bteufxtx.html