String.prototype.format = function () { formatted = this; for (i = 0; i < arguments.length; i++) { formatted = formatted.replace("{" + i + "}", arguments[i]); } return formatted;}
No comments:
Post a Comment