I recently did web development in the project and read some books (I think This is classic)
- Sharp jquery (my getting started JS tutorial, which verifies every example in the book and makes some modifications to view the effect)
- Jquery practice (Chinese Version)
- Basic JavaScript tutorial (Chinese version 6) by Tom negrine Dori Smith (to make the code more standard and understand the structure of various library files)
- Javascript practice (Chinese Version)
- Ajax hacks (Chinese Version)
- Basic Ajax tutorial (Chinese Version)
I learned about JS from the jquery framework for a semester. It is concise and practical. CSS and Dom are charged later.
Develop and urge yourself:
1. Do not transmit unnecessary data
2. User experience first
3. perform preliminary verification on the page, and verify the complex problems in the background.
4. Try to put all JS files on one page in one JS file. Do not import files, HTML is everywhere and JavaScript is mixed
5. Create your own commands and package the set. This allows future project reuse.
6. Code should be as concise as possible, otherwise it violates the jquery Principle
7. Pay attention to coding rules; otherwise, browser incompatibility problems may easily occur.
8. Compile the code and perform separate tests in mainstream browsers such as IE and Firefox.
9. Firefox JS debugging tool firebug, F12
JS debugging tool companion. js + debugerbar in ie6-8 (also quite useful)
Google Chrome also comes with JS debugging tools, F12
10. Create your own demo library for various effects
11. Try to avoid conflicts between different JS libraries. For example, if Javascript code and jquery code are mixed to operate DOM elements, do you mainly add $
12. Familiar with the source code and instances of the above basic classic data, and can be freely modified and modeled during use.