<script src="@routes.Assets.at("javascripts/jquery-1.9.0.min.js")" type="text/javascript"></script>
<script src="@routes.Assets.at("javascripts/jquery-1.9.1.js")" type="text/javascript"></script>
<script src="@routes.Assets.at("javascripts/facebox.js")" type="text/javascript"></script>
<link href="@routes.Assets.at("stylesheets/facebox.css")" media="screen" rel="stylesheet" type="text/css"/>
<script>
</script>
<body>
<a href="#info" rel="facebox">text</a>
<div id="info" style="display:none;">
hello world
</div>
</body>
Facebox和div标签没有显示。我是ajax的初学者,所以请帮助我。
答案 0 :(得分:3)
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox()
})