/** * 格式化日期 */function formatDate(value){ if(value!=null){ var date = new Date(value); if( date.getHours() == 0) return date.format('yyyy-MM-dd'); else
return date.format('yyyy-MM-dd hh:mm:ss');}return '';}Date.prototype.format = function(format){ var o = { 'M+' : this.getMonth()+1, //month 'd+' : this.getDate(), //day 'h+' : this.getHours(), //hour 'm+' : this.getMinutes(), //minute
's+' : this.getSeconds(), //second 'q+' : Math.floor((this.getMonth()+3)/3), //quarter 'S' : this.getMilliseconds() //millisecond } if(/(y+)/.test(format)) { format = format.replace(RegExp.$1, (this.getFullYear()+'').substr(4 - RegExp.$1.length)); } for(var k in o) { if(new RegExp('('+ k +')').test(format)) { format = format.replace(RegExp.$1, RegExp.$1.length==1 ? o[k] : ('00'+ o[k]).substr((''+ o[k]).length)); } } return format; }
获取前端radio的值,并转换固定格式的str;function getCheckBoxArray(domArray){ var s=''; $('#'+domArray).each(function(){ if($(this).prop('checked')==true){ s = s + $(this).val() + ','; } }) return s;}
404数字是什么? 一 是服务器执行完客户端的请求以后,返回给客户端的一个执行结果的状态编码产生的原因:Web服务器(容器)根据请求地址找不到对应资源。如: ① 地址错误(拼写不正确,字母大小写错误) ② web.xml文件中的两个
页面组建Form
- 1
js前端代码如何写
- 2
麻辣小龙虾的制作方式
- 3
剥小龙虾最快的方法
- 4
尼康D7000如何录制视频
- 5
五香小龙虾的做法
- 6
如何在电脑上查看尼康d80拍摄的照片
- 7
尼康D90怎么将相片导入到电脑
- 8
白灼小龙虾的做法大全
- 9
Nikon尼康d5300单反相机如何录制短片怎么操作
- 10
尼康d90使用技巧
- 11
怎么查尼康D810是新机
- 12
尼康D5200使用说明书:[2]
- 13
我的龙虾情缘:[1]龙虾美餐
- 14
手持稳定器小斯坦尼康稳定器如何使用?
- 15
LR相机校准文件(DCP文件)安装教程(通用篇)
- 16
尼康单反相机D5300怎么浏览缩放照片清理图片
- 17
在网络购买尼康单反怎么验证行货
- 18
3Dmax怎么设置相机
- 19
明日之后如何钓龙虾?
- 20
基础全攻略教你如何使用相机
- 21
尼康7100入门使用教程
