20151117

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="application/javascript" src="../jquery-1.11.3.min.js"></script>

<script type="application/javascript"
>

//$(document).ready(function() {
    
//$("#hide").click(function(){$("p").hide;});
//$("#show").click(function(){$("p").show;});});



</script>
</head>

<body>
<p>显示的内容</p>

<p>显示的内容2</p>

<div>xianshi</div>

<input id="hide" onclick="$(this).click($('p').toggle())" type="button" value="隐藏" />

<input id="show" onclick="$(this).click($('p').show())"  type="button" value="显示" />
</body>
</html>

 

posted @ 2015-11-17 08:21  呼哧呼哧  阅读(110)  评论(0编辑  收藏  举报