4

我使用按钮和 div 但在所有情况下 bootbox.js 将我的页面滚动到顶部。

$("#sampleButton").click(function(){
    bootbox.alert("hey");
});
4

2 回答 2

3

我通过使用jquery-impromptu解决了这个问题

于 2014-04-01T01:04:27.327 回答
0

尝试使用

$("#sampleButton").click(function(e){ 
  e.preventDefault();
  bootbox.alert("hey"); 
});
于 2014-03-22T23:21:57.307 回答