【发布时间】:2011-01-23 06:53:47
【问题描述】:
我在这里有一个 Prototype sn-p,我真的很想看到它转换成 Mootools。
document.observe('click', function(e, el) {
if ( ! e.target.descendantOf('calendar')) {
Effect.toggle('calendar', 'appear', {duration: 0.4});
}
});
sn-p 捕捉点击,如果它在容器外点击,$('calendar') 应该切换。
【问题讨论】:
标签: mootools prototypejs