![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
8月面试题
mzrybbd
motto is 好好学习,天天向上。
展开
-
路白面试题
整体 async function async1() { console.log("async1 start"); await async2(); console.log("async1 end"); Promise.resolve().then(() => { console.log("children3"); }); // new Promise(funtion(){ // async2() // }).then(function(){ //原创 2021-08-10 22:11:14 · 83 阅读 · 0 评论 -
js 面试题
1. class转为es5 2. 冻结对象obj,const obj = { a: { b: { c: 1 } } }; // 递归执行,要领是先返回不符合要求的,在执行符合要求的,最后循环递归符合要求的。 function completeFreezeObj(obj) { if (Object.prototype.toString.call(obj) !== "[object Object]") { return; } Object.freeze(obj); Obje..原创 2021-08-08 19:35:26 · 63 阅读 · 0 评论