参考地址:https://www.tslang.cn/docs/handbook/basic-types.html
1.类的构造函数中的参数使用public修饰符,类默认包含该属性
2.类型转换
方式一:尖括号:
var num : any = "30";
var age : number = <number>num;
方式二: as
var num : any = "30";
var age : number = num as number ;
3.只读属性
4.可索引类型
5.泛型类型
6.new() 是啥?