IIssNan's Notes

Quick notes


  • 首页

  • 归档

  • 标签

  • 搜索

Anonymous function in JavaScript

发表于 2011-09-16 | | 阅读次数

常见的写法:

1
2
3
(function(){
// do something magic...
})();

JSLint 建议的写法:

1
2
3
(function(){
// do something magic...
}());

JavaScript style guidelines

发表于 2011-09-15 | | 阅读次数

两份JavaScript代码风格指南:

  • jQuery Core Style Guidlines
  • Google JavaScript Style Guide

就算是MacOSX,也是要瞎搞一番才会顺手的

发表于 2011-09-14 | | 阅读次数

工具列表 (按照安装顺序):

  • Git-osx-install
  • Homebrew - Mac OSX 的包管理

    1
    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
  • XCode

  • 命令工具 wget

    1
    brew install wget

    有时遇到默认的下载链接速度十分坑爹,就 brew edit wget 修改下链接再装

  • Oh-my-zsh。执行脚本:

    1
    wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

Inspect :hover Style of Element in Chrome Developer Tool

发表于 2011-09-14 | | 阅读次数

Quora上Question,这么做:

Right click the element while hovering over it, then (without moving your cursor) use the keyboard to navigate the context-menu and select “Inspect element”. Hit enter, and you’ll see the hover styles.

Stack Overflow上Question,这个Bug已fixed,更新到dev channel版本的Google Chrome里面可以看到。

Mac OSX 的剪切快捷键

发表于 2011-09-13 | | 阅读次数

复制: Command + c

剪切到: Option + Command + v

1…34353637
IIssNan

IIssNan

胡编一通,乱写一气

183 日志
6 分类
111 标签
RSS
GitHub Twitter 豆瓣 知乎
© 2011 - 2017 IIssNan
由 Hexo 强力驱动
主题 - NexT.Pisces
0%