jquery AJAX在springboot项目中的使用

项目代码:https://github.com/guocanzhen/jQueryAjaxJavaWeb

数据库:

 

 注:

1、在使用Http的URL访问html页面时,需要导入themeleaf

2、ajax使用需导入jQuery脚本

https://jquery.com/download/

生产版本:Download the compressed, production jQuery 3.5.1

开发版本:Download the uncompressed, development jQuery 3.5.1

3、ajax中success的function(result),result为后台定义的数据类型对象,前端处理时需要根据该数据类型处理。

具体的使用请下载项目,创建数据库表进行学习。

posted @ 2020-05-24 14:49  幻影黑子  阅读(1768)  评论(0)    收藏  举报