我有一个非常奇怪的问题与twitter引导警报框。下面是示例我试图执行BootStrap警报行为奇怪
<script src="js/jquery.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap-dialog.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/bootstrap-dialog.css">
<title>Insert title here</title>
<script>
function callMe(){
test();
BootstrapDialog.alert('Bye');
}
function test(){
BootstrapDialog.alert('hello');
}
</script>
</head>
<body>
<input type="button" name="button" value="button" onclick="callMe()"/>
</body>
</html>
的结果应该是:你好---->再见
结果如来:再见---->你好
如果我评论一个Bootstrap警报框然后也是相同的结果(没有重叠的点框)。
function callMe(){
test();
}
function test(){
alert('inside test');
BootstrapDialog.alert('hello');
alert('outside test');
}
</script>
结果来为:内部测试--->外测试--->你好 结果应该是:内部测试--->你好--->外测试
其不正确,如果我执行如下函数callMe(){test;}; //BootstrapDialog.alert('VBye'); } \t function test(){ \t alert('inside test'); BootstrapDialog.alert('hello'); alert('outside test'); } ...结果是 - >内部测试---外部测试--->你好 – harpal18 2015-01-21 03:30:34