因为TypeScript是JavaScript的超集,所以它本身就支持 let 和 const 。 ... swap variables [first, second] = [second, first];. 作用于函数参数: 复制到剪切板
確定! 回上一頁