jquery u datepicker使用 jquery ui 日期组件

时间:2026-02-15 15:17:13

1、<!doctype html>

<html>

<head>

  <meta charset="utf-8">

  <title>jQuery UI Datepicker使用 jquery ui 日期组件使用</title>

  <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">

  <script src="http://code.jquery.com/jquery-1.10.2.js"></script>

  <script src="http://code.jquery.com/ui/1.11.0/jquery-ui.js"></script>

  <link rel="stylesheet" href="http://jqueryui.com/resources/demos/style.css">

  <script>

  $(function() {

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

  });

  </script>

</head>

<body>

日期: <input type="text" id="datepicker">


</body>

</html>

© 2026 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com