2007-12-19から1日間の記事一覧
String.prototype.format = (function(regx, zero){ return function(){ var args = arguments, x = 0; return this.replace(regx, function(_, pos_s, flag, width, pos_w, prec, pos_p, type){ if(type == '%') return '%'; if(~width.indexOf('*')) width…