回复 2楼iceman的帖子
- document.onkeydown = function (e) {
- e = (e) ? e : ((window.event) ? window.event : "");
- if (e.ctrlKey == 1) {
- if (document.all) {
- k = e.keyCode
- }
- else {
- k = e.which
- }
- if (k == 88 || k == 67) {
- alert("CutOrCopy");
- }
- if (k == 86)
- alert("Paste");
- }
- }
复制代码
当焦点在Spread上时第二个提示不响应。 |