问题:提交按钮被隐藏,回车一样提交表单
解决方案:
document.getElementsByTagName('form')[0].onkeydown = function(e){ var e = e || event; var keyNum = e.which || e.keyCode; return keyNum==13 ? false : true; };这个问题很容易忽略
Powered by: 博客园 Copyright © 2024 独孤雁 Powered by .NET 9.0 on Kubernetes