开发者

Javascript issue with Dates

开发者 https://www.devze.com 2023-04-06 06:52 出处:网络
I am having some issues with javascript & using dates (in conjunction with the jQuery datepicker)

I am having some issues with javascript & using dates (in conjunction with the jQuery datepicker)

The code below gives me an error date.g开发者_如何学编程etTime is not a function endDate.setTime(date.getTime());

http://pastebin.com/Bgpw3QHF

Can anyone explain the problem?


Replace date by endDate. You've got a variable name mismatch.

endDate.setTime(date.getTime());   //current
endDate.setTime(endDate.getTime());//Should be
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号