上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页
摘要: 阅读全文
posted @ 2020-05-10 08:44 TTtttt5 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 借鉴vue源码。 阅读全文
posted @ 2020-05-10 08:33 TTtttt5 阅读(228) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/yehuisir/p/12674475.html 国外网站:https://www.crx4chrome.com/ 搜索“Vue.js devtool” 阅读全文
posted @ 2020-05-10 00:53 TTtttt5 阅读(111) 评论(0) 推荐(0) 编辑
摘要: vm._render 最终是通过执行 createElement 方法并返回的是 vnode Vue.prototype._render = function () { var vm = this; var ref = vm.$options; var render = ref.render; va 阅读全文
posted @ 2020-05-09 16:11 TTtttt5 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 源码如下: var mount = Vue.prototype.$mount; Vue.prototype.$mount = function ( el, hydrating ) { el = el && query(el); //query是看el是字符串还是组件,如果是字符串就去document 阅读全文
posted @ 2020-05-09 15:18 TTtttt5 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: new Vue的时候会调用Vue源码里的core/instance/init,js文件 export function initMixin (Vue: Class<Component>) { Vue.prototype._init = function (options?: Object) { co 阅读全文
posted @ 2020-05-09 10:59 TTtttt5 阅读(114) 评论(0) 推荐(0) 编辑
摘要: vue源码给出答案因为 const keys = Object.keys(data) vue会先去遍历data,然后去判断method和props是否有同名的,最终都会挂载到vm实例上 >proxy(data,“_data”,key) 所以其实this.key this._data.key targ 阅读全文
posted @ 2020-05-09 10:44 TTtttt5 阅读(1640) 评论(0) 推荐(0) 编辑
摘要: 看vue源码学到的判断类型 阅读全文
posted @ 2020-05-09 10:09 TTtttt5 阅读(150) 评论(0) 推荐(0) 编辑
摘要: http://www.ruanyifeng.com/blog/2013/01/javascript_source_map.html 阅读全文
posted @ 2020-05-08 23:57 TTtttt5 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-05-07 21:06 TTtttt5 阅读(318) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 26 下一页