- Vue 的生命周期
- vm.$nextTick 原理
- 跨域
- JSOP 的原理(为什么不能进行 POST 请求)
- cors (get 请求一定是简单请求吗?)
- 浏览器缓存
- 状态码
- 基本数据类型以及二者的区别,bigInt
- 堆的定义
- 输出
async function async1() {
console.log('async1 start');
await async2();
console.log('async1 end');
}
async function async2() {
console.log('async2');
}
console.log('script start');
setTimeout(function () {
console.log('setTimeout');
}, 0);
async1();
new Promise(function (resolve) {
console.log('promise1');
resolve();
}).then(function () {
console.log('promise2');
});
console.log('script end'); - 二分查找 - 数组去重
全部评论
(0) 回帖