编辑下面的代码:【加编码】
<html> <head> <meta name="revised" content="2011-02-03" scheme="YYYY-MM-DD"> <script> function displayResult() { var x=document.getElementsByTagName("meta")[0].scheme; alert(x); } </script> </head> <body> <button type="button" onclick="displayResult()">Display meta scheme</button> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂