使用Array.join在Internet Explorer中进行字符串连接操作是最快的;
而+= 或者 String.prototype.concat.apply(object, arguments) 在其他浏览器中表现得更好。详细测试数据参见:http://www.sitepen.com/blog/2008/05/09/string-performance-an-analysis/
使用Array.join在Internet Explorer中进行字符串连接操作是最快的;
而+= 或者 String.prototype.concat.apply(object, arguments) 在其他浏览器中表现得更好。详细测试数据参见:http://www.sitepen.com/blog/2008/05/09/string-performance-an-analysis/