在表單提交button被點擊時。觸發提交函數,代碼例如如下:javascript
<form id="frm_photo" enctype="multipart/form-data" action="upload.php" method="post"> .... <div class="actions upload"><a class="upload" href="javascript:;">重選</a><a class="confirm" href="javascript:;" onclick="submit();">肯定</a></div> </form>
需要把函數名稱改成submit_photo類似這種名字。多是微信內置瀏覽器的bug。php
記錄下。html