Home > Web Front-end > JS Tutorial > body text

What is the difference between native js and js

藏色散人
Release: 2022-06-07 16:31:20
Original
15178 people have browsed it

What is the difference between native js and js

The difference between native js and js:

js =javascript, is an implementation of ECMAScript and is currently the most A popular implementation.

As for "native js", you have to use the theory of relativity to understand this concept. "Native js" is mainly relative to "frameworks and class libraries that encapsulate and abstract javascript code". In other words, since the concepts of "js class library" and "js framework" were produced, the concept of "native js" has emerged.

Recommended: "javascript video tutorial"

For example, if you use jquery to change the font color of a certain dom node, you would write like this:

$("#someID").css("color","red");
Copy after login

And "native js" is written like this

document.getElementById('someID').style.color='red'
Copy after login

The above is the detailed content of What is the difference between native js and js. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
js
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template