18.04.24

localtion.href='(struts的action的name)!(方法名) ? mode_Type=1&menuId=${menuId}';
<s:form id="formId" name="formName" action="formListAction" method="post">

</s:form>
// form动态提交
document.getElementById("baseform").action="/text/jsp";
document.getElementById("baseform").action="xxxaction!xxx";
document.getElementById("baseform").submit();
// 一种新的 jsp 页面判断方法
<c:if test="${mode_Type == 1 }">
</c:if>

<c:choose>
    <c:when test="${check == 1}">
        <input type="hidden" />
    </c:when>
    <c:otherwise>
        <input type="button" value="<s:text name="TEXT_MESSAGE" /> onclick="clickButton();" class="" onmouseover="""/>
    </c:otherwise>
</c:choose>
延迟执行方法或弹窗
$(docuemnt).ready(function() {
    setTimeout(function(){
        search();
    },1000);
    setTimeout("alert('1秒')",1000); 
});

源码学习(1)
StringUtil.nullTrim();

 public String trim() {
        int len = value.length;
        int st = 0;
        char[] val = value;    /* avoid getfield opcode */

        while ((st < len) && (val[st] <= ' ')) {
            st++;
        }
        while ((st < len) && (val[len - 1] <= ' ')) {
            len--;
        }
        return ((st > 0) || (len < value.length)) ? substring(st, len) : this;
    }

猜你喜欢

转载自blog.csdn.net/yw2567/article/details/80076274