寻找所有Javascript(BOM,DOM,内置)对象的官方文档 [英] Looking for official docs for all Javascript (BOM, DOM, built-in) Objects

查看:100
本文介绍了寻找所有Javascript(BOM,DOM,内置)对象的官方文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我制作Web应用程序时。
据我所知,javascript有三个对象(BOM,DOM,内置对象)。
如果我要操作DOM对象。我在此之后参考w3c.org中的DOM官方文档。

when I make Web Application. As far as I know, There are three objects(BOM, DOM, built-in Objects) to javascript. If I want to manipulate DOM object. I refer DOM official documentation in w3c.org following this.

https://www.w3.org/DOM/DOMTR

如果我想了解内置对象。我可以参考ECMA-262文档。很难阅读,但这是官方文档。

If I want to know built-in objects. I can refer ECMA-262 documentation. It's very hard to read but it's official documentation.

https://www.ecma-international.org/publications/standards/Ecma-262.htm

如果我想控制浏览器。我正在搜索BOM表。我想知道官方BOM表对象文档在哪里。我认为Google和Mozilla必须提供官方文档。但是我找不到它在哪里。

If I want to control browser. I am googleing about BOM. I wonder where is offical BOM Object documentation. I think Google and Mozilla have to provide official documentation. but I couldn't find Where it is.

第一个问题:
是否有像DOM这样的BOM标准?

first question : Is there BOM standard like DOM?

第二个问题:
Chrome官方BOM表文档在哪里?

Second question : Where is Chrome official BOM documentation?

推荐答案

我认为也许是最接近的东西您正在寻找的是Web API接口列表-这些是剪贴板API 导航器,每种浏览器的实现方式不同,但可以通过共享的Javascript接口访问。 MDN文档上的列表非常全面。

I think maybe the closest thing to what you are looking for is a list of Web API interfaces - these are things like the Clipboard API and Navigator, which are implemented different on each browser, but accessible via a shared Javascript interface. The list on MDN Docs is pretty comprehensive.

浏览器还可以通过提供可从扩展名调用的API来公开其他内部控件,例如在右键单击菜单中添加其他选项。但是,与Web API不同的是,这些浏览器之间的浏览器通常非常不同,因此最好参考该特定浏览器的文档。例如,要在Chrome的右键菜单中添加一些内容,可以通过 chrome.contextMenus API

Browsers can also expose extra internal controls, like adding extra options to the right click menu, by providing APIs that are callable from "extensions". However, unlike the Web APIs, these are often very different browser-to-browser, and it is best to refer to the documentation of that specific browser. For example, to add something to the right click menu in Chrome, that would be through the chrome.contextMenus API.

  • Chrome Extension APIs: here
  • Firefox Extension APIs: here

最后,如果您真的想进入-深度,您总是可以查看 Chromium Firefox / Gecko 。开源的巨大好处之一!

Finally, if you really want to go in-depth, you could always look at the source-code for Chromium or Firefox/Gecko. One of the great benefits of open-source!

这篇关于寻找所有Javascript(BOM,DOM,内置)对象的官方文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆