常用的提交action的两种种方式

 

 

1.input type="buttom" 提交:

<input type="button" value="新增" onclick="location.href='/springmvcDemo/user/insertJump.do'"/>

 

2.input type="submit" 提交

<form action="insert.do" method="post">
    id:<input type="text" name="id"/>
    name:<input type="text" name="uname"/>
    <input type="submit" value="提交"/>
</form>

 

有知道其他更实用的欢迎补充

 

补充:submit和button提交表单的区别http://flowercat.iteye.com/blog/622160

 

 

 

 

 

 

猜你喜欢

转载自fengxiaoshuang429201406254717.iteye.com/blog/2352408
今日推荐