easyui datebox只显示年月
2016-01-14 10:13
417 查看
$("#beginMonth").datebox({ formatter: function(date) { debugger; var y = date.getFullYear(); var m = date.getMonth() + 1; return y + '-' + (m < 10 ? ('0' + m) : m); }, parser: function(s) { debugger; if (!s) { return new Date(); } var ss = s.split('-'); var y = parseInt(ss[0], 10); var m = parseInt(ss[1], 10); if (!isNaN(y) && !isNaN(m)) { return new Date(y, m - 1); } else { return new Date(); } } });
相关文章推荐
- 《iOS Human Interface Guidelines》——iCloud
- UGUI中的InputField下的placeholder的作用?
- GUID
- JAVA可阻塞队列-ArrayBlockingQueue
- UITextField使用时文字向下偏移问题
- Contacts(CNSaveRequest)
- Mobileye's quest to put Deep Learning inside every new car
- clouder manager uuid文件导致无法添加主机问题
- ceph存储 UIO 子系统结构介绍
- UIView的基本属性和方法
- UIsearchController
- iOS 视图控制器(UIViewContr…
- iOS开发中UIImageView控件的常用操作整理
- Native Libraries Guide
- iOS中的UINavigationController导航栏视图控制器的简单应用
- Android UI布局之用户界面概述
- UITextView的使用详解
- 破解 ue 30天试用方法
- easyui全选、取消所有页
- iOS开发-UITableView顶部图片下拉放大