jq使用ajax請求,返回狀態 canceled錯誤

 在使用jq,ajax請求時出現該錯誤ajax

 

緣由:button按鈕類型爲type=submit ,script中又自定用botton按鈕點擊提交ajax,形成衝突。spa

解決方法:button按鈕類型改成 type=buttoncode

 

<button id="save" class="btn btn-primary btn-sm">${text('保存')}</button>

改成blog

<button id="save" type=button class="btn btn-primary btn-sm">${text('保存')}</button>
相關文章
相關標籤/搜索