Created
July 17, 2012 14:47
-
-
Save nisshiee/3129836 to your computer and use it in GitHub Desktop.
String.substr関数の挙動
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
// Chrome、FF、IE9 | |
"4321".substr(-2); // → "21" | |
// Windowsガジェット | |
"4321".substr(-2); // → "4321" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment