1. 程式人生 > >在input type="submit" 按鈕中新增事件

在input type="submit" 按鈕中新增事件

<form action="http://127.0.0.1:5000" method="post" >
                  <div class="form-group label-floating" style="padding:0px;">
                    <label for="desc" class="control-label">Describe the image in as much detail as possible...</label>
                    <textarea id="desc" name="desc" class = "textarea_personal" rows="17" cols="50"></textarea>
                  </div>
                  <input type="submit" value="提交" name="submit" onclick="upLoadData()">
                </form>