EffectiveJavaScript
更新 EffectiveJavaScript 到 JavaScript 新版。
파일 탐색기
최종 버전 다운로드 (.zip)- Item 01: Know Which JavaScript You Are Using.md
- Item 02: Understand JavaScript's Floating-Point Numbers.md
- Item 03: Beware of Implicit Coercions.md
- Item 04: Prefer Primitives to Object Wrappers.md
- Item 05: Avoid using == with Mixed Types.md
- Item 06: Learn the Limits of Semicolon Insertion.md
- Item 07: Think of Strings As Sequences of 16-Bit Code Units.md
- README.md
- Item 08: Minimize Use of the Global Object.md
- Item 09: Always Declare Local Variables.md
- Item 10: Avoid with.md
- Item 11: Get Comfortable with Closures.md
- Item 12: Understand Variable Hoisting.md
- Item 13: Use Immediately Invoked Function Expressions to Create Local Scopes.md
- Item 14: Beware of Unportable Scoping of Named Function Expressions.md
- Item 15: Beware of Unportable Scoping of Block-Local Function Declarations.md
- Item 16: Avoid Creating Local Variables with eval.md
- Item 17: Prefer Indirect eval to Direct eval.md
- README.md
- Item 18: Understand the Difference between Function, Method, and Constructor Calls.md
- Item 19: Get Comfortable Using Higher-Order Functions.md
- Item 20: Use call to Call Methods with a Custom Receiver.md
- Item 21: Use apply to Call Functions with Different Numbers of Arguments.md
- Item 22: Use arguments to Create Variadic Functions.md
- Item 23: Never Modify the arguments Object.md
- Item 24: Use a Variable to Save a Reference to arguments.md
- Item 25: Use bind to Extract Methods with a Fixed Receiver.md
- Item 26: Use bind to Curry Functions.md
- Item 27: Prefer Closures to Strings for Encapsulating Code.md
- Item 28: Avoid Relying on the toString Method of Functions.md
- Item 29: Avoid Nonstandard Stack Inspection Properties.md
- README.md
- Item 30: Understand the Difference between prototype, getPrototypeOf, and__proto__.md
- Item 31: Prefer Object.getPrototypeOf to __proto__.md
- Item 32: Never Modify __proto__.md
- Item 33: Make Your Constructors new-Agnostic.md
- Item 34: Store Methods on Prototypes.md
- Item 35: Use Closures to Store Private Data.md
- Item 36: Store Instance State Only on Instance Objects.md
- Item 37: Recognize the Implicit Binding of this.md
- Item 38: Call Superclass Constructors from Subclass Constructors.md
- Item 39: Never Reuse Superclass Property Names.md
- Item 40: Avoid Inheriting from Standard Classes.md
- Item 41: Treat Prototypes As an Implementation Detail.md
- Item 42: Avoid Reckless Monkey-Patching.md
- Item 43: Build Lightweight Dictionaries from Direct Instances of Object.md
- Item 44: Use null Prototypes to Prevent Prototype Pollution.md
- Item 45: Use hasOwnProperty to Protect Against Prototype Pollution.md
- Item 46: Prefer Arrays to Dictionaries for Ordered Collections.md
- Item 47: Never Add Enumerable Properties to Object.prototype.md
- Item 48: Avoid Modifying an Object during Enumeration.md
- Item 49: Prefer for Loops to for...in Loops for Array Iteration.md
- Item 50: Prefer Iteration Methods to Loops.md
- Item 51: Reuse Generic Array Methods on Array-Like Objects.md
- Item 52: Prefer Array Literals to the Array Constructor.md
- Item 53: Maintain Consistent Conventions.md
- Item 54: Treat undefined AsNo Value.md
- Item 55: Accept Options Objects for Keyword Arguments .md
- Item 56: Avoid Unnecessary State.md
- Item 57: Use Structural Typing for Flexible Interfaces.md
- Item 58: Distinguish between Array and Array-Like.md
- Item 59: Avoid Excessive Coercion.md
- Item 60: Support Method Chaining.md
- Item 61: Don't Block the Event Queue on IO.md
- Item 62: Use Nested or Named Callbacks for Asynchronous Sequencing.md
- Item 63: Be Aware of Dropped Errors.md
- Item 64: Use Recursion for Asynchronous Loops.md
- Item 65: Don't Block the Event Queue on Computation.md
- Item 66: Use a Counter to Perform Concurrent Operations.md
- Item 67: Never Call Asynchronous Callbacks Synchronously.md
- Item 68: Use Promises for Cleaner Asynchronous Logic.md
- README.md
// repository documentation
Was this content helpful?
(0 ratings)
