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

bootstrap3-dialog-master模態(tài)框使用詳解

 更新時(shí)間:2017年08月22日 14:05:08   作者:javanbme  
這篇文章主要為大家詳細(xì)介紹了bootstrap3-dialog-master模態(tài)框的使用方法,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

 bootstrap3-dialog-master是一款高效,靈活的模態(tài)框,此處為基本知識(shí)!

1、源碼地址

https://github.com/nakupanda/bootstrap3-dialog

2、效果展示

3、示例代碼
所需引入的js和css

<link rel="stylesheet" type="text/css" href="css/bootstrap-dialog.css" rel="external nofollow" > 
    <link rel="stylesheet" type="text/css" href="css/bootstrap.css" rel="external nofollow" > 
    <script type="text/javascript" src="js/jquery-1.11.3.js"></script> 
    <script type="text/javascript" src="js/bootstrap.js"></script> 
    <script type="text/javascript" src="js/bootstrap-dialog.js"></script> 

初始化

<button type="button" id="tm" class="btn btn-primary" style="margin: 100px;">
<span class="glyphicon glyphicon-remove" aria-hidden="true">
</span>點(diǎn)我</button> 

 js實(shí)現(xiàn)代碼

<script > 
    $(function(){ 
           
      $('#tm').on('click',function(){ 
 
            BootstrapDialog.show({ 
              type : BootstrapDialog.TYPE_DANGER, 
              message: '你確定要?jiǎng)h除嗎?', 
              size : BootstrapDialog.SIZE_NORMAL, 
              buttons: [{ 
              label: '確定', 
              action: function(dialog) { 
              dialog.close(); 
              } 
              }, { 
              label: '取消', 
              action: function(dialog) { 
              dialog.close(); 
              } 
              }] 
            }); 
        })  
     })  
</script>

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論

绿春县| 阿巴嘎旗| 濉溪县| 济宁市| 宜阳县| 邻水| 云浮市| 西宁市| 当雄县| 靖西县| 海林市| 贡山| 大同县| 大同县| 谷城县| 百色市| 蕲春县| 德昌县| 从化市| 精河县| 宜昌市| 合阳县| 会理县| 景德镇市| 德格县| 策勒县| 渝北区| 陆川县| 通山县| 砚山县| 马山县| 南靖县| 青河县| 平凉市| 阿克陶县| 天长市| 高清| 凤城市| 织金县| 晋宁县| 拉萨市|