当前位置:网站首页>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}边栏推荐
猜你喜欢
随机推荐
Diffusion Models:生成扩散模型
Arduino框架下I2S控制ADC采样以及PWM输出示例解析
k8s上安装mysql
Focus!2022 interview must brush 461 interview questions summary + interview + resume template
牛客网刷题记录 || 链表
七夕疯狂搞钱的年轻人,一周赚14万
JSX使用
干货丨数学规划视角下的分货优化解题思路
LeetCode_299_猜数字游戏
LeetCode_424_替换后的最长重复字符
Why is Luo Zhenyu's A-share dream so difficult to fulfill?
CLS-PEG-DBCO,胆固醇-聚乙二醇-二苯基环辛炔,可用于改善循环时间
石子 无限拿
sqlserver删除重复数据
The head module of the yolo series
RK1126编译gdb 板子上gdb调试程序
《独行月球》猛药,治不了开心麻花内耗
企业应当实施的5个云安全管理策略
Unity 3D模型展示框架篇之资源打包、加载、热更(Addressable Asset System | 简称AA)
A comprehensive understanding of MOS tubes, an article is enough









