`

常用的提交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

 

 

 

 

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics