摘要: 异步模块定义(Asynchronous Module Definition,简称 AMD)API 描述了一种定义模块的机制,模块及其依赖模块可以通过这种机制进行加载。该机制特别适用于浏览器。 本规范曾被称为 Modules Transport/C,但本规范主要不是用来传输已有的 CommonJS ... 阅读全文
posted @ 2015-07-15 17:37 iFantasticMe 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 本规范致力于描述一类可以同时适用于客户端和服务器端的模块系统。该系统中的模块拥有自己的作用域,可以从其他模块导入单例对象,或者对外提供 API。 Require ======= require 是一个函数对象。 1. require 函数接受一个称为模块标识符的参数。 2. require 函... 阅读全文
posted @ 2015-07-15 15:02 iFantasticMe 阅读(722) 评论(0) 推荐(0) 编辑
摘要: 命令与别名 ======= attach session [ dr] [ t target session] 别名 ,连接会话。 detach client [ P] [ a] [ s target session] [ t target client] 别名 ,脱离会话。 has session 阅读全文
posted @ 2015-07-15 10:15 iFantasticMe 阅读(2252) 评论(0) 推荐(0) 编辑