H5_0027: Layer Use

1, suggesting that

 

    document.getElementById("cloWd").onclick = function(){
      layer.confirm ( 'Are you sure you want to close it?', {btn: [ 'OK', 'Cancel'], title: "Tips"}, function () {
        window.location.href = "http://127.0.0.1:12345/"
    });


      // layer.open({
      // title: 'In-Circuit Debugger'
      //, content: 'you can fill in any layer code'
      // });


      // layer.alert ( 'dark green style, click OK to see the blue', {
      // skin: 'layui-layer-molv' // class name style
      //   ,closeBtn: 0
      //   }, function(){
      // layer.alert ( 'even it blue style', {
      //   skin: 'layui-layer-lan'
      //   ,closeBtn: 0
      //, shift: 4 // animation type
      //   });
      //   });


      // layer.msg ( 'prices change your flight, go back to re-select the flight!', {
      //     time: 10000,
      //     shade : [0.6 , '#000' , true],
      // btn: [ "Back to list", "close"],
      //     yes: function () { history.back(); }
      // });

        // if (window.confirm ( "Are you sure you want to close?")) { 

        //   // window.location.href = "http://127.0.0.1:12345/"
        // }

 

2

 

 

 

 

Guess you like

Origin www.cnblogs.com/eliteboy/p/11929051.html