SlideShare une entreprise Scribd logo
1  sur  41
Télécharger pour lire hors ligne
YUI 2                 YUI 3


         http://hikejun.com
         twitter: @kejunz



: http://hikejun.com/sharing/yui_evolve.zip
-
http://hikejun.com
Twitter: @kejunz
1996/3 - Javascript 1.0
2000/11 - Javascript 1.5
2005   2009
2003   2009
2005
Javascript
Usability Economy Design
                         Standardization Remixability Convergence
                          Participation Widgets Collaboration Sharing Pagerank User Centered
                           Perpetual Beta Trust FOAF Six Degrees XFN Aggregators VC Pay Per Click Ruby on

                             Rails Syndication SOAP REST SEO IM XHTML Accessibility Semanti XML UMTS




                          Videocasting Podcasting SVG Atom   Web 2.0                           Modularity

                                  Wikis Simplicity Joy of Use AJAX The Long
                        Browser OpenID

                         Tail Affiliation CSS Web Standards Microformats
                       DataDriven OpenAPIs RSS Mobility Video Audio Blogs
                          Social Software Recommendation Folksonomy


http://en.wikipedia.org/wiki/File:Web_2.0_Map.svg
“ ”
• 2005 Prototyp Dojo UIZE
                    • 2006 jQuery YUI MooTools
                    • 2007 Ext
                    • 2008 QooXDoo Archetype

http://www.tripwiremagazine.com/tools/developer-toolbox/top-10-javascript-frameworks-by-google.html
•            (DOM, Event)

•                  (            ... )

• Ajax
• RIA   Widget (      , Treeview ... )

• Javascript    (OOP   Array.indexOf ...)
2006/2/13 YUI beta(0.10.0)
dom, event, animation, dragdrop, connection


calendar, slider, treeview
2007/2
dom, event, animation, dragdrop, connection,
browser history manager, datasource, element

calendar, slider, treeview, autocomplete, button,
container, datatable, logger, menu, tabview
2008/2
dom, event, animation, dragdrop, connection,
browser history manager, datasource,
element, selector, get, json, resize, image cropper,
image loader, cookie,YUITest,YUILoader, profiler,
profilerViewer

calendar, slider, treeview, autocomplete, button,
container, datatable, logger, menu, tabview, color
picker, charts, RTE, layout manager, uploader
2009/9/14 YUI 2.8.0
dom, event, animation, dragdrop, connection,
browser history manager, datasource,
element, selector, get, json, resize, image cropper,
image loader, cookie,YUITest,YUILoader, profiler,
profilerViewer, stylesheet, storge, swfstorge,
swf
calendar, slider, treeview, autocomplete, button,
container, datatable, logger, menu, tabview, color
picker, charts, RTE, layout manager,
uploader, paginator, progressbar, carousel
http://www.flickr.com/photos/bre/552152780/
Utilities:             Widgets:               Tools:                     jQuery Plugins
dom, event,                                   YUITest,
                       calendar, slider,
animation, dragdrop,                          profiler,
                       treeview,
connection, browser                           profilerViewer,
history manager,
                       autocomplete,
                                              logger                        jQuery UI
                       button, container,
datasource,
                       datatable, menu,
element, selector,
get, json, resize,
image cropper, image
                       tabview, color
                       picker, charts, RTE,                         jQuery 1.3.2 (56K)
                       layout manager,
loader,
cookie, stylesheet,
                       uploader, paginato
                       r, progressbar,
                                                                      Animation (Effects)
storge, swfstorge,
                       carousel
 swf                                                           Event (DOM Event,           ,          ...)

             YUI 2.8.0 (29K)                                     DOM (selector, attributes,
                       YUI Loader                              traversing, Manipulation, css ...)
       lang (object, date, arry, string, UA ...)               lang (object, date, array, string, UA ...)
“ ”
“ ”




      (Core)
“ ”




      (Core)
“ ”




      (Core)
“ ”
(   )   (   )   ...      (   )




                (Core)
http://www.flickr.com/photos/hansandcarolyn/3102798232/
•
•
• JS/CSS   Inline
•
“ ” “       ”
“ ”     “   ”
“       ”




“   ”
Framework: A framework is a basic
         conceptual structure used to solve
         or address complex issues.
                                   WikiPedia

         (                                                                    ,
                                                          .)



http://plog.longwin.com.tw/document-ebook/2009/12/04/what-is-framework-2009
YUI - YUI 3

•   2008/8/13 - YUI 3 PR 1 

•   2008/12/9 - YUI 3 PR 2

•   2009/6/24 - YUI 3 Beta 1

•   2009/9/29 - YUI 3 GA
io-base
                          io-xdr
                          io-form
                          io-upload-iframe               dd-ddm-base
 io                       io-queue                       dd-ddm
                                                         dd-ddm-drop
                                                         dd-drag
                                                         dd-drop
                                                         dd-proxy
                                                         dd-constrain
                                                         dd-scroll
dd                                                       dd-plugin
                                                         dd-drop-plugin

                       anim-base
                       anim-color
                       anim-easing
                       anim-scroll
anim                   anim-xy
                       anim-curve
                       anim-node-plugin




       !"   #"   $!"      $#"         %!"    %#"   &!"          &#"
Plugin
Y.all('.fadein img').plug(Y.Plugin.NodeFX);
Y.all('.fadein img').item(0).fx.set('to', {opacity: 0}).run();


Y.one('.fadein').plug(Y.Plugin.Drag);
Extensions
Y.Overlay = Y.Base.build(
    "overlay",
    Y.Widget,
    [Y.WidgetPosition, Y.WidgetStack,
    Y.WidgetPositionExt, Y.WidgetStdMod]
);
http://yuilibrary.com/yuiconf2009/




http://www.flickr.com/photos/equanimity/4055275059/
“          ” “ ”

•
•   YUI3
•
•    YUI3
http://www.flickr.com/photos/lightning72/3973881470/
Demo:   YUI3
YUI 3

• Base
• Widget
• Plugin
Demo:
Design
    +

Development
     ||

    D2
Q&A
:-)

Contenu connexe

Tendances

Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
Jeado Ko
 
建立前端開發團隊 - 2011 中華電信訓練所版
建立前端開發團隊 - 2011 中華電信訓練所版建立前端開發團隊 - 2011 中華電信訓練所版
建立前端開發團隊 - 2011 中華電信訓練所版
Joseph Chiang
 

Tendances (20)

JavaScript Libraries (@Media)
JavaScript Libraries (@Media)JavaScript Libraries (@Media)
JavaScript Libraries (@Media)
 
An in-depth look at jQuery
An in-depth look at jQueryAn in-depth look at jQuery
An in-depth look at jQuery
 
Jquery ui
Jquery uiJquery ui
Jquery ui
 
Enjoy the vue.js
Enjoy the vue.jsEnjoy the vue.js
Enjoy the vue.js
 
JQuery UI
JQuery UIJQuery UI
JQuery UI
 
Arquitetura de Front-end em Aplicações de Larga Escala
Arquitetura de Front-end em Aplicações de Larga EscalaArquitetura de Front-end em Aplicações de Larga Escala
Arquitetura de Front-end em Aplicações de Larga Escala
 
Bootstrap과 UI-Bootstrap
Bootstrap과 UI-BootstrapBootstrap과 UI-Bootstrap
Bootstrap과 UI-Bootstrap
 
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
Angular를 활용한 웹 프론트단 개발과 2.0에서 달라진점
 
Expressを使ってみた
Expressを使ってみたExpressを使ってみた
Expressを使ってみた
 
以Vue開發電子商務網站
架構與眉角
以Vue開發電子商務網站
架構與眉角以Vue開發電子商務網站
架構與眉角
以Vue開發電子商務網站
架構與眉角
 
An Introduction to Vuejs
An Introduction to VuejsAn Introduction to Vuejs
An Introduction to Vuejs
 
分享無名小站 API
分享無名小站 API分享無名小站 API
分享無名小站 API
 
Utility libraries to make your life easier
Utility libraries to make your life easierUtility libraries to make your life easier
Utility libraries to make your life easier
 
建立前端開發團隊 - 2011 中華電信訓練所版
建立前端開發團隊 - 2011 中華電信訓練所版建立前端開發團隊 - 2011 中華電信訓練所版
建立前端開發團隊 - 2011 中華電信訓練所版
 
Making your Angular.js Application accessible
Making your Angular.js Application accessibleMaking your Angular.js Application accessible
Making your Angular.js Application accessible
 
Vue business first
Vue business firstVue business first
Vue business first
 
Scalable Front-end Development with Vue.JS
Scalable Front-end Development with Vue.JSScalable Front-end Development with Vue.JS
Scalable Front-end Development with Vue.JS
 
第一次用 Vue.js 就愛上 [改]
第一次用 Vue.js 就愛上 [改]第一次用 Vue.js 就愛上 [改]
第一次用 Vue.js 就愛上 [改]
 
Drush - use full power - DrupalCamp Donetsk 2014
Drush - use full power - DrupalCamp Donetsk 2014Drush - use full power - DrupalCamp Donetsk 2014
Drush - use full power - DrupalCamp Donetsk 2014
 
Hack with YUI
Hack with YUIHack with YUI
Hack with YUI
 

Similaire à 从YUI2到YUI3看前端的演变

Devon 2011-f-1 반응형 웹 디자인
Devon 2011-f-1  반응형 웹 디자인Devon 2011-f-1  반응형 웹 디자인
Devon 2011-f-1 반응형 웹 디자인
Daum DNA
 
JavaScript Libraries: The Big Picture
JavaScript Libraries: The Big PictureJavaScript Libraries: The Big Picture
JavaScript Libraries: The Big Picture
Simon Willison
 
Web app and more
Web app and moreWeb app and more
Web app and more
faming su
 
jQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPagesjQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPages
Mark Roden
 
Yui- Yahoo! User Interface Library
Yui- Yahoo! User Interface LibraryYui- Yahoo! User Interface Library
Yui- Yahoo! User Interface Library
Momentum Design Lab
 
Server Side JavaScript - You ain't seen nothing yet
Server Side JavaScript - You ain't seen nothing yetServer Side JavaScript - You ain't seen nothing yet
Server Side JavaScript - You ain't seen nothing yet
Tom Croucher
 
jQuery presentation
jQuery presentationjQuery presentation
jQuery presentation
Mahesh Reddy
 
Cloud Computing in Mobile
Cloud Computing in MobileCloud Computing in Mobile
Cloud Computing in Mobile
SVWB
 

Similaire à 从YUI2到YUI3看前端的演变 (20)

Devon 2011-f-1 반응형 웹 디자인
Devon 2011-f-1  반응형 웹 디자인Devon 2011-f-1  반응형 웹 디자인
Devon 2011-f-1 반응형 웹 디자인
 
JavaScript Libraries: The Big Picture
JavaScript Libraries: The Big PictureJavaScript Libraries: The Big Picture
JavaScript Libraries: The Big Picture
 
From YUI3 to K2
From YUI3 to K2From YUI3 to K2
From YUI3 to K2
 
Html5 on Mobile(For Developer)
Html5 on Mobile(For Developer)Html5 on Mobile(For Developer)
Html5 on Mobile(For Developer)
 
Web Apps and more
Web Apps and moreWeb Apps and more
Web Apps and more
 
Web app and more
Web app and moreWeb app and more
Web app and more
 
How dojo works
How dojo worksHow dojo works
How dojo works
 
The YUI Library (Yahoo! Course @NCU)
The YUI Library (Yahoo! Course @NCU)The YUI Library (Yahoo! Course @NCU)
The YUI Library (Yahoo! Course @NCU)
 
Building Dojo in the Cloud
Building Dojo in the CloudBuilding Dojo in the Cloud
Building Dojo in the Cloud
 
How to make Ajax Libraries work for you
How to make Ajax Libraries work for youHow to make Ajax Libraries work for you
How to make Ajax Libraries work for you
 
jQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPagesjQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPages
 
Yui- Yahoo! User Interface Library
Yui- Yahoo! User Interface LibraryYui- Yahoo! User Interface Library
Yui- Yahoo! User Interface Library
 
Starting with jQuery
Starting with jQueryStarting with jQuery
Starting with jQuery
 
Mobile Web Development with HTML5
Mobile Web Development with HTML5Mobile Web Development with HTML5
Mobile Web Development with HTML5
 
Google's HTML5 Work: what's next?
Google's HTML5 Work: what's next?Google's HTML5 Work: what's next?
Google's HTML5 Work: what's next?
 
Server Side JavaScript - You ain't seen nothing yet
Server Side JavaScript - You ain't seen nothing yetServer Side JavaScript - You ain't seen nothing yet
Server Side JavaScript - You ain't seen nothing yet
 
jQuery presentation
jQuery presentationjQuery presentation
jQuery presentation
 
Java GUI Toolkits - Swing vs. SWT vs. Jambi
Java GUI Toolkits - Swing vs. SWT vs. JambiJava GUI Toolkits - Swing vs. SWT vs. Jambi
Java GUI Toolkits - Swing vs. SWT vs. Jambi
 
HTML5 - A Whirlwind tour
HTML5 - A Whirlwind tourHTML5 - A Whirlwind tour
HTML5 - A Whirlwind tour
 
Cloud Computing in Mobile
Cloud Computing in MobileCloud Computing in Mobile
Cloud Computing in Mobile
 

Plus de Kejun Zhang

Plus de Kejun Zhang (9)

一拍一产品背后的故事(React实战)
一拍一产品背后的故事(React实战)一拍一产品背后的故事(React实战)
一拍一产品背后的故事(React实战)
 
面向未来的重构
面向未来的重构面向未来的重构
面向未来的重构
 
更好的文件组织
更好的文件组织更好的文件组织
更好的文件组织
 
永不止步的“重构”
永不止步的“重构”永不止步的“重构”
永不止步的“重构”
 
前端基础架构的实践和思考
前端基础架构的实践和思考前端基础架构的实践和思考
前端基础架构的实践和思考
 
前端开发理论热点面对面:从怎么看,到怎么做?
前端开发理论热点面对面:从怎么看,到怎么做?前端开发理论热点面对面:从怎么看,到怎么做?
前端开发理论热点面对面:从怎么看,到怎么做?
 
响应性设计和开发
响应性设计和开发响应性设计和开发
响应性设计和开发
 
F2e @ douban
F2e @ doubanF2e @ douban
F2e @ douban
 
LSM实践
LSM实践LSM实践
LSM实践
 

从YUI2到YUI3看前端的演变

  • 1. YUI 2 YUI 3 http://hikejun.com twitter: @kejunz : http://hikejun.com/sharing/yui_evolve.zip
  • 3. 1996/3 - Javascript 1.0 2000/11 - Javascript 1.5
  • 4. 2005 2009
  • 5. 2003 2009
  • 7. Usability Economy Design Standardization Remixability Convergence Participation Widgets Collaboration Sharing Pagerank User Centered Perpetual Beta Trust FOAF Six Degrees XFN Aggregators VC Pay Per Click Ruby on Rails Syndication SOAP REST SEO IM XHTML Accessibility Semanti XML UMTS Videocasting Podcasting SVG Atom Web 2.0 Modularity Wikis Simplicity Joy of Use AJAX The Long Browser OpenID Tail Affiliation CSS Web Standards Microformats DataDriven OpenAPIs RSS Mobility Video Audio Blogs Social Software Recommendation Folksonomy http://en.wikipedia.org/wiki/File:Web_2.0_Map.svg
  • 9. • 2005 Prototyp Dojo UIZE • 2006 jQuery YUI MooTools • 2007 Ext • 2008 QooXDoo Archetype http://www.tripwiremagazine.com/tools/developer-toolbox/top-10-javascript-frameworks-by-google.html
  • 10. (DOM, Event) • ( ... ) • Ajax • RIA Widget ( , Treeview ... ) • Javascript (OOP Array.indexOf ...)
  • 11. 2006/2/13 YUI beta(0.10.0) dom, event, animation, dragdrop, connection calendar, slider, treeview
  • 12. 2007/2 dom, event, animation, dragdrop, connection, browser history manager, datasource, element calendar, slider, treeview, autocomplete, button, container, datatable, logger, menu, tabview
  • 13. 2008/2 dom, event, animation, dragdrop, connection, browser history manager, datasource, element, selector, get, json, resize, image cropper, image loader, cookie,YUITest,YUILoader, profiler, profilerViewer calendar, slider, treeview, autocomplete, button, container, datatable, logger, menu, tabview, color picker, charts, RTE, layout manager, uploader
  • 14. 2009/9/14 YUI 2.8.0 dom, event, animation, dragdrop, connection, browser history manager, datasource, element, selector, get, json, resize, image cropper, image loader, cookie,YUITest,YUILoader, profiler, profilerViewer, stylesheet, storge, swfstorge, swf calendar, slider, treeview, autocomplete, button, container, datatable, logger, menu, tabview, color picker, charts, RTE, layout manager, uploader, paginator, progressbar, carousel
  • 16. Utilities: Widgets: Tools: jQuery Plugins dom, event, YUITest, calendar, slider, animation, dragdrop, profiler, treeview, connection, browser profilerViewer, history manager, autocomplete, logger jQuery UI button, container, datasource, datatable, menu, element, selector, get, json, resize, image cropper, image tabview, color picker, charts, RTE, jQuery 1.3.2 (56K) layout manager, loader, cookie, stylesheet, uploader, paginato r, progressbar, Animation (Effects) storge, swfstorge, carousel swf Event (DOM Event, , ...) YUI 2.8.0 (29K) DOM (selector, attributes, YUI Loader traversing, Manipulation, css ...) lang (object, date, arry, string, UA ...) lang (object, date, array, string, UA ...)
  • 18. “ ” (Core)
  • 19. “ ” (Core)
  • 20. “ ” (Core)
  • 21. “ ” ( ) ( ) ... ( ) (Core)
  • 22.
  • 24. • • • JS/CSS Inline •
  • 25. “ ” “ ” “ ” “ ”
  • 26. ” “ ”
  • 27. Framework: A framework is a basic conceptual structure used to solve or address complex issues. WikiPedia ( , .) http://plog.longwin.com.tw/document-ebook/2009/12/04/what-is-framework-2009
  • 28. YUI - YUI 3 • 2008/8/13 - YUI 3 PR 1  • 2008/12/9 - YUI 3 PR 2 • 2009/6/24 - YUI 3 Beta 1 • 2009/9/29 - YUI 3 GA
  • 29. io-base io-xdr io-form io-upload-iframe dd-ddm-base io io-queue dd-ddm dd-ddm-drop dd-drag dd-drop dd-proxy dd-constrain dd-scroll dd dd-plugin dd-drop-plugin anim-base anim-color anim-easing anim-scroll anim anim-xy anim-curve anim-node-plugin !" #" $!" $#" %!" %#" &!" &#"
  • 30. Plugin Y.all('.fadein img').plug(Y.Plugin.NodeFX); Y.all('.fadein img').item(0).fx.set('to', {opacity: 0}).run(); Y.one('.fadein').plug(Y.Plugin.Drag);
  • 31. Extensions Y.Overlay = Y.Base.build( "overlay", Y.Widget, [Y.WidgetPosition, Y.WidgetStack, Y.WidgetPositionExt, Y.WidgetStdMod] );
  • 33. ” “ ” • • YUI3 • • YUI3
  • 35. Demo: YUI3
  • 36. YUI 3 • Base • Widget • Plugin
  • 37. Demo:
  • 38. Design + Development || D2
  • 39.
  • 40. Q&A
  • 41. :-)