25条Javascript 编码规律(javascript best practice for beginner)
摘要:
1.使用“===”代替“==”(use === instead of ==)2. 避免使用eval (Eval = bad)3.不要用缩略局(Dont use short-Hand)// bad codeif(someVariableExists) x = false // good codeif(someVariableExists) { x = false; }4.使用 JS Lint (utilize JS Lint)JSLint is a debugger written by Douglas Crockford. Simply paste in your scrip... 阅读全文
posted @ 2014-01-20 16:36 jassonfish 阅读(400) 评论(0) 推荐(0)
浙公网安备 33010602011771号