mychar.style.display="none";???
var mychar = document.getElementById("con").
你的这里多加啦一个.
var mychar=document.getElementById("con").style.display="none"
你在none后面多加了个 .
document.getElementById("con").style="none";
document.getElementById("con").style="block";