我想打印JSON文件中HTML頁面,但我不知道鍵和值我JSON對象顯示從JSON對象鍵值對。如何使用角
當我知道JSON的形式,我用這個代碼:
<div ng-repeat="f in faq">
<div class="list-group-item clearfix">
<h4>
<span class="glyphicon glyphicon-file">
</span>
{{f.key}}-{{f.value}}
<span class="pull-right">
<button class="btn btn-warning" ng-click="">
<span class="glyphicon glyphicon-trash">
</span>
</button>
</span>
</h4>
</div>
</div>
</div>
但在這一刻,我不知道鑰匙和JSON的值。
感謝您的幫助。
您是否使用某種框架呈現'{{}}'模板? – Soviut
@Soviut它應該是AngularJS。 – kitsune