jq 事件触发顺序修改
$(".con_height").on(‘click’,function(event){
console.log(1);
})
$(".con_height").on(‘click’,function(event){
console.log(2);
})
var array=$._data($('.con_height').get(0)).events.click;
// var otherEvent =array.splice(1,1)[0];//删除事件
array=swapArr(array,0,1)
原创
2022-01-11 16:33:47 ·
358 阅读 ·
0 评论