7 09 2009

Super fast build HTML string

bigCat Posted in JavaScript - Comment.isBlank

The holy grail!\r\n\r\nvar arr = ['item 1', 'item 2', 'item 3', ...];\r\n \r\nvar list = '

  • ' + arr.join('
  • ') + '

';\r\n\r\nhttp://james.padolsey.com/javascript/fastest-way-to-build-an-html-string/

Host: (miao) | Word: Press | Code: HTML5