随笔分类 -  前端:JS什锦

摘要:新类型 元组(Tuple) // Declare a tuple type let x: [string, number]; // Initialize it x = ["hello", 10]; // OK // Initialize it incorrectly x = [10, "hello" 阅读全文
posted @ 2021-01-28 14:15 rentu 阅读(105) 评论(0) 推荐(0)