8 個值得了解的實用 HTML5 APIs

jopen 10年前發布 | 7K 次閱讀 HTML5

HTML5提出了許多有用的功能在新的API中,使其在短短的幾年里能夠在網頁設計師和開發人員中流行起來。有一些工具可在互聯網上建立互動和有效的Web應用程序。也有一些非常有用的API,幫助開發者高效建立網站與一些強大的功能 - 如在線視頻游戲,網頁知名度,測試代碼的性能,衡量應用程序的性能等。

1) HTML5 APIs –  User Timing API 

This specification defines an interface to help web developers measure the performance of their applications by giving them access to high precision timestamps. Web developers need the ability to assess and understand the performance characteristics of their applications. the PerformanceMark and PerformanceMeasure interfaces, and extensions to the Performance interface, which expose a high precision timestamp to developers so they can better measure the performance of their applications.

 

8 個值得了解的實用 HTML5 APIs

2) HTML5 API –  Vibration

The API is specifically designed to address use cases that require simple tactile feedback only. Use cases requiring more fine-grained control are out of scope for this specification.

 

8 個值得了解的實用 HTML5 APIs

3) HTML5 API –  Element Classlist

 

8 個值得了解的實用 HTML5 APIs

4) HTML5 API –  High Resolution Time API

This specification defines a JavaScript interface that provides the current time in sub-millisecond resolution and such that it is not subject to system clock skew or adjustments.

 

8 個值得了解的實用 HTML5 APIs

5) HTML5 API –  Speech Synthesis API

The SpeechSynthesis interface is the scripted web API for controlling a text-to-speech output.

 

8 個值得了解的實用 HTML5 APIs

6) HTML5 API –  Dataset API 

The dataset IDL attribute provides convenient accessors for all the data-* attributes on an element. On getting, the dataset IDL attribute must return a DOMStringMap object, associated with the  algorithms.

 

8 個值得了解的實用 HTML5 APIs

7) HTML5 API –  Web Speech API

This specification defines a JavaScript API to enable web developers to incorporate speech recognition and synthesis into their web pages. It enables developers to use scripting to generate text-to-speech output and to use speech recognition as an input for forms, continuous dictation and control. The JavaScript API allows web pages to control activation and timing and to handle results and alternatives.

 

8 個值得了解的實用 HTML5 APIs

8) HTML5 API - Page Visibility

The Page Visibility specification defines a means for site developers to programmatically determine the current visibility of a document and be notified of visibility changes. Without knowing the visibility state of a page, web developers have been designing webpages as if they are always visible.

 

8 個值得了解的實用 HTML5 APIs

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!