NSString *temp = @"4581230915932414=190110110006767";
NSRange range2 = [temp rangeOfString:@"="];
if (range2.length != 0) {
[temp stringByReplacingOccurrencesOfString:@"=" withString:@"D"];
self.userhelper.trackData2 = temp;
}
注意,方法处理后,会返回新的字符串;本身temp不会改变;