当前位置:网站首页>TS - type
TS - type
2022-08-04 13:03:00 【monstkl】
One, basic type data
let a: number = 3let a: stringlet a: booleanSecond, 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}边栏推荐
猜你喜欢
随机推荐
微信小程序使用腾讯云对象储存上传图片
【VSCode】一文详解vscode下安装vim后无法使用Ctrl+CV复制粘贴 使用Vim插件的配置记录
Do you understand the various configurations in the project?
A Collection of Flutter Tutorials (2022 Edition)
视觉SLAM十四讲学习笔记 第7讲 视觉里程计
Why is Luo Zhenyu's A-share dream so difficult to fulfill?
Launcher app prediction
npm install出现的各种问题
Motion Rule (16)-Union Check Basic Questions-Grid Game
String is a reference type
一分钟认识 IndexedDB 数据库,太强大了!
座舱人机交互「暗潮汹涌」,语音「下」,多模态「上」
5 cloud security management strategies enterprises should implement
Geoffrey Hinton:深度学习的下一个大事件
Chinese valentine's day of young people crazy to make money, earn 140000 a week
并发刺客(False Sharing)——并发程序的隐藏杀手
Billboard
牛客网刷题记录 || 链表
【黑马早报】尚乘数科上市13天,市值超阿里;北大终止陈春花聘用合同;新东方花近200亿退学费和遣散费;张小泉75%产品贴牌代工...
oracle sql中根据条件判断是否插入数据


![LeetCode 1403 非递增顺序的最小子序列[贪心] HERODING的LeetCode之路](/img/fd/c827608b96f678a67c7e920c51d8c5.png)



![Valentine's Day Romantic 3D Photo Wall [with source code]](/img/a9/2c26f4f048f3c0a9a65551bc734233.png)


