2.消费者的项目: index.html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> index1 <a href="/hello.do">test jump 跳转</a><br> <a href="/hello1.do">test DB数据库</a><br> <a href="/getObj.do">test 获取数据库对象</a><br> <hr> 马克-to-win@马克java社区此表测试post <form action="insertObj" method="post"> 姓名:<input type="text" name="markname" placeholder="用户名" /><br /> <button type="submit" >提交</button> </form> <hr> 此表测试put(The other HTTP methods (i.e. other than GET and POST) are not available in HTML 4.1 or XHTML 1.0. 也就是说实际上HTML5以前,FORM都仅支持GET和POST。所以用post模拟put) <form action="updateObj" method="post"> 姓名:<input type="text" name="markname" placeholder="用户名" /><br /> <button type="submit" >提交</button>
更多请见:https://blog.csdn.net/qq_44639795/article/details/96269282
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。