Created
October 9, 2015 01:29
-
-
Save entyo/2f9efe375ab9ee67d2a9 to your computer and use it in GitHub Desktop.
時計的な
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
setInterval(function() { | |
var d = new Date(); | |
var formatDate = | |
d.getFullYear() + '年' + | |
(d.getMonth() + 1) + '月' + | |
d.getDate() + '日 ' + | |
d.getHours() + '時' + | |
d.getMinutes() + '分'; | |
$("#time").text(formatDate); | |
}, 1000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment