instanceof 運算符用來檢測constructor.prototype是否存在於參數object的原型鏈上。 // 定義構造函數function C(){} function D(){} var o = new C(); o instanceof C; / ...
確定! 回上一頁