好像代码不是很全
FF里的new Date()不能那样用,参数不对,把下面这一行:
var endDate = new Date(time.replace("-","/"));
改成这几行:
var s = time.split(" ");
var s1 = s[0].split("-");
var s2 = s[1].split(":");
var endDate = new Date(s1[0],s1[1]-1,s1[2],s2[0],s2[1],s2[2]);
IE7/FF2测试通过
丁学
|
专家六级
|园豆:18730
|
2008-04-17 21:16