上傳數據到服務器出現瀏覽器崩潰問題上傳數據比較多,其中包括2到3個base64相關代碼 <Upload :show-upload-list="true" :headers="{'token':user}"
accept="application/pdf"
multiple
action="//jsonplaceholder.typicode.com/posts/"
:on-success="handleSuccess"
:before-upload="handleBeforeUpload">
<Button type="ghost" icon="ios-cloud-upload-outline">文件上傳</Button>
</Upload>
handleBeforeUpload(file) { var reader = new FileReader();
reader.readAsDataURL(file);
reader.onloadend = () => { this.upList.push(reader.result); this.$set(this.list, "value", this.upList);
console.log(this.list);
}; return false;
},數據保存成功,并且不是很慢錯誤如下:
偽類不是真正的DOM,不能被js的選擇器選擇,所以不能綁定事件
撒科打諢
2018-09-24 14:31:14