当前位置:网站首页>TS - type
TS - type
2022-08-04 13:03:00 【monstkl】
One, basic type data
let a: number = 3let a: stringlet a: boolean
Second, the array
let a: string[] = ['jim']let a: number[]let a: boolean[]
Three, the object
let a: {name: stirng,age: number,lesson: {title: string}[]}a = {name: 'jim',age: 18,lesson: [{title: 'language'},{title: 'Math'},]}
Four, function
Set parameters and return valuesfunction sum (a: number, b: number): number {return a + b}
边栏推荐
猜你喜欢
做项目管理有且有必要了解并学习的重要知识--PMP项目管理
【VSCode】一文详解vscode下安装vim后无法使用Ctrl+CV复制粘贴 使用Vim插件的配置记录
Haproxy搭建web群集
新消费、出海、大健康......电子烟寻找“避风港”
“蔚来杯“2022牛客暑期多校训练营2 G、J、K
Cool and efficient data visualization big screen, it's really not that difficult to do!丨Geek Planet
【UML】信息系统分析与设计知识点总结
《社会企业开展应聘文职人员培训规范》团体标准在新华书店上架
ShanDong Multi-University Training #4 A、B、C、G
Valentine's Day Romantic 3D Photo Wall [with source code]
随机推荐
视觉SLAM十四讲学习笔记 第7讲 视觉里程计
Chinese valentine's day of young people crazy to make money, earn 140000 a week
router---模式
A discussion of integrated circuits
并发刺客(False Sharing)——并发程序的隐藏杀手
拥有一台服务器,程序猿装X的开始
COMSOL空气反应 模型框架
Billboard
面试官:连 INSERT INTO SET 都不知道怎么用,你这3年都干些什么了?
"Lonely Walking on the Moon" is a powerful medicine, it can't cure the internal friction of happy twist
Launcher app prediction
CReFF缓解长尾数据联邦学习(IJCAI 2022)
RT-Thread stm32 基础记录
未来已来,只是尚未流行
新消费、出海、大健康......电子烟寻找“避风港”
A Collection of Flutter Tutorials (2022 Edition)
oracle sql中根据条件判断是否插入数据
两个数组中用第二个数组的Value对比换第一个数组中的Key
ROS设置plugin插件
【Game Of AutoTest】1、再度启程,重识游戏自动化测试