Promise 构造函数是同步执行还是异步执行,那么 then 方法呢?
promise构造函数是同步执行的,then方法是异步执行的。
验证code:
const promise = new Promise((resolve, reject) => { console.log(1) resolve() console.log(2) }) promise.then(() => { console.log(3) }) console.log(4)
大厂面试的时候看重基础,更看重实战项目经验,业务场景使用的具体技术吧
这道题套路也太多了,一不小心就中了陷阱
介绍一下标准的CSS的盒子模型?
请你谈谈Cookie的弊端
什么是 Cookie?它的作用是什么?
ArrayList和LinkedList的区别,以及各自是怎么实现扩容的?
大厂面试的时候看重基础,更看重实战项目经验,业务场景使用的具体技术吧
这道题套路也太多了,一不小心就中了陷阱