HTML5

HTML5 Geolocation

HTML5 Web 存储  localStorage 、sessionStorage 

The HTML5 Web SQL database   simulates the database on the browser, and JS can be used to manipulate SQL to read and write data. openDatabase,  transaction,  executeSql

HTML5 application caching  By creating a cache manifest file, offline versions of web applications can be easily created. This means that you can access without an internet connection.

HTML5 SSE 

Server-sent Events is a one-way communication based on the WebSocket protocol in which the server sends events and data to the client.

HTML5 server-sent events allow web pages to get updates from the server.

Server-Sent Events - One-Way Messaging

The Server-Sent event refers to a web page automatically getting updates from the server.

It used to be possible to do this too, provided the web page had to ask if an update was available. Updates can arrive automatically through server-sent events.

HTML5 WebSocket

WebSocket is a protocol provided by HTML5 for full-duplex communication over a single TCP connection.

In the WebSocket API, the browser and the server only need to do a handshake, and then a fast channel is formed between the browser and the server. Data can be transferred directly between the two.

The browser sends a request to the server to establish a WebSocket connection through JavaScript. After the connection is established, the client and the server can directly exchange data through the TCP connection.

After you get the Web Socket connection, you can send data to the server through the  send()  method, and receive the data returned by the server through the  onmessage  event.

The following APIs are used to create WebSocket objects.

var Socket = new WebSocket(url, [protocal] );

The first parameter url in the above code, specifies the URL of the connection. The second parameter protocol is optional and specifies acceptable subprotocols.

HTML5  Web Workers   run JavaScript in the background without affecting the performance of the page, better explained, you can use web workers to provide an easy way to run scripts for web content in background threads that perform tasks The process does not interfere with the user interface!

What is a Web Worker?

When a script is executed in an HTML page, the state of the page is not responsive until the script has completed.

A web worker is JavaScript that runs in the background, independent of other scripts, and does not affect the performance of the page. You can continue to do whatever you want: click, select content, etc., while the web worker runs in the background.

HTML5 Canvas Script to Draw Graphics Svg Scaled Vector Graphics

HTML5 MathML  Mathematical Markup Language, is a markup language based on XML (a subset of Standard Universal Markup Language) used to write mathematical symbols and formulas on the Internet

HTML5 Drag and Drop (Drag and Drop)    The purpose of drag and drop is to allow you to place an object where you want it to be placed. 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324998907&siteId=291194637