clipboard

Get image (using paste) from the browser

好久不见. 提交于 2020-12-26 04:51:36
问题 There are two ways to copy an image through the browser (for example chrome), the copy image and the copy address of the image. When I copy the image address and paste it using my paste Image button, I can get the image copied from the base64 browser. But when I copy the image, I can't get the image. Is there a way to obtain the image using the image coipar, as shown in the examples? Demo code clickPaste() { let self = this; (navigator as any).clipboard.readText().then(clipboard => self.clip

Get image (using paste) from the browser

浪尽此生 提交于 2020-12-26 04:51:06
问题 There are two ways to copy an image through the browser (for example chrome), the copy image and the copy address of the image. When I copy the image address and paste it using my paste Image button, I can get the image copied from the base64 browser. But when I copy the image, I can't get the image. Is there a way to obtain the image using the image coipar, as shown in the examples? Demo code clickPaste() { let self = this; (navigator as any).clipboard.readText().then(clipboard => self.clip

Get image (using paste) from the browser

杀马特。学长 韩版系。学妹 提交于 2020-12-26 04:50:25
问题 There are two ways to copy an image through the browser (for example chrome), the copy image and the copy address of the image. When I copy the image address and paste it using my paste Image button, I can get the image copied from the base64 browser. But when I copy the image, I can't get the image. Is there a way to obtain the image using the image coipar, as shown in the examples? Demo code clickPaste() { let self = this; (navigator as any).clipboard.readText().then(clipboard => self.clip