最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

jQuery實(shí)現(xiàn)摸擬alert提示框

 更新時(shí)間:2016年05月22日 15:54:23   投稿:hebedich  
這篇文章主要介紹了jQuery實(shí)現(xiàn)摸擬alert提示框的相關(guān)資料,需要的朋友可以參考下

頁面調(diào)用JS:

    $(document).ready(function() {
      $("#delete_without_layer").click(function () {
        $.tConfirm.open({body:'Are you sure to delete?',type:'confirm',onOk:function(){
          alert("yes");
        }});
      });
      $("#delete_with_layer").click(function () {
        $.tConfirm.open({overlay:true,body:'Are you sure to delete?',type:'confirm',onOk:function(){
          alert("yes");
        }});
      });
      $("#information").click(function () {
        $.tConfirm.open({body:'This is confirm box based on fancybox!',type:'info',onOk:function(){
          alert("yes");
        }});
      });
      $("#success").click(function () {
        $.tConfirm.open({body:'Save success!',type:'success',onOk:function(){
          alert("yes");
        }});
      });
      $("#error").click(function () {
        $.tConfirm.open({body:'Some fields are wrong!',type:'error',onOk:function(){
          alert("yes");
        }});
      });   $("#warning").click(function () {
        $.tConfirm.open({body:'Someone login, it\'s not real user!',type:'warning',onOk:function(){
          alert("yes");
        }});
      });
    });

Figure 1. common confirm

Figure 2. confirm box with layer

Figure 3. error box

Figure 4. success box

Figure 5. warning box

源碼下載:
https://github.com/tomlxq/jquery-confirm

相關(guān)文章

最新評論

手机| 洪江市| 石嘴山市| 堆龙德庆县| 瑞丽市| 济南市| 古田县| 鹤山市| 龙海市| 金阳县| 丰镇市| 信宜市| 扎兰屯市| 西峡县| 尼木县| 颍上县| 岳西县| 德化县| 北碚区| 盐池县| 株洲市| 青龙| 郓城县| 延吉市| 柘荣县| 泸定县| 井陉县| 衢州市| 夹江县| 全椒县| 双牌县| 丰台区| 淄博市| 博野县| 古蔺县| 应用必备| 万山特区| 建宁县| 玉屏| 蓝山县| 新河县|