W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
const names: string[] = []; names.push("Dylan"); // 没有错误 names.push(3); // 错误:类型 'number' 的参数不能赋给类型 'string' 的参数 console.log(names);