String.prototype.format을 common.js로 이동
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user