百度云盘  传送门  密码:71hf

 

JavaScript日期与时间组件_____laydate.js

 

日期日历效果:

JS框架_(Laydate.js)简单实现日期日历

 

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Gary_日历日期</title>

<link rel="stylesheet" href="css/laydate.css" />
<script src="js/jquery.min.js"></script>
<script src="js/laydate.js"></script>
<style type="text/css">
 .select-date{font-family:"sta cartman"}
</style>

</head>
<body>

<div class="laydate-box">
    <input type="text" id="laydateInput" placeholder="xxxx年xx月xx日" />
    <div class="select-date">
        <div class="select-date-header">
            <ul class="heade-ul">
                <li class="header-item header-item-one">
                    <select name="" id="yearList"></select>
                </li>
                <li class="header-item header-item-two" onselectstart="return false">
                    <select name="" id="monthList"></select>
                </li>
                <li class="header-item header-item-three" onselectstart="return false" >
                    <span class="reback">回到今天</span>
                </li>
            </ul>
        </div>
        <div class="select-date-body">
            <ul class="week-list">
                <li></li><li></li><li></li><li></li><li></li><li></li><li></li>
            </ul>
            <ul class="day-tabel"></ul>
        </div>
    </div>
</div>

<script>
    function getSelectDate(result){
        //这里获取选择的日期
        console.log(result);
    }
</script>

</body>
</html>
index.html

相关文章:

  • 2022-12-23
  • 2021-07-27
  • 2021-09-28
  • 2021-12-04
  • 2021-04-17
  • 2021-12-31
  • 2021-05-06
  • 2022-12-23
猜你喜欢
  • 2021-10-08
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2021-04-01
  • 2021-12-05
相关资源
相似解决方案