jquery easyui linkbutton()--按鈕操作(-----解決點擊事件禁用問題-----)


        $('#SendEmailCode').click(function () {
            var theTIme = 30;
            
            $("#SendEmailCode").css("pointer-events","none");//-------關鍵點使用css修改讓渲染過的按鈕失去事件-----//
            var theNum = setInterval(function () {
                if (theTIme <= 0) {
                    clearInterval(Number);
                    $('#SendEmailCode').linkbutton({ text: '發送驗證碼' });
                    $("#SendEmailCode").css("pointer-events","auto");//-----關鍵點使用css修改讓按鈕恢復事件-------//
               } else {
                    theTIme -= 1;
                   $('#SendEmailCode').linkbutton({ text: '發送驗證碼(' + theTIme + '秒)' })
               }
            }, 1000)
        });

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM