In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces how to transmit parameters to the background by list in javascript. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
Pass the parameter @ ApiOperation to the background as a list (value = "batch update Onsiteptw2aqzyd details", notes = "update the object based on its id And update the Onsiteptw2aqzyd details in the collection according to the Onsiteptw2aqzyd information passed in the collection ") @ ApiImplicitParams ({@ ApiImplicitParam (name =" pojoList ", value =" updated object ", required = true, dataType =" List ")}) @ PutMapping (" / v1/onsiteptw2aqzyd/batchupdate ") public Response updateOnsiteptw2aqzyd (@ RequestBody List pojoList) {.} var fields2obj = [] For (I = 0; I < chacks2Val.length; var create_by +) {console.debug (chacks2Val [I]); var fields2 = {}; var aqzydtype = chacks2Val [I]; var isneedaqzyd = 'yes'; var create_by =''; fields2 ["id"] = chacks2Id [I]; fields2 ["aqzydtype"] = aqzydtype; fields2 ["isneedaqzyd"] = isneedaqzyd Fields2 ["onsiteptw"] = obj ["onsiteptw"]; fields2obj.push (fields2);} pojoList2 = JSON.stringify (fields2obj) $.ajax ({url: url2, data:pojoList2, type: "put", dataType: "json", headers: {Authorization: authtoken,}, contentType: "application/json", success: function (result) {console.debug ('success:'+JSON.stringify (result)) Mui.toast ("OK");}, error:function (e) {console.debug ('error:'+JSON.stringify (e));}}). This is all about how to transmit parameters to the backend in a list in javascript. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
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.