📜  stringbuffer javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:16.512000             🧑  作者: Mango

代码示例1
Internet Explorer is the only browser which really suffers from this in today's world. (Versions 5, 6, and 7 were dog slow. 8 does not show the same degradation.) What's more, IE gets slower and slower the longer your string is.

If you have long strings to concatenate then definitely use an array.join technique. (Or some StringBuffer wrapper around this, for readability.) But if your strings are short don't bother.