I have a Javascript string array with values like A12, B50, C105 etc. and I want to turn it into a pipe delimited string like this: A12|B50|C105...How could I do this? I'm using jQuery (in case that helps with some kind of builtin function). 解决方案 var pipe_delimited_string = string_array.join("|");Array.join is a native Array method in Javascript which turns an array into a string, joined by the specified separator (which could be an empty string, one character, or multiple characters). 这篇关于将 Javascript 数组转换为分隔字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-31 00:55