欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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)論