In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
JQuery how to use Ajax to export reports, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.
Using Ajax to send Get request
Js code
$.ajax ({type: "GET", url: encodeURI ("http://localhost:8080/a?dd=" + dayinList+"), beforeSend: function () {}, success: function (msg) {}, error: function () {})
Background code
@ RestControllerpublic class LogDownloadApi {@ GetMapping ("/ a") public void cs (@ RequestParam ("dd") String aa) {System.out.println (aa);} send POST requests using Ajax
Js code
Ajax ({type: "POST", url: "http://localhost:8080/logDownload", data: JSON.stringify ({logList: dayinList,// data List logName:" logName "/ / data String}), contentType:" application/json ", dataType:" json " Success: function (msg) {/ / successful execution}, error: function () {/ / failed execution}})
Background code
@ RestControllerpublic class LogDownloadApi {@ PostMapping ("/ logDownload") public void ajaxPost (@ RequestBody Map map) {System.out.println (map);}} export the report using the POST request
Js code
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.