小白教程
所有教程
关于
Search
172.70.127.49
172.70.127.49
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Prop document implementation”的源代码
本页内容
上一节:
Coll_doc_images
下一节:
Met_document_importnode
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:document.implementation}}[[Category:dom obj document|26]] = HTML DOM implementation 属性 = [[dom obj document|Document 对象]] 返回处理该文档的 DOMImplementation 对象: <sample title="" desc="" lang="html" hererun="1"> document.implementation; </sample> <run name=""> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>小白教程(xiaobai.wang)</title> </head> <body> <p id="demo">单击按钮来检查这个文件是否有功能HTML DOM 1.0</p> <button onclick="myFunction()">点我</button> <script> function myFunction(){ var imp=document.implementation; var x=document.getElementById("demo"); x.innerHTML=imp.hasFeature("HTML","1.0"); } </script> </body> </html> </run> == 定义和用法 == implementation 属性可返回处理该文档的 DOMImplementation 对象。 == 浏览器支持 == 所有主要浏览器都支持 implementation 属性 == 语法 == <pre> document.implementation</pre> == 技术细节 == {| class="table table-striped table-hover" | 返回值: | 文档的 implementation 对象, 作为一个DocumentImplementation 对象。 |- | DOM 版本 | Core Level 1 Document 对象 |} [[dom obj document|Document 对象]]
返回至“
Prop document implementation
”。
上一节:
Coll_doc_images
下一节:
Met_document_importnode