当前位置:网站首页>23.组件自定义事件
23.组件自定义事件
2022-07-24 07:18:00 【风落不归处】
1.绑定事件监听
<Header @addTodo="addTodo" />
或者
<Header ref="header" />
this.$refs.header.$on("addTodo",this.addTodo)
2.触发事件
this.$emit("addTodo",todo)边栏推荐
猜你喜欢

编译与调试(gcc,g++,gdb)

解压主播狂揽4000w+播放,快手美食赛道又添新风向?

拉普拉斯(Laplace)分布

Variables and data types (03)

One book a day: machine learning and practice -- the road to the kaggle competition from scratch

Paper reading: hardnet: a low memory traffic network

win10声音图标有个没有声音

变量和数据类型(03)

C language from entry to Earth - array

JMeter笔记2 | JMeter原理及测试计划要素
随机推荐
给一个字符串 ① 请统计出其中每一个字母出现的次数② 请打印出字母次数最多的那一对
InjectFix原理学习(实现修复加法的热更)
周杰伦直播超654万人观看,总互动量破4.5亿,助力快手再破纪录
项目中数据库插入大批量数据遇到的问题
RIoTBoard开发板系列笔记(九)—— buildroot 移植MatchBox
QoS quality of service 4 traffic regulation of QoS boundary behavior
Vulnhub DC1
baddy:核心函数入口
记账APP:小哈记账2——注册页面的制作
Flow control statement of avascript
File "manage.py", line 14) from exc ^ syntaxerror: cause and solution of invalid syntax error
全国职业院校技能大赛网络安全B模块 Windows操作系统渗透测试
MongoDB应用场景及选型(海量数据存储选型)
Raspberry pie change source
[steering wheel] the super favorite idea efficiency artifact save actions is uninstalled
cloud的版本升级
项目上线就炸,这谁受得了
One book a day: machine learning and practice -- the road to the kaggle competition from scratch
Redis sentinel mechanism
cookie_ session