string str = this.txtNames.Text.Trim();
string[] result = str.Replace("/r", string.Empty).Split(new char[] { '/n' });
把textbox中的文本按照/r/n拆分成string[]
最新推荐文章于 2022-07-17 13:45:56 发布
string str = this.txtNames.Text.Trim();
string[] result = str.Replace("/r", string.Empty).Split(new char[] { '/n' });