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