按回车键提交表单

mac2022-06-30  75

document.onkeydown = function (e) { var theEvent = window.event || e; var code = theEvent.keyCode || theEvent.which; if (code == 13) { $("#add_submit").click(); } }

转载于:https://www.cnblogs.com/hgj123/p/6346450.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)