会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
simple-love
Figure out what you like. Try to become the best in the world of it.
首页
新随笔
订阅
管理
2021年10月13日
TypeScript 之 Record
摘要: 正文 在 TS 中,类似数组、字符串、数组、接口这些常见的类型都非常常见,但是如果要定义一个对象的 key 和 value 类型该怎么做呢?这时候就需要用到 TS 的 Record 了。 上代码: interface PageInfo { title: string; } type Page = "
阅读全文
posted @ 2021-10-13 15:35 simple-love
阅读(489)
评论(0)
推荐(0)
My GitHub