javascript and jQuery

Today, when looking for information, and air conditioning maintenance found the article on "javascript and jQuery" article. Speak passably, brought together to share with you:

In fact, many beginners JS friends, will be a tangled problem? What is the problem?

"Learning js in the end is to learn the native JS or jQuery it?"

In fact, in my opinion: you must first understand what is referred to as the javascript (native JS) and jQuery.

javascript is a browser-based scripting language commonly used to add dynamic Web page interactivity. And just a jquery js library in.

And this library relative to the native js, in my opinion: that some tools native javascript methods were packaged. For example: (DOM packaging operation, asynchronous operation .. Ajax) so that, in our development speed becomes quick and easy, but also shorten the development cycle of our.

Of course it has its advantages, but also has its drawbacks. For starters: If you started with a jquery, without learning javascript native. It is bound for failure to master the native JS knowledge points to the final form of dependence on jquery. Only in the treatment of some of the operations of the DOM, the front end can not become a true master.

Why we must recommend that you learn js, in other learning framework, which is we have to figure out.

One, in fact, how good jquery, depending on the underlying native js, what is the basis of native js.

such as:

1, js behind the statement in the end with a semicolon do not have pit in which place when not in use semicolons?

2, js inside single or double quotation marks if there are differences, naming his distinguished name is kind of how?

3, js inside reserved words, keywords, what? Each have much difference between ordinary for loop, where his benefits, where his harm in what we when to use him, when not to use him, and many more...

4, how to inherit a class, what is closure, the closure of the advantages and disadvantages, what is the event broker, the advantages and disadvantages? . and many more...

The above knowledge, to mention a few in any jquery inside books, and these are precisely a js beginner must master 's.

 

Guess you like

Origin www.cnblogs.com/zqw111/p/11106547.html