All Projects → yanhaijing → Lodjs

yanhaijing / Lodjs

Licence: mit
JavaScript模块加载器,基于AMD。迄今为止,对AMD理解最好的实现。

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Lodjs

Angular Async Loader
Load modules and components asynchronously for angular 1.x application.
Stars: ✭ 137 (-53.72%)
Mutual labels:  amd, loader
Esl
enterprise standard loader
Stars: ✭ 821 (+177.36%)
Mutual labels:  amd, loader
typedb-loader
TypeDB Loader - Data Migration Tool for TypeDB
Stars: ✭ 43 (-85.47%)
Mutual labels:  loader
Senparc.co2net
支持 .NET Framework & .NET Core 的公共基础扩展库
Stars: ✭ 289 (-2.36%)
Mutual labels:  dependency-injection
React Image Appear
ReactJS component to make images appear with transition as they load.
Stars: ✭ 264 (-10.81%)
Mutual labels:  loader
Resolver
🎊 A simple resolver in Swift
Stars: ✭ 15 (-94.93%)
Mutual labels:  dependency-injection
Lumie
✨ An opinionated way to keep your express API organized
Stars: ✭ 277 (-6.42%)
Mutual labels:  loader
ngx-smart-loader
Smart loader handler to manage loaders everywhere in Angular apps.
Stars: ✭ 28 (-90.54%)
Mutual labels:  loader
Pure
Pure DI in Swift
Stars: ✭ 292 (-1.35%)
Mutual labels:  dependency-injection
Getx
Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
Stars: ✭ 5,578 (+1784.46%)
Mutual labels:  dependency-injection
Blog.core
💖 ASP.NET Core 6.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档:
Stars: ✭ 3,542 (+1096.62%)
Mutual labels:  dependency-injection
Vue Spinners
💫 A collection of loading spinner components for Vuejs
Stars: ✭ 255 (-13.85%)
Mutual labels:  loader
flutter simple dependency injection
A super simple dependency injection implementation for flutter that behaviours like any normal IOC container and does not rely on mirrors
Stars: ✭ 91 (-69.26%)
Mutual labels:  dependency-injection
Solid
Книга о принципах объектно-ориентированного дизайна SOLID
Stars: ✭ 280 (-5.41%)
Mutual labels:  dependency-injection
gpustats
Statistics on GPUs
Stars: ✭ 21 (-92.91%)
Mutual labels:  amd
Rsup Progress
❤️ A simple progress bar with promises support
Stars: ✭ 290 (-2.03%)
Mutual labels:  loader
Medicine
Code-driven component injection toolkit for Unity.
Stars: ✭ 28 (-90.54%)
Mutual labels:  dependency-injection
netcore-wcf-service-proxy
Example of consuming multiple WCF services using a proxy implementation in a ASP.NET Core Web-application.
Stars: ✭ 42 (-85.81%)
Mutual labels:  dependency-injection
Quicklib
Quick development library (AutoMapper, LinQ, IOC Dependency Injection, MemoryCache, Scheduled tasks, Config, Serializers, etc) with crossplatform support for Delphi/Firemonkey (Windows,Linux,OSX/IOS/Android) and freepascal (Windows/Linux).
Stars: ✭ 274 (-7.43%)
Mutual labels:  dependency-injection
Kiwi
A simple compile-time dependency injection library for Dart and Flutter
Stars: ✭ 292 (-1.35%)
Mutual labels:  dependency-injection

lodJS release license

Chinese README

The JavaScript module loader is based on [AMD] (https://github.com/amdjs/amdjs-api/blob/master/AMD.md). lodJS is the best implemented understanding of [AMD] (https://github.com/amdjs/amdjs-api/blob/master/AMD.md) up to now.

Function Overview

100% supports AMD specifications. Supports modular development. When a module is defined, modules can be used without maintaining a dependent module, just write a dependency, and lodJS will automatically be responsible for the dependency injection.

Characteristics

  • Modular Development Support
  • Asynchronous loading
  • Dependency injection
  • Flexible custom functionality

Compatibility

  • Safari 6+ (Mac)
  • iOS 5+ Safari
  • Chrome 23+ (Windows, Mac, Android, iOS, Linux, Chrome OS)
  • Firefox 4+ (Windows, Mac, Android, Linux, Firefox OS)
  • Internet Explorer 6+ (Windows, Windows Phone)
  • Opera 10+ (Windows, linux, Android)

How to Use?

Traditional Usage

<script src="lodjs.js"></script>

Bower

$ bower install lodjs
$ bower install git://github.com/yanhaijing/lodjs.git

Quick Start

Define Module

We use lodJS's global function define to define a module, for example, in mod.js, we have the following code:

define(function () {
	return 123;
});

Module Usage

The use method in lodJS uses a module. The following code can use the module defined above:

lodjs.use('mod', function (mod) {
	console.log(mod);// Outputs 123
});

For more examples, please see the directory of demo.

Document

API

Contribution Guide

If you want to contribute code for lodJS, please use fork + pull request method, ensuring that before you launch pr, you rebase code on the master branch to your own branch.

Publish Bower

$ bower register lodjs git://github.com/yanhaijing/lodjs.git

Report Issues

Author

yanhaijing

Update Log

Update Log

Related Links

AMD Specifications

AMD Implementation

CMD

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].