JQuery

[Pages:78]jQuery

#jquery

1

1: jQuery

2

2

2

Examples

2

jQuery ( "jQuery" "$")

2

3

3

HTML

4

5

jQuery jQuery.

6

jQuery

7

jQuery

7

2: CSS

9

9

9

Examples

9

CSS

9

CSS

10

/

10

CSS -

10

CSS Getter

10

CSS

10

3: DOM

12

Examples

12

DOM

12

12

API

14

.html ()

15

16

.

17

17

17

DOM sortList() DOM .

17

doSort() .

17

$('#btn-sort')

17

18

( )

18

19

4: DOM

20

Examples

20

20

jQuery

20

20

closest ()

21

22

22

23

HTML

23

23

23

23

23

find ()

23

5: jQuery

25

25

Examples

25

25

25

jQuery ajax () , VS .done (), .fail ()

26

26

6: jQuery.animate ()

27

27

27

Examples

27

27

7:

29

Examples

29

29

jQuery

29

8:

30

Examples

30

?

30

jQuery 2.2.3

30

jQuery 3.0

31

31

31

$ (document) .ready () $ (window) .load ().

31

ready () DOM

32

jQuery (fn)

32

9:

34

34

34

34

Examples

34

34

36

37

37

: ","

37

: ""( )

38

: "+"

38

: "~"

38

38

38

38

38

DOM

39

HTML

40

10:

41

41

Examples

41

HTML .

41

HTML

41

42

attr () prop ()

42

11:

43

43

43

43

Examples

43

$ .ajax () HTTP

43

Ajax

44

JSON

44

45

Ajax

47

Ajax

47

1.

47

2.

48

3. FormData

48

4. Ajax

48

12:

50

Examples

50

50

50

13:

52

52

Examples

52

52

52

14:

54

Examples

54

( )

54

innerWidth innerHeight ( )

54

outerWidth outerHeight ( )

54

15:

55

55

Examples

55

55

55

HTML

55

jQuery

55

55

HTML

55

jQuery

55

jQuery

55

56

HTML

56

56

-

56

56

.

57

.load ()

57

ID

58

originalEvent

58

58

jQuery . ( )

59

16:

60

60

60

60

Examples

60

60

.append ()

61

HTML

61

JS

61

.

61

.

62

Array. *

62

HTML (jQuery )

63

,

63

64

jQuery

64

17:

66

Examples

66

-

66

jQuery.fn.extend ()

67

18: /

69

69

Examples

69

2

69

70

You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: jquery

It is an unofficial and free jQuery ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official jQuery.

The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.

Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to info@



1

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download