Display all items in array using jquery

后端 未结 6 1352
悲&欢浪女
悲&欢浪女 2020-12-04 19:07

I have an array that I want to have displayed in html.. I don\'t want to write multiple lines for posting each item in the array but all should be exactly the same. ie

6条回答
  •  情深已故
    2020-12-04 19:17

    Use any examples that don't insert each element one at a time, one insertion is most efficient

     $('.element').html( '' + array.join('')+'');
    

提交回复
热议问题