我修改了w3schools的代码 - Hide paragraph以包含显示按钮,需要6秒才能显示文本。文本隐藏后大约需要3秒钟才能重新显示,是否有这个原因?这是我修改后的代码(仅此代码复制粘贴到W3Schools的“隐藏段落” URL):隐藏后文字显示缓慢
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide(3000);
});
$("#show").click(function(){
$("p").show(6000);
});
});
</script>
</head>
<body>
<button id = "hide">Hide</button>
<button id = "show">Show</button>
<p>This is a paragraph with little content.</p>
<p>This is another small paragraph.</p>
</body>
</html>
工作正常,我。 http://jsfiddle.net/vWLv3/ – 2012-01-13 14:24:37
我认为这个问题是关于为什么需要这么长时间才能显示。 – hvgotcodes 2012-01-13 14:30:35