Giter VIP home page Giter VIP logo

ai's Introduction

A AMD Module Loader with a Builder by java & air

已加入Seajs开发,建议使用Seajs。这里不再更新。
https://github.com/seajs/seajs

API

$$.join(key:String, url:String = null, force:Boolean = false):String 设置/读取加载url的路由映射。不传参时为返回整个映射库,只传key为返回其对应的映射关系;force指定是否强制覆盖原映射关系,不存在原时无需强制

$$.load(url:String, callback:Function = null, charset:String = null):void 加载url的script文件,成功/失败后回调callback,并且可指定文件的编码charset

$$.base(url:String = null):String 设置/读取加载根路径,默认为当前页面的url

$$.path(url:String, depend:String = null):String 根据depend获取url相对于其的绝对路径值,省略depend为相对$$.base()的值

define(id:String = null, dependencies:Array = null, factory:Function/Object):void CommonJS/AMD标准定义模块接口

require(mod:String):Object CommonJS/AMD标准获取模块接口

require(mod:String/Array, callback:Function, charset:String = null):void CommonJS/AMD标准使用模块接口,增加了第3个charset参数可选编码

require():HashMap 获取全部模块信息,扩展接口

require.async(mod:String):Object 仅对构建工具可见可见,不自动打包进来模块

require.sync(mods:String/Array, cb:Function):void 同步使用模块,当mods有重合时,使用的回调cb必须等到上一个cb同步执行完成后

define.url(url:String):void 设定下一个模块的uri,扩展接口

FeBuilder

need jre1.6+

java -jar FeBuilder.jar

jsroot= js域名根目录

cssroot= css域名根目录

in= 构建或压缩的文件路径

compress= true为构建后压缩

onlycompress= true为仅压缩

charset= 文件编码默认utf-8

ignore= 构建忽略的全局模块id

GUIBuilder

need Adobe air2+

a GUI tool base on FeBuilder

License

[MIT License]

ai's People

Contributors

army8735 avatar qbaty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ai's Issues

优化swf模块

优化js和as通信方法,这些是flash初始化后内置的,有些性能过于惨目。

重写事件驱动模块

借助jq自身的bind和trigger,重现action模块。接口与jq保持一致。

提供全局的一个事件驱动和自定义驱动。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.