我的html頁面中有一個按鈕 <input id="btnLogin" class="loginBtn" ... 您的瀏覽器可能在按enter時觸發了 click 事件,這實際上與按submit按鈕相同:
確定! 回上一頁