
Ajax
舍予大可
这个作者很懒,什么都没留下…
展开
-
折叠(隐藏)页面1
效果图:展开前:2,展开后:1,使用了 collapse<div class="menu"> <span class="glyphicon glyphicon-thumbs-up icon"></span> <span class="glyphicon glyphicon-comment icon" th:data-id="${原创 2020-05-21 17:56:53 · 344 阅读 · 0 评论 -
不刷新页面登录
功能:用户评论的时候,检测到未登录,跳出弹框提示登录,登陆后自动关闭登录页面,留在评论页面。js代码:function post() { var questionId = $("#question_id").val(); var content = $("#comment_content").val(); $.ajax({ type: "POST", url: "/comment", /*要提交到的地址*/ contentType:原创 2020-05-14 16:07:46 · 358 阅读 · 0 评论 -
SpringBoot使用Ajax
目录结构:功能模块:提交问题(使用ajax,局部刷新)前端//要导入对应的js!()<!--评论区--> <hr class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" id="comment_section"> <!--评论人的信原创 2020-05-13 20:33:02 · 1149 阅读 · 0 评论