ios 串

it2025-09-05  61

1、是推断包括字符串

        if( [str rangeOfString:@"hello"].location != NSNotFound) {

            

            NSLog(@"yes");

            

        } else {

            

            NSLog(@"no");

        }

版权声明:本文博客原创文章。博客,未经同意,不得转载。

转载于:https://www.cnblogs.com/bhlsheji/p/4655375.html

最新回复(0)