/** * 格式化日期 */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
Q版水浒传杨志怎么画
- 4
林冲简笔画步骤
- 5
报案后多久立案,怎么知道确定立案了
- 6
征服OL二次转世任务攻略简析
- 7
入湘报备怎么操作
- 8
民政部门发放的“优抚证”有哪些享受政策
- 9
无线鼠标连接电脑的方法
- 10
民政大病救助条件是什么?
- 11
无线鼠标怎么连接到电脑?
- 12
电脑搜索不到蓝牙鼠标
- 13
如何申请民政救助
- 14
无线键盘鼠标怎么使用
- 15
罗技k240键盘怎么配对
- 16
小米笔记本,小米air,蓝牙鼠标经常断开问题
- 17
无线鼠标连接电脑没反应怎么办
- 18
罗技蓝牙键盘怎么连接电脑
- 19
电脑如何连接蓝牙鼠标
- 20
Logitech罗技K480蓝牙键盘的正常使用方法
- 21
无线键盘无线鼠标的使用方法
