我有一個非常奇怪的問題與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