企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~ NSArray *arr = @[@{@"city":@"beijing",@"person":@{@"name":@"zhangsan"}},@{@"city":@"chengdu"}]; NSArray *resultArr = [arr valueForKeyPath:@"city"]; //可以获取到city数组 @[@"beijing",@"chengdu"] NSLog(@"%@",resultArr); ~~~