我在jsp页面定义了一个变量:
<script type="text/javascript">
var wpmagazine=[{"title":"11","content":"coco"},
{"title":"22","content":"nana"}];
</script>
然后在下面想要用angularJS 循环json数组,该怎么做?
<p class="zxzz-cont" ng-repeat="">
<p class="zx-img"><a href="#"><img src="img/new_img1.jpg" /></a></p>
<p class="zx-text">
<p class="zx-tit"><a href="#">title</a></p>
<p class="zx-zy">content</p>
</p>
</p>