1. Features of jQuery jQuery eliminates browser compatibility issues Traversing the DOM tree and selecting elements A large plugin library A utility function library, such as $.type(), $.extent(), and so on The core function of jQuery usually refers to a factory object, that is, the jQuery() function, or its more commonly used alias, the $() function.
English title: Professional jQuery
Author: [US] Otero, [US] Lawrence
Publisher: Tsinghua University Press
Translator: Shi Hongbin
Publication year: 2013-04
ISBN: 9787302317845
1. Application Scenarios Control the program’s runtime flow through a configuration file. What a configuration file usually holds is a string, not an object. When debugging a program, inspect all the attribute values of an object. Dynamic module import. For the first scenario, reflection is the widely adopted approach. Many
Function Description abs(number) Returns the absolute value of a number apply(function[, args[, kwds]]) Calls the given function, optionally providing arguments all(iterable) Returns True if all elements of the iterable are true, otherwise False any(iterable) Returns True if any element of the iterable is true, otherwise False basestring() Abstract superclass of str and unicode, used for type checking bool(object) Returns True or False depending on the boolean value of object callable(object) Checks whether an object is callable chr(number) Returns the character whose ASCII code is the given number classmethod(func) Creates a class method from an instance method cmp(x, y) Compares x and y β returns a positive number if x>y; returns 0 if x==y complex(real[, imag]) Returns the complex number with the given real part (and optional imaginary part) delattr(object, name) Deletes the given attribute from the given object dict([mapping-or-sequence]) Constructs a dictionary, optionally from a mapping or a list of (key, value) pairs.