标签: javascript split
有没有办法将字符串拆分成2个单词,使用空格作为分隔符?我知道有分裂("")但它将它分成一个单词。我想要像
var at = "this is not the end of the world boo"; at.somefunc(" ", 2)//returns ["this is", "not the", "end of", "the world", "boo"]