因为disp 是document.getElementById(element).style.display的值只是一个字符串,不是对对象的引用obj = document.getElementById(element).style;
obj.display= '';