2go 中文文档教程
** 2GO AJAX 加载模板(开发版) **
2GO 系统包含通过浏览器通过 ajax 加载文件的基本命令。 它旨在通过 browserify 和 aliasify 使用。
2GO 有两种构建模式:FINAL 和DEBUG / USING。
DEBUG / USING 模式旨在用于开发或部署到可能由具有其他作者的库使用的环境。 此模式包含用于检查某些 API 函数前面的参数类型的断言。
在 DEBUG / USING 模式下编译 2GO: 光盘测试 DEV_MODE=DEBUG browserify test.js -t 别名 > [您的站点测试目录]
FINAL 模式用于开发和测试结束时at the deployment 旨在作为一个黑匣子,预计不会有第三方使用作者。 为了尽可能高效,此模式没有参数断言。
在 FINAL 模式下编译 2GO: 光盘测试 DEV_MODE=FINAL browserify test.js -t 别名 > [您的站点测试目录]
可以在 http://mathdotrandom.com/2GO/tests 找到测试。
** 2GO AJAX LOADING TEMPLATE ( development version ) **
2GO system contains basic commands for loading files via ajax through browsers. it is intended for use via browserify and aliasify.
2GO has two build modes: FINAL and DEBUG / USING.
The DEBUG / USING mode is intended for development or for deployment to environments where this might be used by a library with additional authors. This mode contains assertions to check parameter types in front of certain API functions.
To compile 2GO in DEBUG / USING mode: cd test DEV_MODE=DEBUG browserify test.js -t aliasify > [your site testing directory]
The FINAL mode is intended when development and testing is finished at the deployment is intended as a black box with no third party using authors expected. This mode has no parameter assertions in order to be as efficient as possible.
To compile 2GO in FINAL mode: cd test DEV_MODE=FINAL browserify test.js -t aliasify > [your site testing directory]
Tests can be found at http://mathdotrandom.com/2GO/tests.