HTML5¼¼Êõ

.NetCoreÉÏ´«¶àÎļþµÄ¼¸ÖÖʾÀý - ÉñÅ£²½ÐÐ3(5)

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-04-11 18:00 ÎÒÒªÆÀÂÛ( )

1 [HttpPost] 2 public JsonResult ProgresBar03() 3 { 4 var bars = new ListMoBar (); { 7 bars = _cache.GetListMoBar (cacheKey03); 8 } 9 catch (Exception ex) 10 { 11 } 12 return Json(bars); 13 } ÕâÀïÔÙ

1 [HttpPost] 2 public JsonResult ProgresBar03() 3 { 4 var bars = new List<MoBar>(); { 7 bars = _cache.Get<List<MoBar>>(cacheKey03); 8 } 9 catch (Exception ex) 10 { 11 } 12 return Json(bars); 13 }

ÕâÀïÔÙ¸ø³öÉÏ´«½ø¶ÈµÄʵÌåÀࣺ

MoData 2 { 0£ºÊ§°Ü 1£ºÉÏ´«ÖÐ 2:³É¹¦ Status { get; set; } Msg { get; set; } 9 } MoBar : MoData 12 { ÎļþÃû×Ö FileName { get; set; } µ±Ç°ÉÏ´«´óС CurrBar { get; set; } ×Ü´óС TotalBar { get; set; } ½ø¶È°Ù·Ö±È PercentBar 32 { { ; 36 } 37 } 38 }

View Code

µ½´ËtaskÈÎÎñ´¦ÀíÉÏ´«ÎļþµÄ·½Ê½¾ÍÍê³ÉÁË£¬Õ¦ÃÇÀ´¿´Í¼¿´Ð§¹û°É£º

Äܹ»Í¨¹ýʾÀý3ºÍ4µÄЧ¹ûͼ¶Ô±È³ö£¬Ã»Ê¹ÓÃTaskºÍʹÓõÄЧ¹ûÇø±ð£¬ÕâÑùЧ¹ûÄúÖµµÃÓµÓУ¬ÄÍÐĶÁÍê±¾ÎÄÄÚÈݵÄÅóÓÑ£¬Ã»ÈÃÄãʧÍû°É£¬Èç¹û¿ÉÒÔ²»·Áµã¸ö"ÔÞ"»òɨ¸öÂëÖ§³ÖÏÂ×÷Õߣ¬Ð»Ð»£»ÄÚÈÝ×îºó¸½ÉϾßÌå²âÊÔÓÃÀý´úÂ룺.NetCoreÉÏ´«¶àÎļþµÄ¼¸ÖÖʾÀý

¡¡

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

Ïà¹ØÎÄÕÂ
  • HTML5±¾µØͼƬ²Ã¼ô²¢ÉÏ´« - QxQstar

    HTML5±¾µØͼƬ²Ã¼ô²¢ÉÏ´« - QxQstar

    2017-03-25 14:00

  • 30·ÖÖӸ㶨ºǫ́µÇ¼½çÃ棨103¸öºǫ́PSDÔ´Îļþ¡¢ËزÄÍøÕ¾£© - ÕŹû

    30·ÖÖӸ㶨ºǫ́µÇ¼½çÃ棨103¸öºǫ́PSDÔ´Îļþ¡¢ËزÄÍøÕ¾£© - ÕŹû

    2017-03-21 10:00

  • FormData+Ajax ʵÏÖ¶àÎļþÉÏ´« ѧϰʹÓÃFormData¶ÔÏó - ÌìÇàÉ«µÄÎ÷¹ÏÓ¨

    FormData+Ajax ʵÏÖ¶àÎļþÉÏ´« ѧϰʹÓÃFormData¶ÔÏó - ÌìÇàÉ«µÄÎ÷¹Ï

    2017-03-08 18:01

  • ASP.NET Core MVCÉÏ´«¡¢µ¼Èë¡¢µ¼³öÖª¶àÉÙ - Jeffcky

    ASP.NET Core MVCÉÏ´«¡¢µ¼Èë¡¢µ¼³öÖª¶àÉÙ - Jeffcky

    2017-03-02 18:01

ÍøÓѵãÆÀ
Ú