多个对象绑定同一个事件

$("#div1", "#divN").click(function() { });

或者

$("#div1, #divN").click(function() { });

猜你喜欢

转载自www.cnblogs.com/rdchen/p/9635777.html