Closed iOS-Kel closed 6 months ago
例如: NSArray *arr = @[@"https://cdn.szyiqc.com/img1.png, @"https://cdn.szyiqc.com/img2.png"];
[arr mj_JSONString]; // 输入结果是 ["https:\/\/cdn.szyiqc.com\/img1.png", "https:\/\/cdn.szyiqc.com\/img2.png"]
导致图片路径错误了,这个咋整?
我的解决方法如下,供大家参考 [[imageUrls mj_JSONString] stringByReplacingOccurrencesOfString:@"\/" withString:@"/"]
例如: NSArray *arr = @[@"https://cdn.szyiqc.com/img1.png, @"https://cdn.szyiqc.com/img2.png"];
[arr mj_JSONString]; // 输入结果是 ["https:\/\/cdn.szyiqc.com\/img1.png", "https:\/\/cdn.szyiqc.com\/img2.png"]
导致图片路径错误了,这个咋整?