label 阻止冒泡 防止点击label 触发2次事件

 // 必须要把 jnput的外面的label加上事件阻止冒泡,否则点击label的时候,会冒泡到input上 再次触发input的点击事件
                $('.xt_order_cleft_modb_rl_dx').on('click','.xt_order_cleft_modb_rl_dx_lb',function (e) {
                    e.stopPropagation();
                    e.cancelBubble=true;
                });

 

posted @ 2019-04-29 13:41  盖大楼  阅读(808)  评论(0编辑  收藏  举报