web网页和服务器的数据传输问题(jsp和servlet)
web网页和服务器的数据传输问题(jsp和servlet)
学生一枚如有不对请指出,感谢海涵。
在网页中数据的传输方式有get和post方法,所以对应的servlet的doGet和doPost就是响应前端的方法。
所以明白get和post就好了
get的传输方式的例子。
1. <a href='...'>锚点标签</a>
2. js: window.location.href="...."
3. ajax 的get方式的数据传输方式。
4. <form me
原创
2021-06-21 10:30:06 ·
312 阅读 ·
0 评论