在下面的代码中,“info”对象有描述、数量、值。如何将它们作为数组提供(Indo 属性)。如何以 Angular 代码检索。
details.customsDetail.itemDetails = {
currency : "2000USD",
weight : "lbs",
info : {
description : "descr",
quantity : "2",
value : "124",
}
};
最佳答案
您的意思是,indo 属性作为对象数组吗?
details.customsDetail.itemDetails = {
currency : "2000USD",
weight : "lbs",
info : [{ // How to give this in a array.
description : "descr",
quantity : "2",
value : "124",
}]
};
关于angularjs - 在对象中创建对象数组 - Node.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43269940/