<style type="text/css"> a { display: none; } </style>
<p id="p"> a paragraph </p>
<a href="google.com"; id="a">google</a>
<script type="text/javascript">
var a = (document.getElementById('a')).style;
alert(a.display);
var p = (document.getElementById('p')).style;
alert(p.display);
p.display = 'none';
alert(p.display);
</script>
如何正确检索锚标签的显示属性?谢谢。