会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
我喝牛奶不舔盖
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
下一页
2022年10月30日
bind实现
摘要: Function.prototype.myBind = function (context) { // if(!(typeof this == 'function')) { //1.判断调用者是否为一个函数 判 throw new Error('调用者必须是一个函数') } let self = t
阅读全文
posted @ 2022-10-30 00:23 我喝牛奶不舔盖
阅读(76)
评论(0)
推荐(0)
2022年10月29日
call实现
摘要: Function.prototype.myCall = function(obj) { //靠(call),帮(绑)甜(添)姐(解)执单(删)反(返) let context = obj || window; //1.绑定全局环境 绑 context.fn = this; //2.添加临时属性存储调
阅读全文
posted @ 2022-10-29 16:58 我喝牛奶不舔盖
阅读(72)
评论(0)
推荐(0)
apply实现
摘要: Function.prototype.myApply = function(obj, arr) { //记忆:该应用(apply)帮天霸(判)执单(删)反(返) let context = Object(obj) || globalThis; //1.绑定全局环境 绑 context.fn = th
阅读全文
posted @ 2022-10-29 16:52 我喝牛奶不舔盖
阅读(26)
评论(0)
推荐(0)
2022年7月20日
element本地搭建
摘要: 7月element主题定制一直超时,很烦 所以本地搭建一下 1.打开element官网,滑到最下方,点击 链接->代码仓库 进入elment github 2.下载element源码 网速好直接git下载,否则可尝试下载zip 3.进入下载目录 运行 npm install 下载依赖 4.运行 np
阅读全文
posted @ 2022-07-20 16:36 我喝牛奶不舔盖
阅读(547)
评论(0)
推荐(0)
2021年9月27日
chrome更新导致的问题
摘要: 今天遇到一个接口报错问题 通过排查,确认为chrome更新导致 93版本正常,94出现该问题 解决方案: 修改浏览器设置:chrome://flags/#block-insecure-private-network-requests(edge浏览器将chrome改为edge,或者直接复制) 设置为禁
阅读全文
posted @ 2021-09-27 16:49 我喝牛奶不舔盖
阅读(677)
评论(0)
推荐(0)
2020年4月24日
vue源码7----createComponent
摘要: 之前分析createElement的时候,它的else逻辑会通过createComponent方法创建一个组件vnode createComponent定义在 中 export function createComponent ( Ctor: Class | Function | Object |
阅读全文
posted @ 2020-04-24 15:10 我喝牛奶不舔盖
阅读(312)
评论(0)
推荐(0)
2020年4月22日
实现自定义组件双向绑定
摘要: 文件结构,就是自带的模板 子组件
阅读全文
posted @ 2020-04-22 11:33 我喝牛奶不舔盖
阅读(227)
评论(0)
推荐(0)
vue数据驱动基本流程
摘要: 
阅读全文
posted @ 2020-04-22 10:32 我喝牛奶不舔盖
阅读(157)
评论(0)
推荐(0)
2020年4月21日
vue源码6----update函数
摘要: 在vue中,_update是最终把vnode节点渲染成真实dom的函数。 它会在首次渲染和数据更新的时候被调用。 这里主要分析首次调用时候做了什么。 _update函数在src/core/instance/lifecycle.js中定义 Vue.prototype._update = functio
阅读全文
posted @ 2020-04-21 17:45 我喝牛奶不舔盖
阅读(901)
评论(0)
推荐(0)
vue源码5----createElement
摘要: vue是利用createElement来创建vnode, 函数定义在src/core/vdom/create-element.js中 export function createElement ( context: Component, tag: any, data: any, children:
阅读全文
posted @ 2020-04-21 15:20 我喝牛奶不舔盖
阅读(591)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告
I hear and I forget. I see and I remember. I do and I understand