# GoJS **Repository Path**: tmamd/GoJS ## Basic Information - **Project Name**: GoJS - **Description**: 一个基于 CMD 规范的 JavaScript 模块加载器。 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: http://lanfei.github.io/GoJS/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2020-09-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #GoJS GoJS is a JavaScript module loader for web, which can organize your codes and modules in a elegant way. It solves the problem of module dependencies and naming conflicts, but also solves the difficulty in merging compaction beside the other similar frameworks, so you can make your coding more enjoyable. ##Usage ###1st Step, Initialize GoJS ```html ``` You can also [configure it](http://lanfei.github.io/GoJS/docs/index.html#config) before the initialization: ```html ``` ###2nd Step, Write Modules Following [CMD Standard](https://github.com/cmdjs/specification/blob/master/draft/module.md) ```js // main.js define(function(require, exports, module){ var foo = require('foo'); foo.bar(); }); ``` ```js // foo.js define(function(require, exports, module){ exports.bar = function(){ // your codes } }); ``` ###3st Step, Enjoy! ##Compatibility GoJS compatible with all major browsers: ``` Chrome 3+ Firefox 2+ Safari 3.2+ Opera 9+ IE 5.5+ ``` In theory, GoJS can be run in any browser. ##License GoJS is available under the terms of the [MIT License](https://github.com/Lanfei/GoJS/blob/master/LICENSE), it is free for anyone to use. ##What's More >Finally, a tribute to RequireJS and Sea.js, but also to pay tribute to all the people who work dedicated to open source. —— Lanfei on November 5, 2014