我有这个:
[Object]
0:Object
zipCode:"1232"
现在我想要的是从我试过的对象获取zipCode:
Object[0].zipCode
但是我收到0未定义的消息
更新
this.restService.getByParam("findAddress", customerId)
.subscribe(results => {
this.address = results.payload;
});
然后我得到那个对象,现在我想做这样的事情:
console.log(this.address[0].zipCode
答案 0 :(得分:1)
var m = $('#modal_appointments');
m.css('width', '850px');
m.css('max-width', '100%');
m.css('margin', '50px auto 50px auto');
m.modal('show');
答案 1 :(得分:0)