当前位置:网站首页>$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 ;
边栏推荐
- $parent(获取父组件) 和 $root(获取根组件)
- Can 7-day zero foundation prove HCIA? Huawei certification system learning path sharing
- Answer to the second stage of the assignment of "information security management and evaluation" of the higher vocational group of the 2018 Jiangsu Vocational College skills competition
- sqlserver多线程查询问题
- Abnova membrane protein lipoprotein technology and category display
- [explanation of JDBC and internal classes]
- Precise space-time travel flow regulation system - ultra-high precision positioning system based on UWB
- Config distributed configuration center
- 健身房如何提高竞争力?
- Under what circumstances should we consider sub database and sub table
猜你喜欢
LC 面试题 02.07. 链表相交 & LC142. 环形链表II
Anr principle and Practice
Four goals for the construction of intelligent safety risk management and control platform for hazardous chemical enterprises in Chemical Industry Park
Basic introduction of JWT
$refs:组件中获取元素对象或者子组件实例:
一文带你了解静态路由的特点、目的及配置基本功能示例
Academic report series (VI) - autonomous driving on the journey to full autonomy
组件的嵌套和拆分
联合索引ABC的几种索引利用情况
freeswitch拨打分机号源代码跟踪
随机推荐
[noi simulation] regional division (conclusion, structure)
Several index utilization of joint index ABC
Leetcode t1165: log analysis
基于JS的迷宫小游戏
品牌·咨询标准化
Data of all class a scenic spots in China in 2022 (13604)
Jetpack compose is much more than a UI framework~
[explanation of JDBC and internal classes]
readonly 只读
Four goals for the construction of intelligent safety risk management and control platform for hazardous chemical enterprises in Chemical Industry Park
场馆怎么做体育培训?
DHCP路由器工作原理
sql中对集合进行非空校验
LVS+Keepalived(DR模式)学习笔记
Lvs+kept (DR mode) learning notes
Reflection (II)
LC 面试题 02.07. 链表相交 & LC142. 环形链表II
2022/07/04学习记录
The startup of MySQL installed in RPM mode of Linux system failed
How can clothing stores make profits?