2. Vue 2.0和3.0数据绑定的区别?说了Object.defineProperty 和 Proxy
3. Vue 3.0 Proxy能解决什么问题, 原理?
4. 0.1 + 0.2 为什么不等于0.3? 说了浮点数转化为该标准的二进制的过程中出现的丢失
5. 怎么解决? 说了先用乘法再用除法
6. JS计数规则 IEEE 754了解过吗 组成原理里面的
7. Vue 中路由这么做的?说了js中用hash和history做的
8. 那vue中具体怎么做的呢?
9. ajax如何在跨域的情况下携带cookie
10. cookie是什么?
11. ajax具体实现的步骤
12. 对url的处理?decodeURIComponent()
13. decodeURIComponent()怎么处理的?
14. vue $.nextTick
代码题:
1.不在严格模式下
function Foo() {
getName = function() {
console.log(1);
};
return this
}
function getName() {
console.log(5);
}
Foo().getName(); // 输出是?
2.
const async1 = async() => {
console.log('第一个async函数开始');
await async2();
console.log('第一个async函数结束');
}
const async2 = async() => {
console.log('第二个async函数执行');
}
console.log('开始执行');
setTimeout(() => {
console.log('setTimeout执行');
}, 0)
new Promise(resolve => {
console.log('promise执行');
for (var i = 0; i < 100; i++) {
i == 99 && resolve();
}
}).then(() => {
console.log('执行then函数')
});
async1();
console.log('结束');
3. 给出一个数组,找出第K大的项。
全部评论
(5) 回帖