请帮忙看看为什么jquery代码就是不生效的,新手求教
jquery吧
全部回复
仅看楼主
level 2
wudd2626 楼主
html代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>main</title>
<script type="text/javascript" src="/JS/main.js"></script>
</head>
<body>
<p>点击隐藏,我会消失。</p>
<button type="button" id="hide">隐藏</button>
</body>
</html>
js代码
$(document).ready(function(){
$("#hide").click(function(){
$("p").hide(slow);
});
});
2015年08月31日 03点08分 1
level 3
问题可以去相关论坛(联动北方)提问,会有专家解答[玫瑰]
2015年08月31日 09点08分 2
1