暈死,這個問題搞了我一個下午。<form method='post' action='http://192.168.58.100:89/api/rest'>
<input type='text' name='username'>
<input type='submit' value='提交'>
</form>我現在想點擊提交,頁面不要跳轉到action那個地址,還是留在當前頁面,可以實現嗎?我在網上找了一些資料也沒解決
Form表單點擊submit按鈕提交,可以阻止頁面跳轉到action地址嗎?
暮色呼如
2018-09-07 09:09:27