BootstrapDialog 应用 实例<二>addWindow

 function clickAlertWindow() {
        var title = "弹出框标题";
        addWindow("dialog-alertWindow", title, "向后台发送的Ajax请求", [ 500, 400 ]);
    }

 

 <button type="button" class="btn btn-sm btn-default" aria-label="Left Align" onclick="clickAlertWindow();">
                          <span class="glyphicon glyphicon-user" aria-hidden="true"></span>&nbsp;点击我弹出窗口</s:text>
                        </button>

 

你可能感兴趣的:(Web)