C#中split的方法汇总(StringSplitOptions.RemoveEmptyEntries)
js:
var arr = str.substring(0, useranswer.length - 1).split(",");
c#:
var str="sfsdfs,sfd,fs,"
var arr =str.Split(new Char[]{','}, StringSplitOptions.RemoveEmptyEntries);//去除空数据
var arr1=str.Split(",");//保留空数据
var arr1=str.Split(new Char[]{'a','b'})