有,該數值為1。 console.log(o.b); // 2 // o 有屬性「b」嗎? ... 是其他屬性一樣,其中也包含了上述的property shadowing(在這種情況下叫做method overriding)。
確定! 回上一頁