摘要:
function test(a){ a == 1 && a== 2 && a == 3 && console.log('all true') } 此题涉及到引用类型 关羽这知识点建议百度或者看《你不知道的JavaScript》 第一种解题思路是用Object.definedprotype这里不多介绍 阅读全文
摘要:
上代码 const arr = [1,2,3,4,5] function t(num) { return new Promise((resolve, reject) => { setTimeout(()=>{ console.log('定时器', num) resolve() }, 1000) }) 阅读全文