常见问题页面的Jquery Expander插件 - 请

时间:2011-03-13 18:04:58

标签: jquery expander

加载常见问题解答页面,问题答案会显示一秒钟,然后隐藏。 页面应该加载而不显示答案。它应该只加载显示问题。 我使用的脚本是:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</script>
<script type="text/javascript"
src="http://plugins.learningjquery.com/expander/jquery.expander.js">
</script>
<script type="text/javascript">
    $(function () {          
$('div.readmore').expander({
            slicePoint: 119,
            expandText: 'Read More',
expandSpeed: 'slow',
            userCollapseText: 'Close'
        });
    });
</script>

我可以插入什么不再让这种情况发生? 非常感谢你。

1 个答案:

答案 0 :(得分:0)

在插件演示页面中我看到他们使用

$(document).ready(function() { ... }

而你没有