我想利用含有一個項目這個陣列(一個STRING與一羣逗號分隔項)分割與一個元素的數組成陣列與許多元素
["Bucknell Venture Plan Competition, Mitch Blumenfeld, DreamIt Ventures, Deep Fork Capital, John Ason, Mitchell Blumenfeld, Gianni Martire"]
我想打開它進入這個。包含每個名稱作爲單獨數組項的數組。
["Bucknell Venture Plan Competition", "Mitch Blumenfeld", "DreamIt Ventures", "Deep Fork Capital", "John Ason", "Mitchell Blumenfeld", "Gianni Martire"]
謝謝!
更新:
感謝您的幫助。這工作!
可能重複[如何分割在JavaScript字符串(http://stackoverflow.com/questions/1493407/how-to-split-a-string-in-javascript) –
更好的重複:http://stackoverflow.com/questions/96428/how-do-i-split-this-string-with-javascript –
接受答案,不要更新你的帖子說它的工作。 – epascarello