日期插件
<form> <div class="form-group"> <label>普通日期</label> <input type="text" class="datepick form-ip"> </div> <div class="form-group"> <label>带时间日期</label> <input type="text" class="datepick-time form-ip"> </div> <div class="form-group"> <label>月份选择</label> <input type="text" class="datepick-month form-ip"> </div> </form> <script src="static/js/laydate.js"></script> <script> lay('.datepick').each(function() { laydate.render( { elem:this, }); }); lay('.datepick-time').each(function() { laydate.render( { elem:this, type:'datetime' }); }); lay('.datepick-month').each(function() { laydate.render( { elem:this, type:'month', }); }); </script>