代码如下:
<script language="javascript" type="text/javascript"> /** *屏蔽回车焦点 */ $(function () { $("*").each(function () { $(this).keypress(function (e) { var key = window.event ? e.keyCode : e.which; if (key.toString()== "13") { return false; } }); }); }); </script>