Implementation method close up by Layer pop-up

Because the official is not provided, it can only be implemented, including the button countdown and title countdown, the title countdown at the comment section:

         Function func1 () {var i = 9; var interval; layer.confirm ('is Submit? ', {Btn: [i + 1 +' S can be submitted ',' exit '], // button Skin:' Layui-Layer-Molv ', Success: Function (A, B) {$ (". Layui-layer-btn0 "). CSS (" BackgroundColor "," # 92b8b1 "); var fn = function () {// Layer.title After, the system will automatically exit and close. ', b); $ (". layui-layer-btn0). Text (I + 'S) after submit'); i-;}; interval = setInterval (function () {fn (); if (i === 0) {$ ".layui-layer-btn0"). CSS ("BackgroundColor", "# 019f95");$ (". Layui-layer-btn0). Text ('submit'); ClearInterval (interval);}}, 1000);}, end: function () {ClearInterVal (interval);}}, function () { IF (i       <=0) {
                 layer.msg('已提交', {icon: 1});
              }
        
          }, function(){
            clearInterval(interval);
             layer.msg('已关闭', {icon: 1});
          
          });
      }
      These Layer pop-up layers The implementation method of the countdown closure is that Xiaobian shared all the contents, I hope I can give you a reference, I hope everyone will support Tumi Cloud.                      
© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment