1 What do you think is the benefit of jquery?
JQuery is a lightweight JavaScript framework
Powerful Selector
Excellent DOM operation encapsulation
Reliable event-handling mechanism
Complete AJAX Package
Excellent browser compatibility
Supports chained operations, implicit iterations
Support for Rich plugins
The documentation for jquery is also very rich
2. How do jquery objects and Dom objects convert?
1. jquery to DOM object:
The JQuery object is an array object that can be enriched by [index] to get a DOM object that can also
by Get[index] to get the corresponding DOM object.
2. DOM object to JQuery object:
$ (DOM object)
3 $ (document). What is the difference between the ready () method and the window.onload?
A: Two methods have similar functions, but there are differences in the timing of implementation.
1 The Window.onload method is to fully add all the elements in the Web page (including all associated files of the element)
Downloaded to the browser before execution.
2 $ (document). The Ready () method manipulates the DOM as it is loaded and invokes the
A row-bound function.
4. Tell me about your understanding of JSON
JSON (JavaScript Object Notation) is a lightweight data interchange format. It is based on standard
A subset of JavaScript, a string that is a Js object or an array structure
JSON has three types of data
1. Single Data
There are number, string, Boolean, and null four types of data
2. Multiple ordered data: array
contained in [], its elements can be any one of three types of data, between elements separated by a number
3. Multiple unordered Data: objects
With {}, its elements must consist of key-value, key is a string and value can be
Any type of data, between key and value separated by: number, two key-value between, separated by a number.
The advantages of the jquery framework and the interview questions