摘要: ``` $(".btn").live("click",function(){ $(this).toggle( function () { //事件 1 console.log('点击') }, function () { //事件 2 console.log('再点击') } ).trigger('click'); }); ``` 阅读全文
posted @ 2020-03-06 14:22 张什么锋 阅读(245) 评论(0) 推荐(0)