this 關鍵字通常在對象的構(gòu)造函數(shù)中使用,用來引用對象。示例在下面示例中,this 指的是新創(chuàng)建的 Car 對象,并給三個屬性賦值。function Car(color, make, model){ this.color = color; this.make = make; this.model = model; }對于JScript 的客戶版本,如果在其他所有對象的上下文之外使用 this,則它指的是 ...
www.dbjr.com.cn/shouce/script56/Script5... 2025-5-25