部分js代码
<script src="js/simpleAlert.js"></script> <script> $(function () { //单次单选弹框 $("#onlyChoseAlert").click(function () { var onlyChoseAlert = simpleAlert({ "content":"按确定消失按确定消失!", "buttons":{ "确定":function () { onlyChoseAlert.close(); } } }) }) }) </script>