JS字符串累加Array不一定比字符串累加快(根据电脑配置)
先贴出完整代码. 复制代码 代码如下: <script type="text/javascript"> function StringBuffer() { this._strings = new Array(); } StringBuffer.prototype.append = function(str) { this._strings.push(str); //StringBuffer.prototype.length = this._st...