jQuery¼¼Êõ

jquery datatables ѧϰ±Ê¼Ç(2)

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-02-12 14:03 ÎÒÒªÆÀÂÛ( )

[HttpGet] public string GetUserList(){ re = new UserRequest(); ( ]))re.PageSize = 10 ; else re.PageSize = ]); ( ]))re.PageIndex = 1 ; else re.PageIndex = (]) / re.PageSize) + 1 ; (! ]))re.Division =

[HttpGet] public string GetUserList() { re = new UserRequest(); (])) re.PageSize = 10; else re.PageSize = ]); (])) re.PageIndex = 1; else re.PageIndex = (]) / re.PageSize) + 1; (!])) re.Division = Request[]; ])) re.User_Ename = Request[]; (!]) && !])) re.OrderBy = Request[(+ Request[])]; re.OrderBy = Request[()]; (!])) re.Isdesc=(Request[]==?true:false); var result = new DataResult(); var data = this.AccountService.GetUserList(re);//»ñÈ¡Êý¾ÝµÄ·½·¨ result.recordsTotal = data.TotalItemCount; result.recordsFiltered = data.TotalItemCount; result.data = data; return JsonConvert.SerializeObject(result); } public class UserRequest : Request { public UserRequest() { Isdesc = false; } public string User_Ename { get; set; } public string Division { get; set; } public bool IsValid { get; set; } public long User_ID { get; set; } public string OrderBy { get; set; } public bool Isdesc { get; set; } } public class DataResult { public int draw { get; set; } public int recordsTotal { get; set; } public int recordsFiltered { get; set; } public object data; }

»ù±¾¾ÍÕâЩÁË¡£ºÙºÙ£¬±¾È˼¼ÊõÏ¡À㬴óÉñ¼ûЦÁË¡£

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • jQueryѧϰ´ó×ܽá(ËÄ)jQueryʼþ

    jQueryѧϰ´ó×ܽá(ËÄ)jQueryʼþ

    2017-02-12 16:02

  • BootstrapºÍjQuery UIÊÇͬһÀàµÄ¶«Î÷Âð£¿

    BootstrapºÍjQuery UIÊÇͬһÀàµÄ¶«Î÷Âð£¿

    2017-02-12 08:09

  • What¡¯s New In jQuery 3 : 17 Added Features amp; How To Use T

    What¡¯s New In jQuery 3 : 17 Added Features amp; How To Use T

    2017-02-11 18:01

  • WebÇ°¶ËÃæÊÔÌ⣺ʲôÊÇjQuery EasyUI£¿

    WebÇ°¶ËÃæÊÔÌ⣺ʲôÊÇjQuery EasyUI£¿

    2017-02-11 16:00

ÍøÓѵãÆÀ
Ã