Created
January 13, 2017 08:24
-
-
Save Alex-xd/c621217a4d26e3b086bc322bb54beadb 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
//2.处理毫秒级的时间 | |
$.extend({ | |
handleTime:function(times){ | |
var nowTime = new Date(times), | |
year = nowTime.getFullYear(), | |
month = nowTime.getMonth(), | |
day = nowTime.getDate(); | |
return year+'.'+month+"."+day; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment