博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
isNotEmpty 与 isNotBlank 的区别
阅读量:4514 次
发布时间:2019-06-08

本文共 177 字,大约阅读时间需要 1 分钟。

 

isNotEmpty(str)等价于 str != null && str.length > 0

 

isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length > 0

 

转载于:https://www.cnblogs.com/youxiu326/p/10540763.html

你可能感兴趣的文章
win10 压缩包安装mysql8.0.11报错:Access denied for user 'root'@'localhost'
查看>>
随笔:关于去年的WordPress建站的回忆
查看>>
iptables配置——NAT地址转换
查看>>
vue----生命周期
查看>>
tornado ThreadPoolExecutor
查看>>
类里的方法要不要加参数
查看>>
C#毫秒转时分秒格式
查看>>
flask SQLAlchemy pymysql 连接数据库
查看>>
Mac 域名解析
查看>>
ios ViewController present不同的方向
查看>>
未知宽高元素水平垂直居中
查看>>
while 、函数、参数
查看>>
POJ 2762 Going from u to v or from v to u?(Tarjan + 拓扑排序)
查看>>
洛谷P1312 [NOIP2011提高组Day1T3]Mayan游戏
查看>>
BZOJ4293: [PA2015]Siano
查看>>
java第五次实训作业异常处理
查看>>
linux常用命令总结(含选项参数)
查看>>
Why validation set ?
查看>>
2019-04-01 为什么零售业务流行起来了?
查看>>
一般处理程序、Ajax多图片上传带进度条
查看>>