bootbox 是对bootstrap 插件 modal 的封装
官方网站 http://bootboxjs.com/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link href="bootstrap.css" rel="stylesheet">
<script src="jquery.min.js"></script>
<script src="bootstrap.min.js"></script>
<script src="bootbox.js"></script>
</head>
<body>
<script>
$(function () {
bootbox.alert("Hello world!", function () {
});
})
</script>
</body>
</html>