摘要: 使用过iscroll插件的同学都知道iscroll支持自定义事件,即在调用iscroll时参数赋值options.click = true。 接下来定义事件如: 1 $clinicAppoint.on('click', function(event) { 2 if($(event.target).c 阅读全文
posted @ 2015-10-13 20:20 anthonyliu 阅读(1100) 评论(0) 推荐(0) 编辑
摘要: 1.隔离click事件 有一些应用,不需要我们自己的定义的click函数,例如: 1 $(document).on('click', '#inp', function(e){ 2 alert('hello world!'); 3 }); 希望点击id="inp"时,不予以响应,那怎么办!!看代码: 阅读全文
posted @ 2015-10-13 15:10 anthonyliu 阅读(208) 评论(0) 推荐(0) 编辑