标签:keycode key var dal log cli primary event style
$("#modal").keydown(function(e){ var e = e || event, keycode = e.which || e.keyCode; if (keycode==13) { $(".btn-primary").trigger("click"); } });
标签:keycode key var dal log cli primary event style
原文地址:http://www.cnblogs.com/linsx/p/7297703.html