1、如果form中只有一个input字段,那么在input中按enter会触发formsubmit2、如果form中有两个或以上个input字段,但是没有buttons或者input[type=submit],在input中按enter不会触发formsubmit3、如果form中有一个或者多个input字段,并且有一个或者多个buttons或者input[type=submit],在input中
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号