前言:
當給form表單提交綁定 鍵盤事件時,會請求兩個鏈接 ,一個是action上設置的,另一個是綁定事件中設置的請求鏈接。
解決方法:
onsubmit="searchClick();return false;"
<form action="https://www.baidu.com/s"class="parent" onsubmit="searchClick();return false;">
action設置的鏈接會失效,會執行searchClick();方法
前言:
當給form表單提交綁定 鍵盤事件時,會請求兩個鏈接 ,一個是action上設置的,另一個是綁定事件中設置的請求鏈接。
解決方法:
onsubmit="searchClick();return false;"
<form action="https://www.baidu.com/s"class="parent" onsubmit="searchClick();return false;">
action設置的鏈接會失效,會執行searchClick();方法
(function(d, s, id) { let js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) retur
https://view.officeapps.live.com/op/view.aspx?src=你地址