I see a few The Code Project solutions.
But is there a regular implementation in JavaScript?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have to write code for Internet Explorer make sure you chose an implementation, which uses array joins. Concatenating strings with the
+or+=operator are extremely slow on IE. This is especially true for IE6. On modern browsers+=is usually just as fast as array joins.When I have to do lots of string concatenations I usually fill an array and don’t use a string builder class:
Note that the
pushmethods accepts multiple arguments.