当前位置:网站首页>Component emit Foundation
Component emit Foundation
2022-07-19 07:22:00 【Much less】
Custom events on custom components :
go(@go) call 

@go How did you get it :
yes $emit(“go”) Decisive , The names must be consistent
Why? @go It's a click event :
because @click=‘emit, It's using click event
Sure $emit Multiple events :


adopt $emit The method of passing parameters :

Receiving parameters :
Add parameters to the called method , This parameter can be obtained 
emit Multiple parameters :

Use with calculated attributes :

summary :
stay vue3 in , Can be used in subcomponents $emit To call the event of the parent element .
On the template output by the sub component , We can define events , Then the output $emit Method .$emit The first parameter of the method is the name of the definition , This content can be called on the component element , The call interaction content is the event content .
边栏推荐
- Legendary game setup tutorial
- Functions and random numbers
- M FPGA implementation of chaotic digital secure communication system based on Lorenz chaotic self synchronization, Verilog programming implementation, with MATLAB chaotic program
- 网络知识-03 数据链路层-PPP
- 字典、元組和列錶的使用及區別,
- pytorch张量
- Data analysis and visualization -- the shoes with the highest sales volume on jd.com
- Minecraft integration package [gtnh] gray Technology: new vision server building tutorial
- MySQL正则表达式^和$用法
- Security自动登录与防CSRF攻击冲突解决办法
猜你喜欢

Mapping rule configuration of zuul route

ivew 穿梭框Transfer组件高亮显示操作值

Pytorch learning notes (I)

爬虫基础—Session和Cookie

9. Account and authority

PyTorch学习日记(四)

M simulation of cooperative MIMO distributed space-time coding technology based on MATLAB

Review of 4246 Algorithms for Data Science

4. Installation and use of idea

Matlab simulation of cognitive femtocell performance in m3gpp LTE communication network
随机推荐
Download, configuration and basic use of C language compiler
What does IP fragment mean? How to defend against IP fragment attacks?
ArraysList方法
What if the website is hijacked?
组件emit基础
正则表达式,生成器,迭代器
JS不使用async/await解决数据异步/同步问题
Quickly master the sort command and tr command
cookie、session的配置和使用
M analysis of anti-interference performance of high-speed frequency hopping communication system based on Simulink
Network knowledge-05 transport layer UDP
类与对象
Security自动登录与防CSRF攻击冲突解决办法
Pycharm安装教程
Utilisation et différenciation des dictionnaires, des tuples et des listes,
m基于matlab的超宽带MIMO雷达对目标的检测仿真,考虑时间反转
论文阅读:Deep Residual Learning in Spiking Neural Networks
Pychart installation tutorial
The use and differences of dictionaries, tuples and lists,
M simulation of cooperative MIMO distributed space-time coding technology based on MATLAB