国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

jQuery實現摸擬alert提示框

2019-11-20 09:57:34
字體:
來源:轉載
供稿:網友

頁面調用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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 射阳县| 秦皇岛市| 呼伦贝尔市| 大渡口区| 休宁县| 宣汉县| 西峡县| 泰安市| 宁城县| 五寨县| 蒙城县| 云梦县| 高青县| 株洲县| 万宁市| 阳东县| 扶余县| 磐安县| 彰化县| 且末县| 吴川市| 建昌县| 巨野县| 海伦市| 区。| 嘉峪关市| 运城市| 中方县| 精河县| 游戏| 嘉义市| 昌图县| 抚远县| 城口县| 即墨市| 志丹县| 沙河市| 清流县| 黄梅县| 绥芬河市| 奉化市|