如何在jquery中拆分字符串数组。例如:
var input='a,b,c,d,e,f,g'
//i want to split in in array.
//check the condition that if input of elements > 3.
//then i need to remove the elements in array. then show the array like ex: output= 'a,b,c'
由于我是新手,jQuery
请建议我一些 jquery 函数来实现这一点。