<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js">
src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js">
</script>
</head>
<script>
function confirm() {
BootstrapDialog.confirm('Are you sure you want to do this?');}
</script>
<input type="button" value="confirm" onclick="confirm()" />
您好。我试图做一个由按钮输入激活的引导确认警报。我是一个初学者,所以它可能是我缺失的基本/明显的东西......任何帮助都非常感激。麦克
答案 0 :(得分:0)
一些事情:
./node_modules\restify
标记不正确,需要修复script
bootstrap.css
bootstrap-dialog.js
&#13;
function confirm() {
BootstrapDialog.confirm('Are you sure you want to do this?');
}
&#13;