想实现“默认状态不显示,点击按钮显示”的功能,下面的代码错在哪里了呀?
var mychar=document.getElementById("con").style.display="none"; function hidetext() {var mychar = document.getElementById("con").style.display="none";} function showtext() {var mychar = document.getElementById("con").style.display="block";}