目录

JavaScript 网络 API


网络 API

Web API 具有可以扩展浏览器功能的方法和属性。

示例

const myArray = new Uint32Array(10);
crypto.getRandomValues(myArray);
亲自试一试 »

Web API 参考

Reference Description
Console API Methods to access the browser's debugging console.
Fetch API Methods to fetch data from web servers.
Fullscreen API Methods to handle HTML elements in full-screen.
Geolocation API Methods to let users to provide their location to web applications.
History API Methods to access to the URLs visited by the user.
MediaQueryList API Methods to query the media (the screen).
Storage API Methods to access session and local storage.
Validation API Methods to validate HTML elements.

其他属性和方法

Property/Method Description
getRandomValues() Generates an array of random numbers