史上最快的拼接字串方法

var arr = ['item 1', 'item 2', 'item 3'];
 var ohtml='<ul><li>'+arr.join("</li><li>")+'</li></ul>';
console.log(ohtml); 
posted @ 2017-04-01 09:43  博客菜鸟100  阅读(269)  评论(0编辑  收藏  举报