【发布时间】:2016-09-11 05:19:55
【问题描述】:
我的 app.js 看起来像
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.eventmetrics = [
{
_id: '57d439cf666a8d1080003e90',
firstName: [ 'name', 'text' ],
lastName: [ 'last', 'text' ],
taginvitations: ['first,second,third', 'text'],
userId: 1,
tagcontact: ['file,second,third,fourth', 'text']
}
]
});
我想在列表示例中打印 tag1 和 tag2 的数组
邀请
- 首先
- 秒
- 第三
联系
- 首先
- 秒
- 第三
- 第四个
【问题讨论】:
-
你想在哪里打印?
-
我的 json 来自数据库,我想动态打印而不是使用静态 tag1 和 tag2
-
然后将 tag1 指定为您的服务器返回的任何内容
-
谁能解决这个问题?
标签: html angularjs arrays json