当前位置:网站首页>$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 ;

边栏推荐
- 异步组件和Suspense(真实开发中)
- Take you to brush (niuke.com) C language hundred questions (the first day)
- 健身房如何提高竞争力?
- 根据IP获取地市
- Common function detect_ image/predict
- MySQL binlog related commands
- [explanation of JDBC and internal classes]
- 多线程与高并发(9)——AQS其他同步组件(Semaphore、ReentrantReadWriteLock、Exchanger)
- Multidisciplinary integration
- Leetcode T1165: 日志分析
猜你喜欢

JDBC database connection pool usage problem

Brand · consultation standardization

Lvs+kept (DR mode) learning notes

Tujia, muniao, meituan... Home stay summer war will start

mysql查看bin log 并恢复数据

Paranoid unqualified company

Use of completable future

SQLMAP使用教程(四)实战技巧三之绕过防火墙

Please answer the questions about database data transfer

Sword finger offer high quality code
随机推荐
$refs:组件中获取元素对象或者子组件实例:
Algorithm --- bit count (kotlin)
Under what circumstances should we consider sub database and sub table
How can gyms improve their competitiveness?
MySQL的主从复制原理
父组件传递给子组件:Props
Maze games based on JS
大咖云集|NextArch基金会云开发Meetup来啦
Release notes of JMeter version 5.5
组件的嵌套和拆分
分布式id解决方案
AVL树的实现
Please answer the questions about database data transfer
readonly 只读
2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书第二阶段答案
DHCP路由器工作原理
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
LC 面试题 02.07. 链表相交 & LC142. 环形链表II
Sword finger offer high quality code
SQLMAP使用教程(四)实战技巧三之绕过防火墙