阅读背景:

jQuery Date()函数将返回1969年12月31日,而不是当前日期。

来源:互联网 

I'm learning jQuery from the Jon Duckett book "Javascript & jQuery: Interactive Front-End Development". So far all the code I've copied from the book seems to be running smoothly, however this code has me stumped. Basically what happens is when you click on a list item in the HTML it displays the date the click event occurred next to the li. It works, but the date displays December 31, 1969 instead of the object clicked date. I've been reading up on how to fix this, but I've had no luck. Is there a different way to get this same result, or am I just missing something in the code?I'm learning jQuery from the Jon Duckett book "




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: