当前位置:网站首页>$refs: get the element object or sub component instance in the component:
$refs: get the element object or sub component instance in the component:
2022-07-07 07:10:00 【To be a woman of light】
1. In some cases , We want to get the element object or sub component instance directly in the component :
- stay Vue In development, we are ... is not recommended DOM operation Of ;
- At this time , We can Bind an element or component with a ref Of attribute attribute ;
The component instance has a $refs attribute :
He has an object Object, Hold the registration ref attribute All of the DOM Element and component instances ;
边栏推荐
- Sword finger offer high quality code
- 毕业设计游戏商城
- Networkx drawing and common library function coordinate drawing
- MySql用户权限
- 云备份项目
- Big coffee gathering | nextarch foundation cloud development meetup is coming
- Distributed ID solution
- Take you to brush (niuke.com) C language hundred questions (the first day)
- 2022年全国所有A级景区数据(13604条)
- 非父子组件的通信
猜你喜欢
随机推荐
Bus message bus
How to do sports training in venues?
Basic introduction of JWT
一文带你了解静态路由的特点、目的及配置基本功能示例
After the promotion, sales volume and flow are both. Is it really easy to relax?
2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书第一阶段答案
Reflection (II)
Sqlserver multithreaded query problem
CompletableFuture使用详解
freeswitch拨打分机号源代码跟踪
Algorithm --- bit count (kotlin)
Answer to the first stage of the assignment of "information security management and evaluation" of the higher vocational group of the 2018 Jiangsu Vocational College skills competition
Config分布式配置中心
DHCP路由器工作原理
[Luogu p1971] rabbit and egg game (bipartite game)
带你刷(牛客网)C语言百题(第一天)
Unity3d learning notes
Leetcode T1165: 日志分析
Config distributed configuration center
IP address