我遇到了 Bootstrapx 点击问题(所有 js 库都正确链接)
$(function () {
$('.userProfile').each(function(index){
var el=$(this);
$.get(el.attr('data-load'),function(d){
el.clickover({html:true,content: d}).clickover();
});
});
});
还有我的 html
<p><a href="#" class="userProfile" rel="clickover" data-load="inc/userProfile.inc">
亚历克斯·M.完成了 Marc B 的任务。
弹出内容
<a href="#">Alex M.</a>
<span class="label">Volunteer</span>
<button class="btn btn-primary btn-small">Follow</button>
<button class="btn btn-small" data-toggle="button" data-dismiss="clickover">Close</button>
期待获得一些帮助,
谢谢
伊莎贝尔,
最佳答案
你确定你是被迫使用
el.clickover({html:true,content: d}).clickover();
而不是
el.clickover({html:true,content: d});
你能在pastebin上重现它吗?
关于javascript - Bootstrapx 点击问题 - 需要两次点击,有时需要 3 次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14460072/