/**
* 创建对话窗口
* @param content 内容
* @param titles 标题
* @param classNametype 按钮样式
*/
$.msg = function createDialog(titles,content,classNametype){
bootbox.dialog({
title :titles,
message: "<span style='color:red;'><font size='3'>"+content+"</font></span>",//内容
animate: true,//animate the dialog in and out (not supported in < IE 10)
/* closeButton: false,//关闭X*/
buttons: {
danger: {
label: "<i class='icon-ok'></i>确定",//按钮名称
className: classNametype,//按钮样式
}
}
});
};
封装bootbox.js对话框
最新推荐文章于 2023-03-26 08:13:53 发布