基础类型
1.布尔值 2.数字 3.字符串 4.数组 5. 元组Tuple(元组类型允许标识一个已知元素数量和类型的数组,各元素的类型不必相同) 6.enum枚举 7.any 8.void 9. null 10. undefined 11. never 12. object(表示非原始类型,也就是除number,string,boolean,symbol,null或undefined之外的类型。)
1.布尔值 2.数字 3.字符串 4.数组 5. 元组Tuple(元组类型允许标识一个已知元素数量和类型的数组,各元素的类型不必相同) 6.enum枚举 7.any 8.void 9. null 10. undefined 11. never 12. object(表示非原始类型,也就是除number,string,boolean,symbol,null或undefined之外的类型。)
本文标题:TypeScript
本文链接:https://www.haomeiwen.com/subject/hhswictx.html
网友评论