判断字符串是否为空 if(url!=null && !"".equals(url)){ //不为空 }else{ //为空 } 转载于:https://www.cnblogs.com/kkvt/p/11103356.html