Linux 拨号vps windows公众号手机端

javascript的api有哪些

lewis 6年前 (2019-04-07) 阅读数 11 #程序编程
文章标签 apiJavaScript

javascript中常用的api有:1.Node.baseURI ,返回网页绝对路径;2.Node.remove(),删除节点;3.document.documentElement,返回文档根节点;4.document.URL,返回文档网址;5.document.domain,返回文档域名;6.document.open(),新建或打开文档;

javascript中常用的api有以下几种

1.Node.baseURI

javascript中Node.baseURI的作用是用于返回当前网页的绝对路径。

2.Node.remove()

javascript中Node.remove()的作用是用于删除当前节点。

3.document.documentElement

javascript中document.documentElement的作用是用于返回当前文档的根节点。

4.document.URL

javascript中javascript中的作用是用于返回当前文档的网址。

5.document.domain

javascript中document.domain的作用是用于返回当前文档的域名。

6.document.open()

javascript中document.open()的作用是用于新建或打开一个文档。

版权声明

本文仅代表作者观点,不代表米安网络立场。

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

热门