<input type="button" value="隐藏内容" onclick="hideText()"> <input type="button" value="显示内容" onclick="showText">function hideText(){ var ns=document.getElementById("txt"); var NS=document.getElementById("con"); ns.style.display="none"; NS.style.display="none"; }function showText(){ var Dsplay=document.getElementById("con"); var Dtxt=document.getElementById("txt"); Dspaly.style.display="block"; Dtxt.style.display="block";}
添加回答
举报
0/150
提交
取消