NodeJS development blog

A distinction ECMAScript / JS / NodeJs

--ECMAScript. It defines the syntax to write JS and NodeJS must abide;

Variable definitions, cycles / determination / function;

Prototype and prototype chain / scope and closure / asynchronous

Can not operate DOM click event is not listening, can not send ajax request, can not handle http request, the file can not be operated.

In short, only ECMAScript almost can not do any actual project.

- JS. Use the ECMAScript grammar specification, plus WebAPI indispensable.

BOM contains DOM manipulation operations such as AJAX event binding

In the two binding browser to complete the operation.

--NodeJS. Use the ECMAScript grammar specification, plus nodeJS API indispensable.

Processing http, processing files, etc.

Combination of both, it is possible to complete the operation of the server side.

 

Guess you like

Origin www.cnblogs.com/xiaozhumaopao/p/11028806.html
Recommended