<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> window.onkeydown = function(e){ var ds = window.event || e; // 判断ds是否按下crtl键,&&并且是否按下回车键,回车键盘码是13 同时按上才成功 if (ds.ctrlKey && ds.keyCode==13) { alert('提交成功'); } } </script> </head> <body> </body> </html>
原文链接:https://www.qiquanji.com/post/7467.html
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

微信扫码关注
更新实时通知