<input name =“input”id =“input”ref =“clearText”type =“text”class =“i-input text-conten-div el-input__inner”placeholder =“请输入...”>
方法:
this。$ refs.clearText.value =''
效果:
<input name =“input”id =“input”ref =“clearText”type =“text”class =“i-input text-conten-div el-input__inner”placeholder =“请输入...”>
方法:
this。$ refs.clearText.value =''
效果: