一、若是form中只有一個input字段,那麼在input中按enter會觸發form submitide
二、若是form中有兩個或以上個input字段,可是沒有buttons 或者 input[type=submit],在input中按enter不會觸發form submitorm
三、若是form中有一個或者多個input字段,而且有一個或者多個buttons 或者 input[type=submit],在input中按enter將觸發第一個按鈕或輸入[type=submit] 的單擊處理程序,並在封閉的表單上觸發一個提交處理程序input