📄 10.02 - facades as convenience methods.js
字号:
function a(x) { // do stuff here...}function b(y) { // do stuff here...}function ab(x, y) { a(x); b(y);}var DED = window.DED || {};DED.util = { stopPropagation: function(e) { if (ev.stopPropagation) { // W3 interface e.stopPropagation(); } else { // IE's interface e.cancelBubble = true; } }, preventDefault: function(e) { if (e.preventDefault) { // W3 interface e.preventDefault(); } else { // IE's interface e.returnValue = false; } }, /* our convenience method */ stopEvent: function(e) { DED.util.stopPropagation(e); DED.util.preventDefault(e); }};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -