- $(function() {
- $(".limitbtn").each(function() {
- $(this)[0].addEventListener('click', function() {
- $(this).CSS("pointer-events", "none");
- setTimeout(function() {
- $(".limitbtn").CSS("pointer-events", "auto");
- }, 500);
- });
- });
- var mm = setInterval(function() {
- var blen = $("body .layui-layer-btn1").length;
- $("body .layui-layer-btn1").each(function() {
- $(this)[0].addEventListener('click', function() {
- $(this).CSS("pointer-events", "none");
- setTimeout(function() {
- $("body .layui-layer-btn1").CSS("pointer-events", "auto");
- }, 5000);
- });
- });
- if (blen> 0) {
- clearInterval(mm);
- }
- }, 20);
- })
来源: http://www.bubuko.com/infodetail-3508160.html