eightHundreds
9/28/2017 - 5:22 AM

监听组合按键

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