摘要: jQuery的绑定事件非常方便,有bind、unbind、live、one,还有它帮你把一些常用的事件给单独了出来,比如控件的onclick事件,我们绑定onclick事件的时候只需要view source print?1$("#testButton").click(function() {2alert("I'm Test Button");3});详细的可以参考我写过的jQuery事件机制和jquery如何绑定事件这两篇文章如果我们要取消绑定的事件?jQuery有unbind的方法,专门用来取消绑定的事件view source print?1$ 阅读全文
posted @ 2011-10-09 11:26 awp110 阅读(256) 评论(0) 推荐(0) 编辑