js-阻止input 按enter键提交表单 Posted on 2018-10-17 10:59 1<input onkeydown="if(event.keyCode==13){return false;}" type="text" name="email[to]" id="email_to">