案例:javascript案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<html>
2
<body>
3
4
<p><a id="myAnchor" type="text/html" href="//www.w3xue.com">W3xue.com</a></p>
5
6
<script type="text/javascript">
7
x=document.getElementById("myAnchor");
8
document.write(x.type);
9
</script>
10
11
</body>
12
</html>