function GetStartTime(){
var first=$('#<?php echo $this->SearchLimitDateCookiesName?>-year option:selected').val()+'-'+ $('#<?php echo $this->SearchLimitDateCookiesName?>-month option:selected').val()+'-'+$('#<?php echo $this->SearchLimitDateCookiesName?>-date option:selected').val()+' 00:00:00';
var last=$('#<?php echo $this->SearchLimitDateCookiesName?>-year option:selected').val()+'-'+ $('#<?php echo $this->SearchLimitDateCookiesName?>-month option:selected').val()+'-'+$('#<?php echo $this->SearchLimitDateCookiesName?>-date option:selected').val()+' 59:59:59';
var start_time = Date.parse(first).getTime()/1000;
var last_time = Date.parse(last).getTime()/1000;
var StartTime=start_time;
var LastTime=last_time;
$.cookie('<?php echo $this->SearchLimitDateCookiesName?>-start_time',StartTime,{expires:1});
$.cookie('<?php echo $this->SearchLimitDateCookiesName?>-last_time',LastTime,{expires:1});
}
为什么函数 Date.parse() 无法通过“第一”变量发送日期时间。如果我把 Date.parse('1970-02-23 00:00:00') 放在那个工作
如果我提醒(第一);它的显示时间正确。