ajax通過url傳遞大量參數后台無法獲取的處理方法


 1 var id;//非常長的拼接成的id
 2 //var url = "/Action/Method?ids=id ;//原來的直接將id放在url中
 3 
 4 var url = "/Action/Method";
 5 $.ajax({
 6 type: "post",
 7 url: url,
 8 datatype: "text",
 9 data:"IDs="+id
10 });
11 
12 public ActionResult Update()
13 {
14 string ids = Request["IDs"];//獲取id
117 css.Update(ids);
18 
19 return View();
20 }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM