JS implements instance code for the current date

Written in front:

In the project, it is often used to display the function of the current date, here, record, convenient for future reference.

First show the renderings:

JS实现显示当前日期的实例代码 Due to the simple function, you will directly move the code directly

   JS implements the current date display           $ (document) .ready (function () {var Date = new date (); var weekday = ["Sunday", "Monday", "Tuesday", " Wednesday, "Thursday", "Friday", "Saturday"]; var yeear = Date.GetFullyear (); var month = Date.getMonth () + 1; var day = Date.getdate (); var week = weekday [ Date.getday ()]; // Alert (Year + "," + "," + day + "," + "# myTime"). HTML (Year + "Year" + Month + "Month" + Day + " 
The above is small JS to introduce the JS implementation showing the real instance of the current dateCode, I hope to help everyone. If you have any questions, please leave a message, Xiaobian will reply to everyone in time. Thank you very much for your support of Tumi Cloud Website!

© Copyright Notice
Just support it if you like
comment Grab the couch

Please log in to comment