<html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <script language="javascript"> for(myprop in document) { if (typeof(document[myprop])=="function"){ document.writeln("属性名称:"+myprop+";属性值:"+document[myprop]+"<br>"); document.writeln(typeof(document[myprop])); } /* document.writeln("Document的所有属性:"); if (typeof(document[myprop])!="function"){ document.writeln("属性名称:"+myprop+";属性值:"+document[myprop]+"<br>"); //document.writeln(typeof(document[myprop])); } */ } </script> </head> <body> <p onClick="func();">Menu Bar</p> <p name="a" style="display:none">item1</p> <p name="a" style="display:none">item2</p> </body> </html>
最后
以上就是苹果大侠最近收集整理的关于打印Dom对象的所有属性和方法的全部内容,更多相关打印Dom对象内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复