var today=new Date();这段语句怎么理解,求指导?
汪汪
汪汪 2016-12-17 16:37:56
0
2
1896

today是固定的吗?就是已经编好,使用这个作为对象名,就会以当前电脑时间为初始值?

汪汪
汪汪

reply all(2)
数据分析师

var today=new Date(); How do you understand this statement? Can you please give me some guidance? -PHP Chinese website Q&A-var today=new Date(); How to understand this statement? Can I ask for guidance? -PHP Chinese website Q&A

Please watch and learn.

阿神

var today=new Date();

意思是:new Date()创建你电脑的时间初始化 赋给 today对象, 那么这个对象就可以干很多事了! 他就是Date的代言人! 如下图 :

56d6726b0001b7d704790981.jpg.png


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!