-
ts的優(yōu)勢查看全部
-
介紹~~查看全部
-
TypeScript查看全部
-
TypeScript介紹查看全部
-
1.constructor(public name:string){console.log(name)} eat(){console.log(this.name)} 2.constructor(public name:string){console.log(name)}//此時的name不需要提前聲明 constructor(name:string){console.log(name)} eat(){console.log(this.name)}//此時的this.name不能被調(diào)用,此時的name應(yīng)該提前聲明查看全部
-
public類的內(nèi)部和外部都可以訪問,private只能在類的內(nèi)部可以訪問,protected是受保護的,后續(xù)講繼承時和這個有關(guān)。查看全部
-
typeScript繼承查看全部
-
為了ng2,學習一波查看全部
-
析構(gòu)表達式 數(shù)組查看全部
-
析構(gòu)表達式,從對象查看全部
-
Rest and spread: ... generator: * yield查看全部
-
generator比較復雜的 條件執(zhí)行查看全部
-
generator 用*號定義 函數(shù)體中用yield 來斷點 需要重新把函數(shù)給一個新的變量 來調(diào)用.next()查看全部
-
... 作為參數(shù)查看全部
-
... rest and spread操作符查看全部
舉報
0/150
提交
取消