java小王博客

记录菜B的一点一滴,欢迎各位好汉前来叨扰!


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>博主qq:1756691861

layui日期选择器

2020-6-23 卑微小王 Layui框架

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="../layui/css/layui.css"/>
</head>
<body>

<div class="layui-inline">
      <label class="layui-form-label">请选择日期</label>
      <div class="layui-input-inline">
        <input type="text" class="layui-input" id="test12" placeholder="时间">
      </div>
    </div>

<script src="../layui/layui.js"></script>

<script>
layui.use(["laydate"],function(){
var laydate=layui.laydate
laydate.render({
    elem: '#test12'
    ,format: 'yyyy-MM-dd HH:mm:ss'
  });
})

</script>
</body>
</html>

发表评论: