fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> </head> <body> <button onclick="myFunction()">点我</button> <p id="demo">单击按钮检查功能核心XML DOM 2对按钮元素是否支持。</p> <script> function myFunction(){ var item=document.getElementsByTagName("BUTTON")[0]; var x=document.getElementById("demo"); x.innerHTML=item.isSupported("Core","2.0"); } </script> <p><strong>注意:</strong> Internet Explorer 8 及之前版本不支持isSupported 方法。</p> </body> </html>
运行结果