趁着近段的空闲时间,开发任务不是很重,就一直想把以前在仓促时间里所写的多文件上传功能改一下,在网上找了很多例子,觉得uploadify还可以,就想用它来试试。实现自己想要的功能。根据官网的开发文档,同时借鉴别人的经验,经过断断续续的修改(中间一直被安排其它事),把uploadify默认的样式改,同时把共性都封装了一下,最终完工了。

     1.在_Layout.cshtml 页面中引入js文件和CSS文件:

1 @*-------上传文件--------*@
2     <link href="@Url.Content("~/Scripts/uploadify/css/uploadify.css")" rel="stylesheet" />
3     <script src="@Url.Content("~/Scripts/JSScript/upload.js")"></script>
4     <script src="@Url.Content("~/Scripts/uploadify/jquery.uploadify.min.js")"></script>
5 <script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script>
引入文件

相关文章:

  • 2022-12-23
  • 2022-01-31
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
猜你喜欢
  • 2021-11-05
  • 2021-10-08
  • 2021-12-28
  • 2022-02-12
相关资源
相似解决方案