$('.example-hide-4').on('click', function () { $.confirm({ title: false,// hides the title. content: 'If you hide everything, what can do you to close the modal?. <br>"backgroundDismiss" is active on this one, click outside to close.', cancelButton: false,// hides the cancel button. confirmButton: false,// hides the confirm button. backgroundDismiss: true,//点击背景板弹框消失 closeIcon: false// hides the close icon. }); });
提供学习路径:http://www.jq22.com/demo/jqueryConfirm20160413/