官方博客:jQuery UI v1.5 Released, Focus on Consistent API and Effects
http://jquery.com/blog/2008/06/09/jquery-ui-v15-released-focus-on-consistent-api-and-effects/
粗粗的翻了几个UI的代码,第一感觉是变了,变得不认识了,整个UI的写法变得很不熟悉了,完全的重构了。
不得不佩服这帮哥们重构的决心和毅力。
When we first started with the UI project, we set out to build a generic, basic, and simple way of adding and extending core interaction to DOM elements. However, we soon found that our approach wasn’t working for UI. Using the “simple” approach, we were only able to serve simple interaction modules, but not full featured UI widgets. The second problem was that some plugins came from external sources making the UI suite seem disjointed and inconsistent. |
一些变化:
1 统一UI的构建方法($.widget),每一个UI提供统一的初始化调用方法init(),下面的这种方式现在已经整合到$.widget方法中,
不再像1.5(b4)中的每一个UI中都有一段处理的代码。
- $(”div”).draggable() creates a draggable
- $(”div”).draggable(”destroy”) destroys it
- $(”div”).draggable(”method”) calls another method on the plugin
2 貌似要稳定了
Stability, Debugging, Testing and jquery.simulate
It was extremely important that jQuery UI v1.5 was not only feature-rich but also stable. We took several steps to greatly improve our debugging and testing including the setup of our own dedicated bugtracker with jQuery UI specific version and milestone targeting. We also invested a lot of time into new unit tests that make use of the jQuery test suite Qunit. Finally, we created jquery.simulate.js, a plugin specifically designed to fire true browser events. This means, you can actually tell the plugin to pick up your draggable, move it to a certain position and release it again, just if you’d be talking to a real testing person. |
3 这个好像有点意思
Roll Your Own Themes: ThemeRoller!
ThemeRoller offers a unique approach to theming UI components specifically built for jQuery UI. With ThemeRoller, you can create your very own theme for your project within minutes. It’s completely intuitive, comes wich rich controls to change the color and design of each state, and then previews your theme with the actual UI components as you work! |
jquery UI 在代码重构的彻底上可以看出他的决心,放出少许期待之心.呵呵,先好好看看这次的代码去.
分享到:
- 2008-06-18 10:34
- 浏览 1036
- 评论(4)
- 论坛回复 / 浏览 (4 / 3577)
- 查看更多
相关推荐
jqueryapi jquery1.5api jquery1.5jqueryapi jquery1.5api jquery1.5
jquery.ui-1.5b 很多jquery的插件
jquery.ui-1.5
jQuery LigerUI V1.3.2 最新代码
jQuery EasyUI 1.5API 中文版文档 最新版jQuery easy ui
jQueryUI V1.12.1 内附jQuery V1.12.4
jquery ui库jquery ui库jquery ui库jquery ui库jquery ui库jquery ui库jquery ui库jquery ui库jquery ui库jquery ui库jquery ui库jquery ui库jquery ui库jquery ui库
jQuery UI 是以 jQuery 为基础的开源 JavaScript 网页用户界面代码库。包含底层用户交互、动画、特效和可更换主题的可视控件。我们可以直接用它来构建具有很好交互性的web应用程序。 编辑本段组件构成 jQuery UI ...
jquery.ui-1.5b2.zip压缩包 能让你更好的使用php
jquery-easyui1.5 源码 form 表单 grid tree gridTree
jQuery UI表格内容拖拽代码基于jQuery1.11.3.min.js制作,鼠标自由拖拽单元格内容。
资源名称:jQuery、jQuery UI及jQuery Mobile技巧与示例内容简介:《jQuery、jQuery UI及jQuery Mobile技巧与示例》包括jQuery、jQuery UI、jQuery Mobile以及jQuery插件四部分内容。第一部分介绍jQuery核心库,从...
jQuery UI Autocomplete是jQuery UI的自动完成组件演示代码
里面附有: 1.easyUI.rar; 2.jQuery and jQuery UI Reference 1.2 API.zip...9.jquery-ui-1.8.16.custom (jQuery 1.3.2以上版本适用不包含 jQuery 1.3.2).zip; 10.jquery-ui-1.9m3.zip; 11.jquery-ui-17custom.zip;
资源名称:jQuery UI参考手册 中文CHM版内容简介:jQuery UI是一个建立在jQuery Javascript 库上的小部件和交互库,您可以使用它创建高度交互的Web应用程序。本教程将向您讲解 jQuery UI 是如何工作的。本文给...
jQuery是一个快速、简洁的JavaScript框架,是继Prototype之后又一个优秀的JavaScript代码库(框架)于2006年1月由John Resig发布。jQuery设计的宗旨是“write Less,Do More”,即倡导写更少的代码,做更多的事情。...
原书名:jQuery, jQuery UI, and jQuery Mobile: Recipes and Examples 原出版社: Addison-Wesley Professional 作者: (荷)Adriaan de Jonge (美)Phil Dutson 译者: 包勇明 程学彬 出版社:人民邮电出版社 ...
jQueryUI jQueryUI插件 键盘插件 基于 jQueryUI 的小键盘 可灵活修改
bootstrap&jQueryUI例子
jQuery UI 是以 jQuery 为基础的开源 JavaScript 网页用户界面代码库。包含底层用户交互、动画、特效和可更换主题的可视控件。