《JavaScript语言精粹》的原文摘录

  • We all find the good parts in the products that we use. We value simplicity, and when simplicity isn’t offered to us, we make it ourselves. My microwave oven has tons of features, but the only ones I use are cook and the clock. And setting the clock is a struggle. We cope with the complexity of feature-driven design by finding and sticking with the good parts. It would be nice if products and programming languages were designed to have only good parts. (查看原文)
    豆友62548153 2019-04-03 02:19:07
    —— 引自第100页
  • 不像许多其他语言,JavaScript 中的代码块不会创建一个新的作用域,因此变量应该被定义在函数的顶端,而不是在代码块中。 (查看原文)
    大雨晴空 2011-04-05 11:26:11
    —— 引自第10页
  • JavaScript确实有函数作用域。那意味着定义在函数中的参数和变量在函数外部是不可见的,而且在一个函数中的任何位置定义的变量在改函数中的任何地方都可见。 (查看原文)
    大雨晴空 2011-04-05 11:26:11
    —— 引自第10页
  • 块级作用域:代码块中声明的变量在包含此代码块的函数的任何位置都是可见的。 (查看原文)
    大雨晴空 2011-04-05 11:26:11
    —— 引自第10页
  • 如果函数以在前面加上new前缀的方式来调用,且返回值不是一个对象,则返回this(该对象) (查看原文)
    大雨晴空 2011-04-05 11:35:56
    —— 引自第31页
  • 函数调用模式: 1. 方法调用 2. 函数调用 3. 构造器带哦用 4. apply调用 (查看原文)
    老卡 2011-04-22 17:58:10
    —— 引自第28页
  • 在创建JavaScript的时候 JavaScript被创建的时候 (查看原文)
    容貌焦虑主理人 2011-07-13 00:56:50
    —— 引自章节:2.4 字符串
  • When Java applets failed, JavaScript became the language of the Web by default, making its popularity almost completely independent of its qualities as a programming language. (查看原文)
    容貌焦虑主理人 2011-07-14 19:30:49
    —— 引自章节:ii
  • One way to minimize the use of global variables is to create a single global variable for your application: (查看原文)
    hh 2011-07-16 16:17:36
    —— 引自章节:3.9 Global Abatement
  • The function object created by a function literal contains a link to that outer context. This is called closure. This is the source of enormous expressive power. (查看原文)
    hh 2011-07-17 15:15:27
    —— 引自章节:4.2 Function Literal
  • When I was a young journeyman programmer, I would learn about every feature of the languages I was using, and I would attempt to use all of those features when I wrote. ... Most programming languages contain good parts and bad parts. I discover that I could be a better programmer by using only the good parts and avoiding the bad parts. (查看原文)
    momo 2011-08-04 10:12:41
    —— 引自第1页
  • some other language (查看原文)
    容貌焦虑主理人 2011-12-07 01:12:47
    —— 引自第2页
  • 字面量表示法 (查看原文)
    容貌焦虑主理人 2011-12-07 01:45:45
    —— 引自第3页
  • 对象表示法 JS拥有强大的对象表示方法. (查看原文)
    容貌焦虑主理人 2011-12-07 01:45:45
    —— 引自第3页
  • 对象命名表示 (查看原文)
    容貌焦虑主理人 2011-12-07 01:45:45
    —— 引自第3页
  • 字符串名 (查看原文)
    容貌焦虑主理人 2011-12-07 02:24:59
    —— 引自第8页
  • 字符串的名字 (查看原文)
    容貌焦虑主理人 2011-12-07 02:24:59
    —— 引自第8页
  • 前置标签 (查看原文)
    容貌焦虑主理人 2011-12-07 02:31:03
    —— 引自第10页
  • LAX (查看原文)
    容貌焦虑主理人 2011-12-07 03:19:57
    —— 引自第21页
  • AX 全称是 Los Angeles International Airport, LA指的是 Los Angeles, X是后缀,为了补足三个字母的国际机场代码。一般国际机场的代码都是三个字母。例如深圳的代码是SZX。 (查看原文)
    容貌焦虑主理人 2011-12-07 03:19:57
    —— 引自第21页
<前页 1 2 3 4 5 6 7 后页>