zoukankan      html  css  js  c++  java
  • JS Post 传参

    JS Post 传参

    1 $.post("/Article/GetMoreChildComment", { articleid: articleId, prentcommentid:prentcommentid, page: childpage, pagesize: childpagesize }, function (result) {
    2             childcomments = result.result;
    3             debugger;
    4             setTimeout(setchildcomment(thisa, index),2000);
    5             childpage++;
    6         });

    Controller 接受并返回参数

     1         /// <summary>
     2         /// 获取评论子评论
     3         /// </summary>
     4         /// <param name="articleid"></param>
     5         /// <param name="prentcommentid"></param>
     6         /// <param name="page"></param>
     7         /// <param name="pagesize"></param>
     8         /// <returns></returns>
     9         [HttpPost]
    10         public JsonResult GetMoreChildComment(long articleid,long prentcommentid, int page, int pagesize)
    11         {
    12 
    13             List<ChildCommentDto> model = _commentManeger.GetChildCommentListByParentId(articleid, prentcommentid, page, pagesize, "CreationTime DESC");
    14             return Json(model);
    15         }
  • 相关阅读:
    性能百万/s:腾讯轻量级全局流控方案详解
    Swagger2
    shiro 入门
    01、单例模式
    02、工厂方法
    04、模板模式
    13、Adapter 适配器
    14、迭代器
    Java 面向切面 AOP
    spring boot 中使用 Redis 与 Log
  • 原文地址:https://www.cnblogs.com/yishilin/p/7411534.html
Copyright © 2011-2022 走看看