05 2021 档案

摘要:Vue3 的 axios封装 import axios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios' import qs from 'qs' import { Toast } from 阅读全文
posted @ 2021-05-31 21:08 shine_lovely 阅读(2289) 评论(0) 推荐(0) 编辑
摘要:手写vue - 虚拟DOM、diff算法 面试题: 1. 请简述Diff算法的执行过程 diff 的过程就是调用 名为 patch 的函数, 比较新旧节点, 一边比较,一边给真实DOM打补丁(定点更新)。 patch函数接受2个参数:oldVnode 和 vnode,分别代表 旧的节点 和 新的虚拟 阅读全文
posted @ 2021-05-25 16:16 shine_lovely 阅读(184) 评论(0) 推荐(0) 编辑
摘要:手写vue - 数据响应式、数据的双向绑定、事件监听 相关面试题: 1. MVVM的理解 MVVM:Model-View-ViewModel,也就是把MVC的Controller演变成ViewModel。 Model:数据模型,View:UI组件,ViewModel:View和Model的桥梁,数据 阅读全文
posted @ 2021-05-18 17:54 shine_lovely 阅读(119) 评论(0) 推荐(0) 编辑
摘要:axios 的使用 axios.post('https://github.com/users', {}) .then(res => {}) .catch(err => {}) 结合async/await使用 async function getUser() { const res = await a 阅读全文
posted @ 2021-05-14 10:07 shine_lovely 阅读(395) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示