nil和null区别

nil针对对象  if(name)和 if(name!=nil)是一样的 就是对象存在
null 是判断 name==null? 判断name这个值是否为空 记住 空字符串不能算空

你可能感兴趣的:(nil和null区别)