Implode an array with JavaScript?

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

Can I implode an array in jQuery like in PHP?

7条回答
  •  遇见更好的自我
    2021-01-29 22:52

    Array.join is what you need, but if you like, the friendly people at phpjs.org have created implode for you.

    Then some slightly off topic ranting. As @jon_darkstar alreadt pointed out, jQuery is JavaScript and not vice versa. You don't need to know JavaScript to be able to understand how to use jQuery, but it certainly doesn't hurt and once you begin to appreciate reusability or start looking at the bigger picture you absolutely need to learn it.

提交回复
热议问题