【js】回车提交功能

$(function() {
$('#searchFrom input').bind('keyup', function (event) {/* 增加回车提交功能 */
if (event.keyCode == '13') {
cx();
}
});
}
原文地址:https://www.cnblogs.com/CESC4/p/7716460.html