JS & Jquery

Get Started. It's Free
or sign up with your email address
JS & Jquery by Mind Map: JS & Jquery

1. Jquery

1.1. Selector

1.2. DOM Traversal

1.2.1. $(selector)

1.2.2. .find

1.2.3. .filter

1.2.4. .first

1.2.5. .last

1.2.6. etc

1.3. events

1.3.1. click、change、keyPress、etc

1.3.2. preventDefault

1.3.3. Propagation

1.3.4. stopPropagation

1.3.5. stopImmediatePropagation

1.3.6. stopPropagation vs stopImmediatePropagation

1.4. Dom on the fly

1.4.1. Creates DOM elements on the fly from the provided string of raw HTML.

1.4.1.1. $( "<img />")

1.4.1.2. $("<div></div>")

2. Jquery Plugin

2.1. our plugins

2.2. Address Selector、Components

3. Module pattern

3.1. module

3.2. OrderList、ConvertFlow

4. 延伸閱讀

4.1. JavaScript Design Patterns

4.2. requirejs

4.3. backbone

4.4. Ember

5. Quiz

5.1. Propagation Quiz

5.2. preventDefault Quiz

5.3. == VS ===

5.4. null === undefined

5.5. var function VS function

6. JS

6.1. 2013/10

6.2. The three layers of a Web page

6.2.1. Bad Examples

6.3. Some variables

6.3.1. var a = 1, b = 2, sum = a + b, myobject = {}, i, j;

6.3.2. NaN

6.3.3. null

6.3.4. undefined

6.3.5. Array & Object

6.3.6. var function VS function

6.3.7. null == undefined?

6.3.7.1. (object==null) == (object==undefined) == (!object)

6.4. Some grammar

6.4.1. For

6.4.2. While

6.4.3. Switch

6.4.4. If

6.4.5. ?:

6.5. Operator PK

6.5.1. == VS ===

6.5.2. ++i VS i++

6.6. Some habits

6.6.1. 4 spaces (or tab)

6.6.2. White Space

6.6.2.1. After the commas that delimit array items: var a = [1, 2, 3];

6.6.2.2. Initializing multiple variables (i and max) in a for loop: for (var i = 0, max = 10; i < max; i += 1) {...}

6.6.2.3. After the semicolons that separate the parts of a for loop: for example, for (var i = 0; i < 10; i += 1) {...}

6.6.2.4. Delimiting function arguments: myFunc(a, b, c)

6.6.3. Prevents logical errors when a variable is used before it’s

6.6.4. Naming Conventions

6.6.4.1. Variable names should be nouns such as car or person .

6.6.4.2. Function names should begin with a verb such as getName() . Functions that return Boolean values typically begin with is , as in isEnabled() .

6.6.4.3. Use logical names for both variables and functions, without worrying about the length.

6.6.4.4. etc...

6.6.5. HACKS

6.6.5.1. Because of browser differences, JavaScript code typically contains some hacks.put that in a comment

6.6.6. eval() is evil.

6.6.7. string combine with "join"

7. client-server

7.1. without JavaScript

7.2. with JavaScript

8. Pratice

8.1. Module

8.2. Jquery Plugin