---restore content starts---
Project is the mobile side of the project, in order to solve the 300ms click Delay, so in the global add Fastclick, introduced the way is very simple, online a lot of tutorials, here do not repeat
Let's talk about the problems I've encountered:
One day the product wants me to add the function which uploads the picture, this also is not a very difficult demand, uses the plug-in directly, here I use is the Element-ui upload plugin (for the fast on-line thing, does not need to make the wheel repeatedly)
Quickly also very simple to complete the requirements, and then test the JJ; tested, there is no problem in Android, but on iOS, always unable to open the album and take photos, the first reaction is because the element is a PC-side UI library, is it because the UI library did what the Sao operation???
This is not scientific, and then I have been clicking on the unresponsive iOS upload button, accidentally opened a photo album, so it seems to know something ... Is it because the plug-in adds a location mask, which causes the event to not trigger the response by clicking on input, examining the DOM element and discovering that it is not?
In general, we beautify the input[type= "file", will use Display:none to hide the original ugly style, on the input covered with a layer of mask to beautify the original style, then when we do not do any processing, the mobile side will have a natural point through the problem, is the kind of through , then you must know, and then I think about it.
I added Fastclick in the project, so suddenly, found the reason, that is good to do, if you can not abandon Fastclick, then we are in the Fastclick source code to screen behind the processing of the specified elements, the following is my processing code
A solution that adds Fastclick to the project and causes the image upload plugin to fail on the iOS side