# typescript_note `aaa bbb ccc` `i am ${myName}` TypeScript-参数类型 function(a:string,b:number,c:boolean){} TypeScript-参数默认值 function(a:string,b:number,c:boolean = "yoyo"){} TypeScript-可选参数 function(a,b?){} TypeScript-Rest and Spread操作符 function a(...args){} TypeScript-generator函数 function* dosomething(){ yeild } var func1 = dosomething(); func1.next(); TypeScript-析构表达式 {a,b} = {a:xx,b:yy} [a,b] = [1,2] TypeScript-箭头表达式 ()=>{}. args =>{ return a} TypeScript-for of循环 (07:16) for (a of Obj) for (a in Obj) TypeScript-类 class clazz{ private name; protected age; public weight; } TypeScript-泛型 TypeScript-接口 interface TypeScript-模块 import export TypeScript-注解 @ TypeScript-类型定义文件 .d.ts