摘要: 先根据需求完成代码: 需要有个登录的功能,点击登录时弹出该输入框对应的值 利用ref可以这样写: 1 class App extends React.Component { 2 // 创建ref容器 3 userName = React.createRef() 4 passWord = React. 阅读全文
posted @ 2021-01-13 18:01 微笑着的代码狗 阅读(76) 评论(0) 推荐(0)