会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
你瞅啥呢
叶乘风
需求反馈可致电:15915815021 或发送邮件至 : 15915815021@163.com
博客园
首页
新随笔
联系
管理
订阅
2022-05-26 react antd 清除input或者select的值(不处于form表单的控制下)
解决方案:
const clear_receiver_data_name = React.createRef();
clear_receiver_data_name.current.setState({ value: ""});
<Input ref={clear_receiver_data_name} />
select同理。
结语:没了。
posted @
2022-05-26 13:51
叶乘风
阅读(
371
) 评论(
0
)
收藏
举报
刷新页面
返回顶部