Skip to content

Instantly share code, notes, and snippets.

@hjzheng
Last active March 14, 2016 02:44
Show Gist options
  • Save hjzheng/30b4a235dc082bfe6b1e to your computer and use it in GitHub Desktop.
Save hjzheng/30b4a235dc082bfe6b1e to your computer and use it in GitHub Desktop.

心态

  • 巩固基础
  • 空杯和对技术点敬畏的心态
  • 洗白自己

查录补缺

重读犀牛书

  • 可选分号 (保持良好的编码习惯,加分号)

return,break,continue和随后的表达式之间不能有换行

return
true;

解析为

return;true;

在涉及 “++” 和 “--” 运算符的时候, “++” 和 “--” 会作为下一行代码的前缀。

x
++
y

解析为

x;++y
    var d = new Date();
    d.getDay()  //返回值0 表示星期天
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment