在web开发中的href几种跳转方式

第一种:

<input name="AddDic" type="button" class="frm_btn" id="AddDic" onClick="javascript:window.location.href='<html:rewrite action="/control/product/type/manage"/>?method=addUI&parentid=${param.parentid}'" value="添加类别">

第二种:

通过onclick事件 onclick="method()"

method(){

window.location.href="xxxx.do?parame1='v1'&parame2='v2'";

第三种:form表单的提交 在action中设置值即可!第四种:在<a href=""xxxx.do?parame1='v1'&parame2='v2'">点击我</a>

posted @ 2014-09-03 20:33  tom0  阅读(1053)  评论(0)    收藏  举报