<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的初学者,请帮助我。
最佳答案
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox()
})
关于javascript - facebox在Scala中无法正常工作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19615236/