<!--第一条注释-->
<!--第二条注释-->
<html>
<body>
<input type=button value=得到注释 οnclick="getNote()">
<script language=javascript>
function getNote()
{
var note=document.getElementsByTagName("!");
for(var i=0;i<note.length;i++)
alert(note[i].outerHTML);
}
</script>
</body>
</html>
将!改成html哈哈