jonson1126
各种问题 各种方法 各种解决 路要自己走一遍才知个中滋味
摘要: 1. string.indexof()IndexOf()与LastIndexOf()的不同在于IndexOf()从字符串中第一个字符开始检索,LastIndexOf()是从字符串的最后一个字符向前检索。返回值都是字符串中字符所在的下标,如果没有找到则返回-12.string.replace()返回一个新字符串,其中当前实例中出现的所有指定字符串都替换为另一个指定的字符串。定义:public string Replace( stringoldValue, string newValue)实例:using System;public class ReplaceTest { public stati 阅读全文
posted @ 2013-04-08 17:04 jonson1126 阅读(205) 评论(0) 推荐(0) 编辑