Implode an array with JavaScript?

后端 未结 7 2101
醉话见心
醉话见心 2021-01-29 22:14

Can I implode an array in jQuery like in PHP?

7条回答
  •  深忆病人
    2021-01-29 22:52

    We can create alternative of implode of in javascript:

    function my_implode_js(separator,array){
           var temp = '';
           for(var i=0;i

提交回复
热议问题