Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

米哈游面试题(day6) #23

Open
robbiemie opened this issue Mar 9, 2024 · 0 comments
Open

米哈游面试题(day6) #23

robbiemie opened this issue Mar 9, 2024 · 0 comments
Labels
css 网络(http、tcp) Extra attention is needed js promise vue This issue or pull request already exists webpack Good for newcomers 源码细节

Comments

@robbiemie
Copy link
Owner

  1. BFC
  2. 实现如下布局
o 
    o
        o
o   o   o
  1. typeof 原理,局限性
  2. instanceOf 原理
  3. Array instanceOf Array
  4. [] instanceOf Object
  5. 说出执行结果
setTimeout(() => {
    console.log('1')
    Promise.resolve().then(() => {
        console.log('2')
    })
})

console.log('3')
Promise.resolve().then(() => {
    console.log('4')
    setTimeout(() => {
        console.log('5')
    })
})
  1. 说出执行结果
function double (x) {
    return new Promise(resolve=> {
        setTimeout(() => {
            resolve(x * 2)
        })
    })
}

function test() {
    const nums = [1,2,3]
    nums.forEach(async item => {
        const res = await double(item)
        console.log(res)
    })
}
  1. v-for 和 v-if 连用,优先级
  2. v-model 实现原理
  3. .sync 语法
  4. slot 用法
  5. vue的异步组件
  6. 懒加载
  7. 动态组件
  8. keep-alive 原理
  9. 双向绑定的原理
  10. template 如何解析执行的
  11. vue 生命周期函数
  12. 父子组件生命周期函数调用执行顺序
  13. webpack 优化手段
  14. happy pack 底层原理
  15. package.json.lock 文件作用
  16. 浏览器缓存
@robbiemie robbiemie added vue This issue or pull request already exists 网络(http、tcp) Extra attention is needed webpack Good for newcomers css js promise 源码细节 labels Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css 网络(http、tcp) Extra attention is needed js promise vue This issue or pull request already exists webpack Good for newcomers 源码细节
Projects
None yet
Development

No branches or pull requests

1 participant