jQuery对话框插件simpleAlert是一款功能强大的支持多个确认对话框代码,单次单选弹框、单次双选弹框、多次双选弹框、多次双选弹框全关闭代码。
js代码
<script src="js/simpleAlert.js"></script>
<script>
$(function () {
//单次单选弹框
$("#onlyChoseAlert").click(function () {
var onlyChoseAlert = simpleAlert({
"content":"按确定消失按确定消失!",
"buttons":{
"确定":function () {
onlyChoseAlert.close();
}
}
})
})
//单次双选弹框
$("#dblChoseAlert").click(function () {
var dblChoseAlert = simpleAlert({
"content":"按确定/取消消失!",
"buttons":{
"确定":function () {
alert("你好");
dblChoseAlert.close();
},
"取消":function () {
dblChoseAlert.close();
}
}
})
})
系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791