我在想,也許我錯過了JavaScript中的一些東西,我現在只是在接受。 我想這個代碼在Chrome控制檯: a = [];
a.name = "test";
JSON.stringify(a);
// which returns value []
a = new Object();
a.name = "test";
JSON.stringify(a);
// which retur
創建對象,我做的東西像創建JavaScript對象的方式: function field(name,label){
this.name = name
this.label= label;
}
var a = new field("market","Mkt").
然後,我分配到另一個對象。 object.newField = a;
做它的第二個方法是創建一個新的
當試圖對包含對象數組的對象進行串化處理時,當我看到有值時,我得到一個空數組。 filterDto: {
Expressions: []
},
/* Using a tempArray to see if its an object issue of my filterDto.Expressions */
fnBuildFilterValues: function(