JavaScript - 时间选择器控件layDate.js

https://www.layui.com/laydate/

示例:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>使用 layDate 独立版</title>
</head>
<body>
<input type="text" id="test1">
<script src="/laydate/laydate.js"></script> <!-- 改成你的路径 -->
<script>
//执行一个laydate实例
laydate.render({
  elem: '#test1' //指定元素
});
</script>
</body>
</html>

 

使用正则限制输入格式。

暂不……
---
<input type="text" class="form-control" id="searchDate_e" placeholder="yyyy-MM-dd" readonly/>

 

2

posted @ 2018-11-01 11:12  德丽莎·阿波卡利斯  阅读(122)  评论(0编辑  收藏  举报