在页面中用一个事件调用请求的方法: onClick="javascript:location.href='xxx.do?method=xxx" onClick="location.href=xxx.do?method=xxx"