大家讲道理2017-04-18 09:34:44
Clicking to enlarge the image in the WeChat public account article uses the native image preview control, not the control on the web page. Add a click event to the image, call the native code and pass the image address. WeChat transfers all the image paths on the page at once, so you can zoom in and slide left and right.
If you look carefully, you will find that the image preview control is native, and the image will be reloaded after clicking.
I work on Android, but I don’t know much about iOS. I just know that there is webview-bridge for native and web communication.
But the principles are the same.
高洛峰2017-04-18 09:34:44
Nonsense, this is the job of the front end. The front end can define a model pop-up box.