javascript —— 禁止通过 Enter 键提交表单

$('btn').on('keydown', function () {
    return false;
})
原文地址:https://www.cnblogs.com/xulinjun/p/11677462.html