网站首页
编程语言
数据库
系统相关
其他分享
编程问答
allProps
2024-07-10
TypeScript中的交叉类型
交叉类型:将多个类型合并为一个类型,使用&符号连接。typeAProps={a:string}typeBProps={b:number}typeallProps=AProps&BPropsconstInfo:allProps={a:'小月月',b:7} 我们