Grails 项目中使用日历插件
2014-04-01 11:38
405 查看
<script type="text/javascript" src="<%=request.getContextPath()%>/js/datepicker/WdatePicker.js"></script>
页面引入该Js 文件
在GSP页面中音符下面标签元素, input标签控件的部分即显示日历插件的末班
<div class="line">
<div class="line-title">
<em class="star">*</em>
<g:message code="inquiryList.deadDate.label"default="Dead Date" />
</div>
<div>
<input type="text" name="deadDate" value="${inquiryListInstance?.deadDate}"onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true})"readonly="readonly">
</div>
</div>
在Controller中使用 params.deadDate 即可取到你所选取的时间。 下面是该日历控件显示的样式
Js 插件代码在文件中上传的有zip文件
页面引入该Js 文件
在GSP页面中音符下面标签元素, input标签控件的部分即显示日历插件的末班
<div class="line">
<div class="line-title">
<em class="star">*</em>
<g:message code="inquiryList.deadDate.label"default="Dead Date" />
</div>
<div>
<input type="text" name="deadDate" value="${inquiryListInstance?.deadDate}"onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:true})"readonly="readonly">
</div>
</div>
在Controller中使用 params.deadDate 即可取到你所选取的时间。 下面是该日历控件显示的样式
Js 插件代码在文件中上传的有zip文件
![](http://images.cnitblog.com/i/579868/201404/011136535933543.jpg)
相关文章推荐
- GHD hair straightners are probably
- RAID配置及介绍
- UBOOT-2012-10在OK6410平台的移植(四)uboot 2012.10 raise: Signal # 8 caught的问题
- script to update Ubuntu kernel to the latest mainline version
- sparkrdd自动转换能用pairfun(否则无法用reducebykey,groupbykey)
- zoj 3725 Painting Storages 题解
- NSSearchPathForDirectoriesInDomains,沙盒操作
- OpenStack G版以后的Availability Zone与Aggregate Hosts
- Container With Most Water
- HDOJ 4300 Clairewd’s message
- poj 1995 Raising Modulo Numbers 快速幂取模
- _itemFailedToPlayToEnd: { kind = 1; new = 2; old = 0; } 引发的搜索
- 【pair_简单贪心】#3 A. Shortest path of the king
- UNIX Domain Socket IPC
- solr 定时全量索引 增量索引与dataimporter.properties 配置
- StandardServer.await: create[8005]:处理
- Codeforces 50B Choosing Symbol Pairs
- !!! FAILED BINDER TRANSACTION !!!
- 把RAID卡驱动集成到Windows 2003安装光盘中
- Win2008 R2 X64 提示“please wait for the System Event Notification service"