<script type=\"text/javascript\">
$(function(){
$(\'#click_event\').click(function(){
$(\'#click_event\').html(\'\');
if($(\'#hidden_enent\').is(\':hidden\'))
{
$(\'#hidden_enent\').show();
$(\'#click_event\').html(\'隐藏\');
}
else
{
$(\'#hidden_enent\').hide();
$(\'#click_event\').html(\'显示\');
}
})
})
</script>
</head>
<body>
<div id=\"click_event\" style=\"cursor:pointer\">隐藏</div>
<div id=\"hidden_enent\">测试隐藏</div>
</body>
</html>
本文地址:https://www.stayed.cn/item/22617
转载请注明出处。
本站部分内容来源于网络,如侵犯到您的权益,请 联系我