转载自
https://blog.csdn.net/qq_40182225/article/details/79072840
<script type="text/javascript"> document.onkeypress = function() { if (event.keyCode == 13) return false; } </script>