史上最快的拼接字串方法

var arr = ['item 1', 'item 2', 'item 3'];
 var ohtml='<ul><li>'+arr.join("</li><li>")+'</li></ul>'; console.log(ohtml); 
相關文章
相關標籤/搜索