vue上传图片(先上传到本地,提交时上传到服务器)

1.上传图片的地方html <input type="file" @change="Preview($event)" accept="image/*" ref="showinput"> 2.调用方法 //input 发生改变的时候触发 Preview(ev){ // const self=this; const file=ev.target.files[0]; this.i
相关文章
相关标签/搜索