史上最快的拼接字串方法
生活随笔
收集整理的這篇文章主要介紹了
史上最快的拼接字串方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
var arr = ['item 1', 'item 2', 'item 3']; var ohtml='<ul><li>'+arr.join("</li><li>")+'</li></ul>';
console.log(ohtml);?
console.log(ohtml);?
轉載于:https://www.cnblogs.com/xiaobai110/p/6654627.html
與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的史上最快的拼接字串方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HDU 1811 Rank of Tet
- 下一篇: LeetCode——Find the D