1? 注意BOOL值
NSInteger operType=self.isShowSchoolMeals;
{@"operType":@(operType)}
注:接口 O和1 不要用BOOL穿值,用BOOL包裝@(operType) 穿出去的是true和false
要用NSInteget 接受轉(zhuǎn)換成 0 和 1 再傳值
2 注意中文要轉(zhuǎn)編碼
NSString *htmlUrl = @"http://172.16.14.24:8080/module/today-headline.html?province=廣東省&city=廣州市";
NSCharacterSet *set=[NSCharacterSet URLQueryAllowedCharacterSet];
htmlUrl=[htmlUrl stringByAddingPercentEncodingWithAllowedCharacters:set];