会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
半指温柔乐
博客园
首页
新随笔
联系
订阅
管理
2021年4月17日
React---组件实例三大核心属性(三)refs与事件处理
摘要: 一、refs 1. 理解 组件内的标签可以定义ref属性来标识自己 2. 编码 字符串形式的ref <input ref="input1"/> 获取值:const { input1 } = this.refs; console.log(input.value) 2. 回调形式的ref <input
阅读全文
posted @ 2021-04-17 22:33 半指温柔乐
阅读(185)
评论(0)
推荐(0)
编辑
公告