个人jQuery bPopup在页面上的可共享链接?
问题描述:
我在单个页面上使用bpopup来显示用户的个人资料(由于这我不能把链接)个人jQuery bPopup在页面上的可共享链接?
并且每个项目都有唯一的ID,并附有单独的代码。
,才有可能分享的特定用户的弹出作为单独的URL
例如www.domain.com/profile#user-3146374
然后,当人们点击链接,页面打开和bpopup自动启动
<a href="#" id="button-3146374">
<div class="image">Image goes here</div>
</a>
<div class="driver-profile" id="user-3146374" style="display:none;">
-- pop up content --
</div>
<script type="text/javascript">
$(function($) {
$(function() {
$('#button-3146374').bind('click', function(e) {
e.preventDefault();
$('#user-3146374').bPopup();
});
});
</script>
答
你可能要么需要使用配置文件时填充HTML渲染配置文件,然后使用内联脚本弹出打开模式或使用AJAX调用从服务器获取数据,然后打开模式