河北电台泽华照片:用C#如何截取一段新闻的前一百个字符
来源:百度文库 编辑:神马品牌网 时间:2024/05/07 23:06:06
string newscontent="你的新闻内容";
string news=newscontent.substring(0,100)//0是从第一个取,100是长度
news就是你要的结果
substring()
神马品牌网是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度文库 编辑:神马品牌网 时间:2024/05/07 23:06:06
string newscontent="你的新闻内容";
string news=newscontent.substring(0,100)//0是从第一个取,100是长度
news就是你要的结果
substring()