Cordova app restart after getting picture from capture or photo Librairie

前端 未结 1 1633
花落未央
花落未央 2021-01-27 07:21

i\'m trying to add picture on my server with jquery mobile and php on a cordova project for android.

When i select a picture from my librairie or i make a capture, the a

相关标签:
1条回答
  • 2021-01-27 07:46

    By luck, i've tried to change the html code, just in case, and here is the solution:

    I just change this code:

    <button onclick="capturePhoto();">Capture Photo</button>
    

    to this:

    <a href="" class="ui-btn" onclick="capturePhoto();">Capture Photo</a>
    

    Don't use html buttons tag, use anchor tag... don't know why but this worked !!!

    0 讨论(0)
提交回复
热议问题