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

边栏推荐
- 2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书
- 详解机器翻译任务中的BLEU
- 栈题目:有效括号的嵌套深度
- 2022年全国所有A级景区数据(13604条)
- 多个kubernetes集群如何实现共享同一个存储
- Prime partner of Huawei machine test questions
- Take you to brush (niuke.com) C language hundred questions (the first day)
- 大促过后,销量与流量兼具,是否真的高枕无忧?
- Complete process of MySQL SQL
- LC 面试题 02.07. 链表相交 & LC142. 环形链表II
猜你喜欢

How to share the same storage among multiple kubernetes clusters

How can brand e-commerce grow against the trend? See the future here!

多个kubernetes集群如何实现共享同一个存储

Special behavior of main function in import statement

服装门店如何盈利?

AVL树的实现

2022年全国所有A级景区数据(13604条)

FPGA course: application scenario of jesd204b (dry goods sharing)

一文带你了解静态路由的特点、目的及配置基本功能示例

SolidWorks GB Library (steel profile library, including aluminum profile, aluminum tube and other structures) installation and use tutorial (generating aluminum profile as an example)
随机推荐
[Luogu p1971] rabbit and egg game (bipartite game)
Jetpack compose is much more than a UI framework~
How to do sports training in venues?
FullGC问题分析及解决办法总结
Network foundation - header, encapsulation and unpacking
libcurl返回curlcode说明
Master-slave replication principle of MySQL
A slow SQL drags the whole system down
Circulating tumor cells - here comes abnova's solution
Stack Title: nesting depth of valid parentheses
. Net 5 fluentftp connection FTP failure problem: this operation is only allowed using a successfully authenticated context
2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书第一阶段答案
FPGA course: application scenario of jesd204b (dry goods sharing)
【mysqld】Can't create/write to file
Learning records on July 4, 2022
JDBC database connection pool usage problem
子组件传递给父组件
MySQL binlog related commands
一文带你了解静态路由的特点、目的及配置基本功能示例
Bus消息总线