Skip to content

Instantly share code, notes, and snippets.

@PKTseng

PKTseng/index.html

Created Aug 11, 2020
Embed
What would you like to do?
圖片上傳
<div id="app">
<input type="file" @change="selectFile">
</div>
new Vue({
el:"#app",
data:{
},
methods:{
selectFile(e){
const file = e.target.files.item(0);
console.log(file);
},
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.