jQuery UI
開發者
  • Paul Bakaus
  • Scott González
  • Jörn Zaefferer
  • Felix Nagel
  • Mike Sherov
  • Rafael Xavier de Souza[1]
当前版本
  • 1.13.3 (2024年4月26日;穩定版本)[2][3]
編輯維基數據鏈接
源代码库 編輯維基數據鏈接
编程语言JavaScript
类型插件
许可协议MIT許可證[4]
网站https://jqueryui.com/

jQuery UI是一套JavaScript 函式庫,提供抽象化、可自訂主題的GUI控制項與動畫效果。基於jQuery JavaScript函式庫,可用來建構互動式的網際網路應用程式。在2007年9月約翰·雷西格於jquery.com部落格裡的一篇文章裡正式公諸於世[5]。最新的版本需要jQuery 2.1.1或更新的版本。[6]

功能

以1.9.0版本為例[7]

互動

控制項

jQuery UI的所有控制項都能自訂主題樣式[9]

效果

工具

範例

// 讓#draggable可以拖曳
$(function() {
    $("#draggable").draggable();
});
<div id="draggable" style="width:150px;height:150px;padding:0.5em" class="ui-widget-content">
  <p>Drag me around</p>
</div>

這段程式碼會讓使用者的滑鼠游標可以拖曳ID為「draggable」的DIV元素。

参考文献

  1. ^ jQuery UI Team. jqueryui.com. The jQuery Foundation. [5 February 2016]. (原始内容存档于2012-02-29). 
  2. ^ 2.0 2.1 Release 1.13.3. 2024年4月26日 [2024年5月2日]. 
  3. ^ 3.0 3.1 https://registry.npmjs.com/jquery-ui; 检索日期: 2024年5月2日.
  4. ^ License. jQuery.com. The jQuery Foundation. [2014-06-12]. (原始内容存档于2021-01-23). 
  5. ^ John Resig. jQuery UI: Interractions and plug-ins. jQuery blog. 17 September 2007 [12 August 2012]. (原始内容存档于2012-08-18). 
  6. ^ Build Your Download. [2012-09-02]. (原始内容存档于2021-02-04). 
  7. ^ jQuery UI Demos. jQuery UI. [14 October 2012]. (原始内容存档于2012-05-13). 
  8. ^ Jquery UI Examples – Crop Images With Jquery Resize. Innovative PHP. 16 June 2011 [12 August 2012]. (原始内容存档于2011年12月13日). 
  9. ^ jQuery UI: ThemeRoller. jQuery UI. [12 August 2012]. 
  10. ^ Jquery UI Examples – Creating a Page Content Slider. Innovative PHP. 21 July 2011 [12 August 2012]. (原始内容存档于2012年7月27日). 

外部連結