1、layDate 日期与时间组件
官网:http://www.layui.com/laydate/
文档:http://www.layui.com/doc/modules/laydate.html
结构:
1.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>使用 layDate 独立版</title>
</head>
<body>
<input type="text" id="test1">
<script src="js/layDate-v5.0.9/laydate/laydate.js"></script> <!-- 改成你的路径 -->
<script>
//执行一个laydate实例
laydate.render({
elem: '#test1', //指定元素
type:'month',
theme: '#d486ba'
});
</script>
</body>
</html>
效果: