复制代码 代码如下:
<html>
<head>
<script type="text/javascript" src="/jquery/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#add,#edit").bind("click",function(){
$("p").slideToggle();
});
});
</script>
</head>
<body>
<p>This is a paragraph.</p>
<div id='add'>add</div>
<div id='edit'>edit</div>
</body>
</html>
网友评论文明上网理性发言已有0人参与
发表评论: