button 的 onclick 事件页面跳转不执行

 <button id="btnLogin" onclick="Login();">登录</button>     window.location.href = "Index.aspx";   点击后不执行,添加 window.event.returnValue = false;  后执行成功

 

posted @ 2020-12-04 16:52  风和日坛  阅读(764)  评论(0)    收藏  举报