一则C#简洁瀑布流代码

View页面。

复制代码 代码如下:

@{
        ViewBag.Title = "瀑布流";
        Layout = "~/Views/Shared/_Layout.cshtml";
    }
@section header{
   
        
}
 

  
  

          
      

        

              
  • 1

  •           
  • 2

  •           
  • 3

  •         

      

      
      

            

              

                  

                      

                          

                      
What's up with you

                   

              

              

                  

                      

                          

                      
What's up with you

                   

              

              

                  

                      

                          

                      
What's up with you

                   

              

              

                  

                      

                          

                      
What's up with you

                   

              

              

                  

                      

                          

                      
What's up with you

                   

              

              

                  

                      

                          

                      
What's up with you

                   

              

              

                  

                      

                          

                      
What's up with you

                   

              

              

                  

                      

                          

                      
What's up with you

                   

              

              

                  

                      

                          

                      
What's up with you

                   

              

              

                  

                      

                          

                      
What's up with you

                   

              

              

                  

                      

                          

                      
What's up with you

                   

              

              

                  

                      

                          

                      
What's up with you

                   

              

            

      

    

  


    加载中,请稍后...

  

  
 

@section scripts{
   
    }

C#服务端:

复制代码 代码如下:

public JsonResult GetData()
        {
            Random ro = new Random();

            List vListInt = new List();
            for (int i = 0; i < 12; i++)
            {
                vListInt.Add(ro.Next(400, 500));
            }
            return Json(vListInt, JsonRequestBehavior.AllowGet);
        }

你可能感兴趣的:(一则C#简洁瀑布流代码)