layui-js/test/laydate.html

37 lines
728 B
HTML
Raw Normal View History

2016-11-10 02:31:39 +08:00
2016-10-14 16:23:52 +08:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>表单模块 - layui</title>
<link rel="stylesheet" href="../src/css/layui.css">
<style>
body{padding: 50px 100px;}
</style>
</head>
<body>
<ul class="layui-form">
<li class="layui-form-item">
<label class="layui-form-label">日期</label>
<div class="layui-input-inline">
2016-10-18 08:23:17 +08:00
<input required type="text" id="layui-laydate-input" onclick="layui.laydate({elem: this})" class="layui-input">
2016-10-14 16:23:52 +08:00
</div>
</li>
</ul>
<script src="../src/layui.js"></script>
<script>
layui.use('laydate', function(){
var laydate = layui.laydate
2017-02-21 06:48:54 +08:00
2016-10-14 16:23:52 +08:00
});
</script>
</body>
</html>