Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 html 代码有问题:
<td id="por">data loads here :{{data}}</td>
如您所见,我正在使用 Angularjs,问题是在编译时,“数据”检索未编译的 HTML,那么如何查看已编译的 HTML 页面?
如果您data包含 html 代码,则需要使用以下内容:
data
<div ng-bind-html-unsafe="data"></div>
请注意,从 AngularJS 1.2 版开始,它已更改为:
<div ng-bind-html="data"></div>
您在此处提供的代码越多,我们就越容易为您提供帮助。