有没有办法将有角度的“实时 DOM”转换为扁平的纯 html?我的意思是转这个:
<!-- ngRepeat: ref in refs track by $index -->
<p ng_repeat="ref in refs track by $index" class="ng-scope ng-binding">a0120</p>
<p ng_repeat="ref in refs track by $index" class="ng-scope ng-binding">a0241</p>
<p ng_repeat="ref in refs track by $index" class="ng-scope ng-binding">z1242</p>
<p ng_repeat="ref in refs track by $index" class="ng-scope ng-binding">a0120</p>
进入这个:
<p>a0120</p>
<p>a0241</p>
<p>z1242</p>
<p>a0120</p>
当然,与角度编译过程无关的类和属性将被保留。
谢谢
谢谢