返回首页 - Notes - 2015

JavaScript 回车提交表单


document.onkeydown = function (event) {
    e = event ? event : window.event;
    if (e.keyCode == 13) {
        submitForm();
    }
};

date:2015-07-01