Bootstrap3.3.5官網(wǎng)文檔中 按鈕的加載狀態(tài)的代碼 點(diǎn)擊按鈕無(wú)反應(yīng)
<button type="button" id="myButton" data-loading-text="Loading..." class="btn btn-primary" autocomplete="off"> ?
?Loading state </button>?
<script>?
? $('#myButton').on('click', function () { ? ??
? ? var $btn = $(this).button('loading') ? ??
? ?// business logic... ? ??
? $btn.button('reset') ? })?
</script>