简单教程
提交运行
代码编辑器:
<meta http-equiv="content-type" content="text/html;charset=utf-8"> <script> function displayResult(){ var x=document.getElementsByTagName("meta")[0].httpEquiv; alert(x); } </script> <button type="button" onclick="displayResult()">显示 HTTP-Equiv</button>
运行结果: