The target
- Be able to relate the Web APls stage to the JavaScript syntax stage
- What is an API
- What is a Web API
directory
Web APls and JS base association API and Web API
1. Web APls and JS basic correlation
1.1 Components of JS
- ECMAScript
- DOM page document object model
- BOM Viewer object model
1.2 JS Foundation phase and WEB APIS phase
JS Foundation Stage
- You will learn the basic syntax of the ECMAscript standard
- Basic JS syntax is required
- Learning only the basic grammar will not do the common web interaction effect
- The purpose is to lay the foundation behind Js and pave the way
Web apis phase
- Web APIs are a standard of the W3C organization
- The main vocabularies of Web APIs are DoM and BOM
- Web APIs are a unique part of Js
- Main learning page interactive functions
- Need to use Js base content to do the foundation
2. API and Web API
2.1 API
Apis (Application Programming Interfaces) are predefined functions that provide applications and developers with the ability to access a set of routines based on a piece of software or hardware without having to access the source code or understand the details of the inner workings.
Simply put, it is a tool for the programmer to make it easier to achieve the desired function.
2.2 Web API
Web API is a set of apis (BOM and DOM) provided by a browser to manipulate browser functionality and page elements.
2.3 summarize
- An API is an interface for us programmers, to help us implement a function, we can use it, don’t worry about the internal implementation
- Web API is mainly for the interface provided by the browser, mainly for the interaction effect of the browser.
- WebAPI generally has input and output (functions pass parameters and return values). WebAPI is mostly methods (functions).