form 的 input 框中回车会提交表单,如何阻止呢,代码网上都有:
但是!这段代码可以放在 onkeydown 中,不能放在 onkeyup 中,放在 onkeyup 中不起作用。
创建于2005年 渝ICP备05010272号-1
电邮:cftea@126.com