安装
Day.js 被设计为可以在浏览器和 Node.js 中运行。
¥Day.js was designed to work both in the browser and in Node.js.
所有代码都应该在这两种环境中工作,并且所有单元测试都在这两种环境中运行。
¥All code should work in both of these environments, and all unit tests are run in both of these environments.
目前 ci 系统使用以下浏览器:Windows XP 上的 Chrome,Windows 7 上的 IE 8、9 和 10,Windows 10 上的 IE 11,Linux 上的最新 Firefox,以及 OSX 10.8 和 10.11 上的最新 Safari。
¥Currently the following browsers are used for the ci system: Chrome on Windows XP, IE 8, 9, and 10 on Windows 7, IE 11 on Windows 10, latest Firefox on Linux, and latest Safari on OSX 10.8 and 10.11.
如果你想尝试示例代码,只需打开浏览器的控制台并输入它们。
¥If you want to try the sample codes, just open your browser's console and enter them.