Conclusion : 

the performance of the “+=” operator was actually better in Internet Explorer 7 than pushing fragments into an array and joining them.

<IE7에서 문자열 조작은 Array 방식보다 "+=" 연산자가 효율이 더 좋다>


Sample : 

foreach(xmlElement in allXmlElements) {
  var jsonObject = {};
  jsonObject["firstName"] = xmlElement.getValueOf("firstName");
  jsonObject["lastName"] = xmlElement.getValueOf("lastName");
  ...
  processObject(jsonObject)
}

And the pseudo code for JSON:

var allJsonObjects = eval(jsonObjectsAsString);
foreach(jsonObject in allJsonObjects) {
  processObject(jsonObject);
}

processObject itself is simply concatenating the individual properties of the JSON Object to a global string variable:

globalString += jsonObject.firstName + " " + jsonObject.lastName + ...


번호 제목 글쓴이 날짜 조회 수
146 JavaScript Form Validation file 황제낙엽 2008.11.24 494
145 innerHTML 황제낙엽 2005.12.19 494
144 fetch() 함수 사용 예제 file 황제낙엽 2023.11.23 493
143 익스플로러용 스크립트 디버거 (Script Debugger for Windows NT 4.0 and Later) 황제낙엽 2008.12.11 489
142 아이디 생성 조건 검사 자바스크립트 모듈 황제낙엽 2004.11.18 489
141 크로스 브라우저를 위한 브라우저 검사 코드 file 황제낙엽 2010.08.27 488
140 DOM과 innerHTML 방법에 대한 비교 분석 황제낙엽 2008.11.03 485
139 JAVASCRIPT REFERENCE 파일 file 황제낙엽 2005.11.22 484
138 자바스크립트 숫자형 체크 함수 (isFinite() 함수 와 isNaN() 함수) 황제낙엽 2011.12.13 483
137 자동 형변환 (문자열 -> 숫자) 황제낙엽 2009.06.25 483
136 마우스 오버시 살짝 뒤로 물러나는 듯한 링크 -_-;; 황제낙엽 2003.01.04 482
135 int * float 연산 오류 file 황제낙엽 2008.12.11 480
134 재사용 가능한 일회용 객체 황제낙엽 2008.08.08 478
133 |= 비트 OR 대입 연산자 (복합대입연산자) 황제낙엽 2017.03.15 475
132 [JavaScript Tutorials] Error handling in JavaScript using try/catch/finally - The Error object and throwing your own errors (해석중) 황제낙엽 2009.04.10 474
131 State of ECMAScript 4 ('07 12) 황제낙엽 2008.07.14 474
130 폼으로 XML 데이터 전송 (JSP+Javascript) 황제낙엽 2005.12.04 473
129 [URLSearchParams] URL 파라미터(매개변수) 값 가져오기 file 황제낙엽 2023.02.02 471
128 delete 연산자에 대한 고찰 황제낙엽 2012.06.11 471
127 HTTP Content-Type 정리 황제낙엽 2013.09.30 470