JSTL C标签 <c:if>判断参数是否为空
<c:if test="${empty str}"> str为空</c:if>
<c:if test="${not empty str}"> str不为空</c:if>
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。
- 上一篇:没有了
- 下一篇: 让yii2能够处理postman发来的json数据
<c:if test="${empty str}"> str为空</c:if>
<c:if test="${not empty str}"> str不为空</c:if>