版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34505202/article/details/80997128
template中:
<input type="file" ref="pathClear" @change="onUpload" name="file" id="file">
methods中:
onUpload
(){
this
.
$refs
.
pathClear
.
value
=
''
},