国产探花免费观看_亚洲丰满少妇自慰呻吟_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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 兰溪市| 新干县| 钟山县| 克拉玛依市| 独山县| 错那县| 仁布县| 永定县| 青龙| 吉安市| 五台县| 马关县| 隆林| 乌鲁木齐市| 错那县| 区。| 宜君县| 陇南市| 乃东县| 宣恩县| 茌平县| 林州市| 长沙市| 顺平县| 深圳市| 崇左市| 星座| 郴州市| 萨迦县| 甘谷县| 海宁市| 武穴市| 奇台县| 巴南区| 颍上县| 天长市| 巴彦淖尔市| 嘉祥县| 寿光市| 道真| 女性|