标签:nbsp col reader fileread img UNC files bsp change
<input type="file" @change="upData($event)" ref="InputFile" name="files" />
upData(event) { var reader = new FileReader(); let fileData = this.$refs.InputFile.files[0]; reader.readAsDataURL(fileData); let _this=this; reader.onload = function(e) { console.log(e) // data定义字段 _this.addimg=e.srcElement.result; }; },
标签:nbsp col reader fileread img UNC files bsp change
原文地址:https://www.cnblogs.com/chenchenhao/p/10387388.html