按鈕插件狀態(tài)如何恢復
改成這樣能夠在1S后恢復,但是第二次點擊就不能恢復了,怎么改才能讓每次都恢復呢? $(function() { ? ? ?$(".btn").click(function(){ ? ? ? ? $(this).button('loading').delay(1000).queue(function() { ? ? ? ? ? ?$(this).button('reset'); ? ? ? ? }); ? ? ? ? ? ? ?}); ? });
改成這樣能夠在1S后恢復,但是第二次點擊就不能恢復了,怎么改才能讓每次都恢復呢? $(function() { ? ? ?$(".btn").click(function(){ ? ? ? ? $(this).button('loading').delay(1000).queue(function() { ? ? ? ? ? ?$(this).button('reset'); ? ? ? ? }); ? ? ? ? ? ? ?}); ? });
2015-04-08
舉報
2015-12-14
使用jq的bind()去綁定點擊事件,這樣可以每次點擊