JS字符串累加Array不一定比字符串累加快(根据电脑配置)_javascript技巧【点击查看详情】
JS字符串累加Array不一定比字符串累加快(根据电脑配置)_javascript技巧:先贴出完整代码. 代码如下: function StringBuffer() { this._strings = new Array(); } StringBuffer.prototype.append = function(str) { this._strings.push(str); //StringBuffer.prototype.le