From 6ee735ac6a8014dac5f6b68457ef557cf25873d2 Mon Sep 17 00:00:00 2001 From: YuJian920 Date: Sat, 7 May 2022 23:23:15 +0800 Subject: [PATCH] vault backup: 2022-05-07 23:23:15 --- 随时随地/Images/welcome-to-vue.png | Bin 0 -> 18565 bytes 随时随地/Yan Ruyu_Vue学习笔记.md | 4 +--- ...析Vue 中的 $on、$emit 实现原理.md | 20 +++++++++--------- 3 files changed, 11 insertions(+), 13 deletions(-) create mode 100644 随时随地/Images/welcome-to-vue.png diff --git a/随时随地/Images/welcome-to-vue.png b/随时随地/Images/welcome-to-vue.png new file mode 100644 index 0000000000000000000000000000000000000000..070bd10ffd51e2c6629c304d1f8d12a61def871a GIT binary patch literal 18565 zcmd?QWn2`%_ddFajfkLhDTqinNFymA&C;R7E{(*}Wgy)p-Q6r9tsosscSz^bopX(g^~2Mr=bm{8)dYjVT<7}WzWg?O}?bFVu^#N|bu*0W z*!5gHVnQGveo@l^iJ$+^#}j2LAl(0cy!fAye}D7;c{t^1GTH3)7OKMBBhTa9_ul+U zqBZ4obyh=-{eE`-sFlX$(RZHN=~ekUo8*sOguW=KEIf&Gq6zAiqcG<`cts!19`*4AOJ93`V{H&-{9nsUeztTCOCi$!z&S!5G4#ny zh%2o>GWx$Z=;^$5m;Pq?SzUqZlfGA7N`HECUdzl@*&oy@;KU1Y(9!VlcGZ8TGL~37 zb(BxOE)GhLi&~PVPkNY}ru8tnuYHd;s1q8IJ2&KJCT@ zp3^bf$WGhmHcXvZ?!zq&{%K(>0^Ckbkr_(Iui&*Y_{L{af$>LuNS4b_^G>qQKd8mR zbKcSa0J^Dh30FGpt2ZkMlciK?CWiNPTK23f=NMX_Ad>m2HI09XNXXp&v$&I~(sf9eA}9J7)(2a>;e>)N)I_;!IzCe4U^^bA2MS07W(kh)F2_Ru$lZ;}S!k zkx<2PxE`EIG)&OUboe}5A6uV+xnp1w(cwOcF#o(9$00n0v|IYIXV8V)k~pUILrph9 zO(}BkOw=&tH501mMd6MeI>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954 100644 --- a/随时随地/Yan Ruyu_Vue学习笔记.md +++ b/随时随地/Yan Ruyu_Vue学习笔记.md @@ -1,4 +1,4 @@ -![](/images/welcome-to-vue.png) +![[welcome-to-vue.png]] ### Vue基本认知 @@ -31,8 +31,6 @@ Vue在实例生成之前和生成之后总共有8个生命周期函数,他们 * `beforeDestroy`:实例销毁之前 * `destroyed`:实例销毁之后 - - #### Vue的模板语法 Vue中的模板语法有插值表达式、`v-text`、`v-html`等等。 diff --git a/随时随地/通过源代码解析Vue 中的 $on、$emit 实现原理.md b/随时随地/通过源代码解析Vue 中的 $on、$emit 实现原理.md index 27ebff0..637e154 100644 --- a/随时随地/通过源代码解析Vue 中的 $on、$emit 实现原理.md +++ b/随时随地/通过源代码解析Vue 中的 $on、$emit 实现原理.md @@ -8,36 +8,36 @@ ## 正式开始 -#### $on绑定事件 +### \$on绑定事件 -> Vue中的$on是一种将函数与事件绑定的方法。 +> Vue中的\$on是一种将函数与事件绑定的方法。 -通过Vue的源代码可以看到,$on调用时需要两个参数,第一个是字符串或数组类型作为事件的名称,第二个是触发事件执行的回调函数。$on第一步会对第一个参数做一个是否为数组的判断,这里可以看出$on允许为多个事件绑定同一个回调函数。 +通过Vue的源代码可以看到,\$on 调用时需要两个参数,第一个是字符串或数组类型作为事件的名称,第二个是触发事件执行的回调函数。\$on 第一步会对第一个参数做一个是否为数组的判断,这里可以看出 \$on 允许为多个事件绑定同一个回调函数。 如果参数为数组,那么它会使用for遍历这个数组,并进行递归。 -如果参数为字符串,那么它会在已有的事件(_events)中寻找是否已经存在相同的事件,如果没有会创建并初始化为空数组同时将传递的第二个参数也就是事件被触发时需要执行的回调函数添加进去。 +如果参数为字符串,那么它会在已有的事件(\_events)中寻找是否已经存在相同的事件,如果没有会创建并初始化为空数组同时将传递的第二个参数也就是事件被触发时需要执行的回调函数添加进去。 -![$on方法](/images/$on方法.png) +![[$on方法.png]] > 总结:$on方法允许为多个事件绑定同一个回调函数,还在里面使用了递归~~自己日自己~~ -#### $emit 触发事件 +### $emit 触发事件 > Vue中的$emit是一种触发事件的方法。 它接受的第一个参数是一个字符串类型,这个字符串参数也就是需要触发的事件名称,第二个参数是触发事件时需要传递的数据。 -第一步$emit会将传递的事件名称转换成小写,并进行一系列的检查判断是否符合语法标准,然后它会在事件列表(_events)中寻找事件对应的回调函数,也就是在$on中传递并添加的回调函数,这里如果没有找到会直接返回,找到了会先进行一次判断,判断回调函数是否大于1,如果大于就把它转换成一个数组。 +第一步\$emit会将传递的事件名称转换成小写,并进行一系列的检查判断是否符合语法标准,然后它会在事件列表(\_events)中寻找事件对应的回调函数,也就是在\$on中传递并添加的回调函数,这里如果没有找到会直接返回,找到了会先进行一次判断,判断回调函数是否大于1,如果大于就把它转换成一个数组。 -这时候第一个参数事件名已经不再需要了,$emit会将其舍弃,并把剩下的数据转换成数组。传递给一个带有try&catch的invokeWithErrorHandling()方法,并在其中使用apply()或call()来调用事件回调函数。 +这时候第一个参数事件名已经不再需要了,\$emit会将其舍弃,并把剩下的数据转换成数组。传递给一个带有 try&catch 的 invokeWithErrorHandling() 方法,并在其中使用apply() 或 call() 来调用事件回调函数。 -![调用invokeWithErrorHandling方法](/images/调用invokeWithErrorHandling方法.png) +![[调用invokeWithErrorHandling方法.png]] **invokeWithErrorHandling()方法源代码** -![invokeWithErrorHandling方法](/images/invokeWithErrorHandling方法.png) +![[invokeWithErrorHandling方法.png]] > 总结:用$emit方法触发事件允许一个事件有多个回调函数,它们会变成数组被遍历,同时也允许携带参数,它使用了apply()或call()更改作用域来保证参数有效