1. Ajax:
(1) Ajax和Rest不一样,两者也不是一定得在一起使用的。Ajax是前台异步请求
(2) Ajax 可以直接和 Servlet 使用,Ajax的URL可以是Servlet 对应的 URL
(3)rest 与servlet 类似,提供请求响应,而 SpringMVC的注解方式,又与Rest 有相似的地方
2. 练习:
(1) 基于 Ajax 的异步请求、页面局部刷新
(2) 基于 Ajax 的web 聊天器
【还有没有其他方式实现web 聊天器:】
http://blog.youkuaiyun.com/elimago/article/details/1955564
http://blog.youkuaiyun.com/colayungnew/article/details/192180
http://blog.youkuaiyun.com/jptiancai/article/details/25282567
http://blog.youkuaiyun.com/ItJavawfc/article/details/36729991
3.附赠的一些书籍:
《基于J2EE的Ajax宝典》http://download.youkuaiyun.com/detail/Milozwb/303406
Ajax开发简略附源代码(http://download.youkuaiyun.com/detail/microrain/130041)
Ajax开发简略(含配文代码)http://download.youkuaiyun.com/detail/wyfaith/266216
征服Ajax web2.0 开发技术详解试读版 http://download.youkuaiyun.com/detail/chenxhcc/160464
Ajax基础教程PDF http://download.youkuaiyun.com/detail/ben0133/395205
Ajax 基础教程_图灵奖.PDF http://download.youkuaiyun.com/detail/wyh2008cb/4198841
4.练习开始: