当点回车时触发搜索事件
$(document).keydown(function (e) { if (e.keyCode == 13) { $("#txtUserName").focus(); $("#btnSearch").click; } });