日期:2014-05-18  浏览次数:20704 次

棘手啊
我实现这样一个功能
一个按钮 一按 按钮隐藏 出现我要的字
怎么弄啊 最好用javascript和jsp Struts


------解决方案--------------------
探讨
<input type="button" name="bu" value="隐藏" onclick="hiddenButton()">
<div id="showWord" style="display:none">显示的字 </div>

<script>
function hiddenButton(){
document.getElementById("showWord").style.display = "";
document.getElementById("bu").style.display = "none";
}
</script>