jQuery UI 使用

jQuery UI 教程 · 2019-04-04 11:57:12

一旦您下载了 jQuery UI,您将得到一个 zip 压缩包,包含下列文件:

  • /css/
  • /development-bundle/
  • /js/
  • index.html

在网页上使用 jQuery UI

在文本编辑器中打开 index.html,您将看到引用了一些外部文件:主题、jQuery 和 jQuery UI。通常情况下,您需要在页面中引用这三个文件,以便使用 jQuery UI 的窗体小部件和交互部件:

<link rel="stylesheet" href="css/themename/jquery-ui.custom.css" />
<script src="js/jquery.min.js"></script>
<script src="js/jquery-ui.custom.min.js"></script>

一旦您引用了这些必要的文件,您就能向您的页面添加一些 jQuery 小部件。比如,要制作一个日期选择器(datepicker)小部件,您需要向页面添加一个文本输入框,然后再调用 .datepicker(),如下所示:

HTML:

<input type="text" name="date" id="date" />

JavaScript:

$( "#date" ).datepicker();

实例截图

如需查看 jQuery UI 小部件和交互部件的实例演示,请访问 jQuery UI 实例。

点击查看所有 jQuery UI 教程 文章: https://codercto.com/courses/l/41.html

查看所有标签

Learn Python the Hard Way

Learn Python the Hard Way

Zed Shaw / Example Product Manufacturer / 2011

This is a very beginner book for people who want to learn to code. If you can already code then the book will probably drive you insane. It's intended for people who have no coding chops to build up t......一起来看看 《Learn Python the Hard Way》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具