Home > Article > Web Front-end > 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!