Home  >  Article  >  Web Front-end  >  What is the difference between native js and js

What is the difference between native js and js

藏色散人
藏色散人Original
2019-06-17 11:19:5415184browse

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");

And "native js" is written like this

document.getElementById('someID').style.color='red'

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!

Statement:
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
Previous article:What is ajax cross domainNext article:What is ajax cross domain