摘要: 一、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) 编辑