How to make a link as a file input in vue.js 2?
问题 My vue component like this : <template> ... <a href="javascript:;" class="thumbs" :title="upload"> <span class="fa fa-plus fa-2x"></span> </a> ... </template> <script> export default { props: ['...'], data() { return { ... }; }, computed:{ ... } } </script> I want if click the a link, it can upload file In javascript, I know it. If javascript like this : How to make a link act as a file input But How can I do it in vue.js 2? 回答1: I believe there is a small misunderstanding: Vue.js 2 is still