javascript - Will the page automatically refresh after taking a photo on the mobile terminal? ? Has anyone encountered it?
为情所困
为情所困 2017-07-05 10:54:39
0
3
1052
为情所困
为情所困

reply all (3)
迷茫

The memory of the mobile phone is too small.

    滿天的星座

    This situation often happens. What usually happens is that you need to read the file content (such as reading pictures and displaying them). My solution is to get a setTimeout.
    For example:

    file.onchange = function(){ var files = file.files; setTimeout(function(){ //这里干别的 },100); };

    Although it can’t be completely avoided, it can be alleviated a lot. As long as you don’t operate too quickly after taking pictures, there is generally no problem

      给我你的怀抱

      It should be that the memory is too small.

      When you take a photo, try to enlarge the screen (digital zoom, enlarge the screen area, zoom to the maximum). The photo file will be very small. If the browser does not refresh the page, it means that the previous refresh was due to the phone memory. too small.

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!