您的位置:首页 > 其它

laydate时间控件

2016-02-01 16:46 363 查看
1.引入

<script src="<%=path%>/plugins/laydate/laydate.js" type="text/javascript"></script>

2.html
<div class="col-md-8" style="margin-left: 100px;">
<div style="margin-top: 15px;margin-left: 6px;" class="row">
<div class="col-lg-12">
<div id="timePiker">
<span> 开始时间:</span>
<input type="text" class="laydate-icon" id="startTime"
style="width:180px; margin-right:10px;height:28px;"
value=""/>

<span>结束时间</span>
<input type="text" class="laydate-icon" id="endTime" style="width:180px;height:28px;" value=""/>

<button class="btn btn-info" type="button" id="queryHeatCharts" style="margin-left: 20px;">查询</button>
</div>
</div>
</div>
</div>

3.js
<div class="col-md-8" style="margin-left: 100px;">
<div style="margin-top: 15px;margin-left: 6px;" class="row">
<div class="col-lg-12">
<div id="timePiker">
<span> 开始时间:</span>
<input type="text" class="laydate-icon" id="startTime"
style="width:180px; margin-right:10px;height:28px;"
value=""/>

<span>结束时间</span>
<input type="text" class="laydate-icon" id="endTime" style="width:180px;height:28px;" value=""/>

<button class="btn btn-info" type="button" id="queryHeatCharts" style="margin-left: 20px;">查询</button>
</div>
</div>
</div>
</div>

4.效果

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: