当前位置:网站首页>$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 ;
边栏推荐
- MYSQL----导入导出&视图&索引&执行计划
- Advantages of using net core / why
- 请教一个问题,flink oracle cdc,读取一个没有更新操作的表,隔十几秒就重复读取全量数据
- Test of transform parameters of impdp
- [explanation of JDBC and internal classes]
- Lvs+kept (DR mode) learning notes
- leetcode 509. Fibonacci number
- How does an enterprise manage data? Share the experience summary of four aspects of data governance
- Initial experience of addresssanitizer Technology
- 什么情况下考虑分库分表
猜你喜欢
Graduation design game mall
异步组件和Suspense(真实开发中)
一文带你了解静态路由的特点、目的及配置基本功能示例
Maze games based on JS
The latest trends of data asset management and data security at home and abroad
Big coffee gathering | nextarch foundation cloud development meetup is coming
Bus消息总线
SolidWorks的GB库(钢型材库,包括铝型材、铝管等结构)安装及使用教程(生成铝型材为例)
.net core 访问不常见的静态文件类型(MIME 类型)
Use of completable future
随机推荐
MOS tube parameters μ A method of Cox
Jetpack compose is much more than a UI framework~
请问 flinksql对接cdc时 如何实现计算某个字段update前后的差异 ?
How can gyms improve their competitiveness?
联合索引ABC的几种索引利用情况
js小练习
freeswitch拨打分机号源代码跟踪
How can brand e-commerce grow against the trend? See the future here!
RuntimeError: CUDA error: CUBLAS_ STATUS_ ALLOC_ Failed when calling `cublascreate (handle) `problem solving
Config分布式配置中心
Common function detect_ image/predict
Tool class: object to map hump to underline underline hump
Maze games based on JS
Jesd204b clock network
Config distributed configuration center
大咖云集|NextArch基金会云开发Meetup来啦
Unity3d learning notes
JWT的基础介绍
.net 5 FluentFTP连接FTP失败问题:This operation is only allowed using a successfully authenticated context
从零到一,教你搭建「CLIP 以文搜图」搜索服务(二):5 分钟实现原型