在使用jq,ajax請求時出現該錯誤
原因:button按鈕類型為type=submit ,script中又自定用botton按鈕點擊提交ajax,造成沖突。
解決方法:button按鈕類型改為 type=button
<button id="save" class="btn btn-primary btn-sm">${text('保存')}</button>
改為
<button id="save" type=button class="btn btn-primary btn-sm">${text('保存')}</button>