Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP explodeの場合と同じように、各値を取得したい文字列内にコンマで区切られた値を含む文字列がありますが、JavaScriptで実行する必要があります。方法と方法はありますか?
ありがとう
レロン
どうですか:
"some,string,with,commas".split(',')
var mystring = "I like coffee, very much so, but I don't like..."; var exploded = mystring.split(","); window.alert(exploded[1]);