Skip to content

flybywind/SecretsOfJavaScriptNinja

Repository files navigation

Javascript忍者秘术精要

翻译自Secrets of Javascript Ninja,摘要其中最精妙的部分进行翻译

Part 2

3 Functions are fundamental (函数是基础)

  1. 函数式的区别在哪 What’s with the functional difference?

  2. 函数声明 Declarations

  3. 函数调用 Invocations

4 Wielding functions (挥舞函数)

  1. 匿名函数 Anonymous functions

  2. 递归 Recursion

  3. 把函数当对象玩

  4. 变长参数列表

  5. 检查函数

6 Object-orientation with prototypes (用原型实现面向对象)

  1. 初始化和原型 Instantiation and prototypes
  2. 陷阱们 The gotchas!
  3. 设计类体系 Writing class-like code
  4. 总结 Summary

7 Wrangling regular expressions (修炼正则表达式)

  1. 为什么使用正则
  2. 正则用法
  3. 编译正则表达式
  4. 正则捕获
  5. 函数替换
  6. 使用正则解决实际问题

8 Taming threads and timers (驯服线程和计时器)

  1. 计时器和线程如何工作
  2. 可靠的最小延时
  3. 处理计算密集性任务
  4. 中央计时控制器
  5. 异步测试

Part 3

9 Ninja alchemy: runtime code evaluation (忍者点金术:动态代码解析)

  1. 执行机制
  2. 函数反编译
  3. 代码解析的实际应用

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published