Created
October 18, 2011 12:35
-
-
Save minodisk/1295311 to your computer and use it in GitHub Desktop.
native JSON がミリ秒を無視しないかの判定
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
my.JSON = (function () { | |
if (window.JSON && window.JSON.stringify([new Date()]).charAt(21) === '.') { | |
return window.JSON; | |
} | |
var JSON = {}; | |
// implementation | |
return JSON; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment