0
我有這樣一段代碼:迭代通過一個JSON對象,基於在mootools的陣列的價值
['design','finish','grills'].each(function(type) {
this.json.type.each(function(obj, index) {
console.log(obj);
});
}.bind(this));
而得到這個錯誤:
this.json.type is undefined
我如何去製作type
一個有效的事情做一個each
? 我不知道正確的術語,所以任何幫助,這也將是一個獎金:)