📜  如何在反应中清空输入字段 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:12.137000             🧑  作者: Mango

代码示例1
event.target.value = ''
//grab the target input and set it empty. you can use it in the onclick