Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
很多体验比较好的提供在表单上传的地方,都支持剪贴板复制直接上传图片,这个是怎么做到的?
实现的思路如下
读取到粘贴板的内容
判断粘贴板内容是不是图片类型
将内容转换成 File对象,或者直接上传base64到后台
这里有一篇比较全面的,你可以参考一下
https://segmentfault.com/a/1190000004288686