- <script>
- document.onkeydown = function (e) {
- var currKey = 0, evt = e || window.event;
- currKey = evt.keyCode || evt.which || evt.charCode;
- if (currKey == 123) {
- layer.msg('呀呀呀,就是不给你看 >_<');
- window.event.cancelBubble = true;
- window.event.returnValue = false;
- }
- }
- </script>