Javascript字符串数组以逗号分隔的多个字符串

时间:2016-04-09 17:18:43

标签: javascript arrays string

如何将字符串数组转换为输出单个字符串,以逗号分隔。

转换["Red", "Blue", "Green"]"Red", "Blue", "Green"

正在寻找以逗号分隔的字符串列表。

2 个答案:

答案 0 :(得分:3)

使用StreamWriter并预先/后修复一些额外的引号。

join

Self-closing StreamWriter singleton

答案 1 :(得分:0)

使用Traceback (most recent call last): File "E:/IMFsPasesAndDifferences_FV/FollowingTheSameLogicAsMatlab.py", line 41, in <module> HilbertMatrix = signal.hilbert(TempMatrix) File "C:\Users\Tiwa\Anaconda3\envs\IMFsPasesAndDifferences_FV\lib\site-packages\scipy\signal\signaltools.py", line 1624, in hilbert Xf = fftpack.fft(x, N, axis=axis) File "C:\Users\Tiwa\Anaconda3\envs\IMFsPasesAndDifferences_FV\lib\site-packages\scipy\fftpack\basic.py", line 284, in fft return work_function(tmp,n,1,0,overwrite_x) _fftpack.error: failed in converting 1st argument `x' of _fftpack.zrfft to C/Fortran array 和ES6的更优雅的方式:

map