标签:io ar on art cti bs html 时间 as
1.取出需要判断的时间传入即可
function changeTime(time){ var regEx = new RegExp("\\-","gi"); time=time.replace(regEx,"/"); var milliseconds=Date.parse(time); var dependedDate=new Date(); dependedDate.setTime(milliseconds); //变更日期格式,如果求当前日期的直接new Date() var xq = ‘星期‘+‘日一二三四五六‘.charAt(dependedDate.getDay()); $("#tpzJcjl_jcsjxq").val(xq); }
标签:io ar on art cti bs html 时间 as
原文地址:http://www.cnblogs.com/donghua2014/p/4108796.html