$(document).keydown(function (e) { if (e.ctrlKey & e.keyCode == 83) { toastr.success('', '保存成功', { positionClass: "toast-bottom-right" }) e.preventDefault(); } })