/** * 格式化日期 */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
喉癌晚期的中药
- 5
双11大促如何推广引流
- 6
“双十一”约会地点全攻略
- 7
双11优惠攻略
- 8
双十一买什么便宜?双十一值得买的晒一下!
- 9
2016双十一购物攻略
- 10
双十一购物经验指南
- 11
双11有哪些适合大量囤货的品种
- 12
”剁手党“迎战”双十一“必备技能
- 13
影响手淘搜索排名的四个因素
- 14
双11合伙人心愿大奖如何领取
- 15
双11合伙人盖楼大挑战怎么查看场次信息
- 16
2018年双11全攻略
- 17
双11购物攻略是什么
- 18
历年双11省钱账单怎么查看
- 19
双十一购物怎样预防掉坑?
- 20
中小卖家该怎么备战双11活动
- 21
双11网上购物技巧-全攻略
