Introduction WebAPI

Web API introduction

The concept of API

API (Application Programming Interface, Application Programming Interface) is a function of a number of pre-defined in order to provide application developers with the ability of a software-based or hardware to access a set of routines, but without having to access the source code, or understand the inner workings details of the mechanism.

  • Any development language has its own API

  • Wherein the input and output API (I / O)

    • var max = Math.max(1, 2, 3);

  • Use the API (console.log ( 'adf'))

The concept of Web API

A set of operating the browser function and page elements API (BOM and DOM) provided by the browser

API (a set of methods) Web API refers specifically provided herein browser, Web API has other meanings in later lessons

Master common way to call the API provided by the browser

MDN-Web API

JavaScript composition

ECMAScript - JavaScript core

Specification defines the syntax of JavaScript

The core JavaScript, describes the basic syntax and data types of languages, ECMAScript is a standard that defines a standard language specific implementation independent

BOM - Browser Object Model

A set of API functions operate browser

BOM may be operated by the browser window, for example: pop-up box, control jumps browser, acquisition resolution, etc.

DOM - Document Object Model

A set of API operation page elements

HTML DOM can be seen as a document tree, API provided by DOM node can operate on the tree

Guess you like

Origin www.cnblogs.com/superjishere/p/11740766.html