構造函數

問: 1.判斷一個變量是數組         2.寫一個原型鏈         3.new的過程         4.zepto的構造使用。 知識點:     1.構造函數首字母大寫。     function Foo (name,age){        this.name = name         this.age = age          return this  //默認執行   
相關文章
相關標籤/搜索