String.prototype.format을 common.js로 이동

This commit is contained in:
Hide_D committed 2018-02-11 00:13:11 +09:00
1 parent 6052b3c577
commit d49803baed
2 files changed
+12 -7

No files matched your search

-7
View File
@@ -1,11 +1,4 @@
String.prototype.format = function() {
var args = arguments;
return this.replace(/{(\d+)}/g, function(match, number) {
return (typeof args[number] != 'undefined') ? args[number] : match;
});
};
function reloadWorldMap(option){