转自:
http://net.tutsplus.com/tutorials/javascript-ajax/the-10-javascript-mistakes-youre-making/
Mistake 1 - You’re Using Global Variables
Mistake 2 - You’re Not Using Semicolons
Mistake 3 - You’re Using ==
Mistake 4 - You’re using Type Wrapper Objects
Mistake 5 - You’re not Property-Checking when Using For-In
Mistake 6 - You’re Using with
or eval
Mistake 7 - You’re Not Using a Radix When Using parseInt
Mistake 8 - You’re Not Using Braces on if
and while
statements
Mistake 9 - You’re Adding Elements to the DOM Individually
Mistake 10 - You’re Not Learning JavaScript
Mistake 11 - You’re Following all the Rules