标签:
var start = new Date(row.InsuranceStime.replace("-", "/").replace("-", "/")); var end = new Date(row.InsuranceEtime.replace("-", "/").replace("-", "/")); // alert(start+"**"+(new Date(‘1900/01/01 00:00:000‘))) if (Date.parse(‘1900/01/01 00:00:000‘) === Date.parse(start) || Date.parse(‘1900/01/01 00:00:000‘) === Date.parse(end)) { return "<font>未投保</font>"; } else { var today = new Date(mydate.toDateString() + " " + mydate.toTimeString()); if (end < today) { return "<font>已过期</font>"; } if (start > today) { return "<font>未生效</font>"; } if (row.InsuranceMoney === 0) { return "<font>未投保</font>"; } else { return "已投保"; } }
标签:
原文地址:http://www.cnblogs.com/renfushuai/p/5288538.html