// NSDictionary不能直接修改,先转换成NSMutableDictionary
NSDictionary *dic=@{@"like":@"0",@"red":@"0"};
NSMutableDictionary *mutableDic = [NSMutableDictionary dictionaryWithDictionary:dic];
[mutableDicsetObject:@"1"forKey:@"HasLike"];
[mutableDicsetObject:@"1"forKey:@"LikeNums"];
网友评论