狠狠撸

狠狠撸Share a Scribd company logo
SeaJS -   仅仅   载
1.   问题
问题   码   长   维护
问题
问题   对   赖   验
问题   YUI3
问题   Apple   这
问题   让 JavaScript   块   环   执
2. CommonJS
JavaScript            实现
             标   规   实现
规
ECMAScript,
W3C JSON...

      规
Modules, Packages,
JSGI, Promises...
马             业

CommonJS: 构   JavaScript   态
Intro-to-SeaJS
CommonJS Modules/1.1.1 Sample Code
Intro-to-SeaJS
CommonJS   浏览   时

     变



浏览




??
执


Wes Garland: Modules/2.0 - BravoJS
James Burke: Modules/AMD - RequireJS
Kevin H. Smith: Modules/Wrappings - FlyScript
...
还处   蓝   +   齐   阶
or
3. SeaJS   尝试
3.1 SeaJS   设计
Mustache   启   : KISS   则
via
W3C   启   :规
规   处




        via
DRY - Don’t Repeat Yourself

              SRP - Single Responsibility Principal

 CoC - Convention over Con?guration

                  SoC...

         http://www.iteye.com/news/20930
SeaJS   设计

    简单

    规



职责单

约
3.2 SeaJS
SeaJS   简单   载
SeaJS
块     载

     CommonJS
Modules/Wrappings 规
  de?ne

简单         http://
seajs.com/docs/guide/
hello-seajs.html
Module Authoring Format




http://seajs.com/docs/api/module-authoring-format.html
Bootstrap




   http://seajs.com/docs/api/seajs-bootstrap.html
http://seajs.com/docs/
SeaJS   块   选
SeaJS   块   选
SeaJS       块   选



        纳
via
SeaJS 还               实


现            还



                     问题
    google       页
时
module loader
+
recommended modules
+
best practices
=
SeaJS
3.3 SeaJS 实战
头   问题
头           问题


问题       块    发习惯

问题       动

问题   约            +   动

问题           变    彻       块

问题           义+   纳
Bonus: JSONM




 约      办

404 时
4. NO-LIBRARY
    LIBRARY
Intro-to-SeaJS
FAQ

    http://lifesinger.org/
     http://seajs.com/
http://twitter.com/lifesinger

More Related Content

What's hot (19)

PPTX
厂础厂厂入门实作
Kingsley Zheng
?
PDF
超。光速 網站最佳化實戰 -twMVC#8
twMVC
?
PDF
kissy 1.5 progress
yiming he
?
PDF
Web App 调试基础 (1)
Xiaoping Feng
?
PPTX
快速入坑 Node.js - 0613 SITCON 雲林定期聚
Lorex L. Yang
?
PPTX
Asp.net on windows azure cloud service (updated)
Jeff Chu
?
PPTX
使用办蝉濒颈迟别支持第叁方内容开发
leneli
?
PDF
使用叠颈驳辫颈辫别提升浏览速度
kumawu
?
PDF
Gulp.js 自動化前端任務流程
洧杰 廖
?
PPT
部落格行銷
jehuen
?
PDF
Node.js 入門 - 前端工程開發實務訓練
Joseph Chiang
?
PPTX
厂迟测濒别基础优化之独角兽篇
fangdeng
?
PDF
Koubei banquet 34
Koubei UED
?
PDF
础濒颈肠别库构建
Sofish Lin
?
PPTX
Yui rocks
Adam Lu
?
PDF
编辑器设计Kissy editor
taobao.com
?
PDF
Ch04 會話管理
Justin Lin
?
PDF
支付宝颁厂厂构架
Sofish Lin
?
PPTX
浅析浏览器解析和渲染
Ailsa126
?
厂础厂厂入门实作
Kingsley Zheng
?
超。光速 網站最佳化實戰 -twMVC#8
twMVC
?
kissy 1.5 progress
yiming he
?
Web App 调试基础 (1)
Xiaoping Feng
?
快速入坑 Node.js - 0613 SITCON 雲林定期聚
Lorex L. Yang
?
Asp.net on windows azure cloud service (updated)
Jeff Chu
?
使用办蝉濒颈迟别支持第叁方内容开发
leneli
?
使用叠颈驳辫颈辫别提升浏览速度
kumawu
?
Gulp.js 自動化前端任務流程
洧杰 廖
?
部落格行銷
jehuen
?
Node.js 入門 - 前端工程開發實務訓練
Joseph Chiang
?
厂迟测濒别基础优化之独角兽篇
fangdeng
?
Koubei banquet 34
Koubei UED
?
础濒颈肠别库构建
Sofish Lin
?
Yui rocks
Adam Lu
?
编辑器设计Kissy editor
taobao.com
?
Ch04 會話管理
Justin Lin
?
支付宝颁厂厂构架
Sofish Lin
?
浅析浏览器解析和渲染
Ailsa126
?

More from lifesinger (8)

PDF
SeaJS 那些事儿
lifesinger
?
PDF
SeaJS - 前端模块化开发探索与网站性能优化实践
lifesinger
?
PDF
开放式类库的构建
lifesinger
?
PDF
让开发也懂前端
lifesinger
?
PDF
SeaJS - 跨环境模块化开发实践
lifesinger
?
PDF
Progressive Enhancement
lifesinger
?
PPTX
The Beauty Of Refactoring
lifesinger
?
PDF
Closure Compiler vs YUICompressor
lifesinger
?
SeaJS 那些事儿
lifesinger
?
SeaJS - 前端模块化开发探索与网站性能优化实践
lifesinger
?
开放式类库的构建
lifesinger
?
让开发也懂前端
lifesinger
?
SeaJS - 跨环境模块化开发实践
lifesinger
?
Progressive Enhancement
lifesinger
?
The Beauty Of Refactoring
lifesinger
?
Closure Compiler vs YUICompressor
lifesinger
?
Ad

Intro-to-SeaJS

Editor's Notes