解决方法:
在<form>里屏蔽:
<form id="form1" onkeypress="javascript:return NoSubmit(event);">
<script type="text/javascript">
function NoSubmit(ev)
{
if( ev.keyCode == 13 )
{
return false;
}
return true;
}
</script>
解决方法:
在<form>里屏蔽:
<form id="form1" onkeypress="javascript:return NoSubmit(event);">
<script type="text/javascript">
function NoSubmit(ev)
{
if( ev.keyCode == 13 )
{
return false;
}
return true;
}
</script>
转载于:https://www.cnblogs.com/zhanglee/archive/2012/05/24/2731546.html