1
我正在閱讀ExtJS 4源代碼。這是克隆方法的一部分。爲什麼克隆方法在EntJS 4中向後倒退?爲什麼克隆方法在ExtJS 4中向後倒退?
if (type === '[object Array]') {
i = item.length;
clone = [];
while (i--) {
clone[i] = Ext.clone(item[i]);
}
}
你是對的!在JavaScript中,0被視爲false。 –