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

This commit is contained in:
2018-02-11 00:13:11 +09:00
parent 6052b3c577
commit d49803baed
2 changed files with 12 additions and 7 deletions
-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){