裏面我得到了類似結果陣列JSON數組
{"ID":1022,"Type":"type1","Name":"name1","Values":[{"ID":3540,"Name":"1"},{"ID":3541,"Name":"2"},{"ID":3542,"Name":"cb"}]}
等成功我得到的功能類似這樣的
success: function(data) {
$.each(data, function() {
$('#properties').append(
this.ID + "," +
this.Name + "," +
this.type + "," +
this.values
);
});
}
但「價值」是另一個數組,所以如何顯示呢?
不工作試圖this.values [0] .ID和這樣的:爲了一個變量傳遞給函數在創建時,而不是當它被調用時,你應該有這樣的另一個函數把它包.values.lenght –