//在windows.js中
//自定義事件解綁(和綁定也沒什么區(qū)別,只是不管綁定了幾個事件,解綁都會一起解除)
off: function(type) {
if (typeof this.handlers[type] != 'undefined') {
this.handlers[type] = [];
}
},
//在main.js中
win.off('close');
//自定義事件解綁(和綁定也沒什么區(qū)別,只是不管綁定了幾個事件,解綁都會一起解除)
off: function(type) {
if (typeof this.handlers[type] != 'undefined') {
this.handlers[type] = [];
}
},
//在main.js中
win.off('close');
2017-02-04
//這樣就不會拖出邊界了
if (CFG.isDraggable) {
boundingBox.draggable({
containment: "window"
});
}
if (CFG.isDraggable) {
boundingBox.draggable({
containment: "window"
});
}