Fork me on GitHub

toggle不支持事件代理的解决办法或者 jquery live绑定toggle

$(".xxx").live("click", function () {
      $(this).toggle(function () {},function () {}).trigger('click');
    });

posted @ 2016-04-27 17:41  迁梦余光  阅读(207)  评论(0)    收藏  举报