标签:code logs 元祖 com const def ada div html
const numArr:number[]=[1,2,3] const strArr:string[]=[‘a‘,‘b‘,‘c‘] const undeArr:undefined[]=[undefined,undefined]
const arr:(number|string)[]=[1,‘a‘,2]
const xiaojie:{name:string,age:number}[]=[ {name:"小妹",age:18} ]
type lady={name:string,age:number} const xiaojiejie:lady[]=[ {name:‘韩云‘,age:18} ]
class Madam{
name:string;
age:number;
}
const dajiejie:Madam[]=[]
const dajiejie:[string,string,number]=[‘dajiao‘,‘teach‘,29]
转载至:https://www.cnblogs.com/lxz-blogs/p/13565072.html
标签:code logs 元祖 com const def ada div html
原文地址:https://www.cnblogs.com/qianxiaoPro/p/14703070.html