Last active
August 29, 2015 14:02
-
-
Save wh1100717/66b54088a992e75a1895 to your computer and use it in GitHub Desktop.
Global var in Coffeescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 如果是 node 环境,则通过 exports 来获取全局域 | |
# 如果是 BOM 环境,则通过 this 来获取全局域 | |
root = exports ? this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment