Pass in a regexp as the parameter: js> "Hello awesome, world!".split(/[\s,]+/) Hello,awesome,world! Edited to add: You can get the last element by selecting ...
確定! 回上一頁