2020年9月12日
摘要: 看一道对象和map的题: function test1(){ var a={},b='123',c=123; a[b]="b"; a[c]="c"; console.log('a :>> ', a);// {123:"c"} console.log('a[b] :>> ', a[b]); // 断言 阅读全文
posted @ 2020-09-12 21:38 rainbowLover 阅读(5297) 评论(1) 推荐(0) 编辑
摘要: 今天记录下一个关于js宏任务、微任务、事件轮巡机制的经典面试题: async function async1(){ console.log("1"); await async2(); // async2(); console.log("2"); } async function async2(){ 阅读全文
posted @ 2020-09-12 20:41 rainbowLover 阅读(1044) 评论(1) 推荐(0) 编辑