标签:com orm val href java ati 官网 .com php
官网:
http://www.bootcss.com/p/bootstrap-datetimepicker/index.htm
引用的js以及css:
<link rel="stylesheet" type="text/css" href="/static/css/bootstrap-datetimepicker.min.css"> <script type="text/javascript" src="/static/js/bootstrap-datetimepicker.fr.js"></script> <script type="text/javascript" src="/static/js/bootstrap-datetimepicker.min.js"></script> <script type="text/javascript" src="/static/js/bootstrap-datetimepicker.zh-CN.js"></script>
显示插件的dom元素
<div class="martb5"> <label> <input type="radio" name="pro[STATUS]" value="2"<?php if($proArr[‘base‘][‘PRO_STATUS‘] == 2) echo ‘ checked‘;?>/>指定时间</label> <input size="16" class="form-control" type="text" value="<?php echo date(‘Y-m-d H:i:s‘,time());?>" readonly id="form_datetime"> </div>
实例化:
<script type="text/javascript"> $("#form_datetime").datetimepicker({ format: ‘yyyy-mm-dd hh:ii‘, startDate:"<?php echo date(‘Y-m-d H:i:s‘,time());?>", todayHighlight:true, language:‘zh-CN‘, autoclose:‘true‘ }); </script>
标签:com orm val href java ati 官网 .com php
原文地址:http://www.cnblogs.com/xuweiqiang/p/7238897.html