WeChat Mini Program: Long press the picture to identify the QR code

Method 1: Use the image component provided by the applet. There is a show-menu-by-longpress attribute on the image component, which is set to true. When the image is long pressed, the selection menu will pop up

<image show-menu-by-longpress="{
    
    {true}}"></image>

Method 2: When the picture is previewed, press and hold the picture to pop up the menu:

wx.previewImage({
    urls:['http/imgs/xxx.png']
})

Guess you like

Origin blog.csdn.net/spring_007_999/article/details/129120651