1.方法括號不傳值this
{ window.location.href = "ghJfGameInfo.do?method=delMiGameBelong&rowId="+rowId;get
public String delMiGameBelong(HttpServletRequest request)io
Long rowId = this.getLongValue(request, "rowId");List
2.關於返回值定義int 類型或String類型問題request
public String deleteNotice (String id) {
String errCode = "&errCode=3";
try {
boolean result = noticeService.deleteNotice(id);
if (result) {
errCode = "&errCode=3";
} else {
errCode = "&errCode=-3";
}
} catch (Exception e) {
log.error("刪除公告出錯!", e);
}
return "redirect:notice.do?method=noticeList" + errCode;
} 前臺 errCode = "?errCode=-15"; return backUrl + errCode;方法
String errCode = "&errCode=5";error