摘要:
来自:https://jack-cool.github.io/2019/08/05/tsconfig-json-%E9%85%8D%E7%BD%AE%E8%AF%A6%E8%A7%A3/ { "compilerOptions": { /* Basic Options */ "target": "es 阅读全文
摘要:
1.for..of和for..in均可迭代一个列表;但是用于迭代的值却不同,for..in迭代的是对象的 键 的列表,而for..of则迭代对象的键对应的值。 let list = [4, 5, 6]; for (let i in list) { console.log(i); // "0", "1 阅读全文