摘要: 实例化时挂载DOM 从 Vue.prototype.$mount 挂载函数开始 有 template配置项时生成 render函数 阅读全文
posted @ 2018-10-29 11:29 翰弟 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1、beforeCreated/created区别? beforeCreated钩子能干什么 2、data中使用props 3、get/set依赖收集 get收集依赖(观察者) set 观察者重新求值、渲染 异步队列 js单线程语言:调用栈、任务队列、事件循环 阅读全文
posted @ 2018-10-22 15:42 翰弟 阅读(220) 评论(0) 推荐(0) 编辑
摘要: resolveConstructorOptions 阅读全文
posted @ 2018-10-18 10:57 翰弟 阅读(189) 评论(0) 推荐(0) 编辑
摘要: vue\src\platforms\web\entry-runtime-with-compiler.js 阅读全文
posted @ 2018-10-12 18:14 翰弟 阅读(430) 评论(0) 推荐(0) 编辑
摘要: Vue的 Vue构造函数的出生 出生文件 ./instance/index 实例方法和属性 .global-api/index 静态方法和属性 Vue平台化包装 Web平台化 vue 初始化 mergeOptions 选项的规范化和合并 准备 $options 被一系列init*使用 //todo 阅读全文
posted @ 2018-10-12 17:56 翰弟 阅读(730) 评论(0) 推荐(0) 编辑
摘要: Array flat 数组实例的扁平化方法(浏览器支持不佳) 建议使用 lodash的 flatten 阅读全文
posted @ 2018-09-29 15:00 翰弟 阅读(105) 评论(0) 推荐(0) 编辑
摘要: new Vue() _init() mergeOptions $watch --> new Watch vm._render 生成VNode create diff patch vm._update 渲染VNode createElm vue组件更新 数据变化时,触发 渲染watcher的回调函数, 阅读全文
posted @ 2018-09-14 16:00 翰弟 阅读(1559) 评论(0) 推荐(0) 编辑
摘要: orm Select选择器 坑: 1、选择器视图层一直渲染最后一个元素(value-key作为唯一标识符是关键)2、视图不更新,没有在data函数中声明变量,或者其他地方重置了已经声明过得变量 others Dialog 父组件 子组件 如上图 监听beforeClose事件 emit事件(子 >父 阅读全文
posted @ 2018-09-04 19:51 翰弟 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 解法: return request({ url: "/saleUnit/exportSaleUnit", headers: { "biz-source-param": "BLG" }, method: "post", responseType: "blob", data: params }); r 阅读全文
posted @ 2018-08-31 16:35 翰弟 阅读(5647) 评论(2) 推荐(0) 编辑
摘要: 1、原型链继承 “父类”的实例作为子类的prototype SubType.prototype = new SuperType() 2、组合继承(原型链+构造函数) function SubType(name, job) { // 继承属性 SuperType.call(this, name) th 阅读全文
posted @ 2018-08-28 20:50 翰弟 阅读(145) 评论(0) 推荐(0) 编辑