标签:java io for ar cti javascript ef type
if (!String.prototype.format) {
String.prototype.format = function() {
var args = arguments;
return this.replace(/{(\d+)}/g, function(match, number) {
return typeof args[number] != ‘undefined‘
? args[number]
: match
;
});
};
}
Javascript 字符串组装用函数 format,布布扣,bubuko.com
标签:java io for ar cti javascript ef type
原文地址:http://www.cnblogs.com/sherlock99/p/3916835.html