码迷,mamicode.com
首页 > Web开发 > 详细

在admui中怎样上传本地文件?

时间:2019-04-15 16:18:02      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:VID   cli   onchange   OLE   vendor   styles   lin   style   onclick   

1.首先需要引入一些插件

css:

   <link rel="stylesheet" href="/vendor/blueimp-file-upload/jquery.fileupload.css">

js:

   <script src="/vendor/blueimp-file-upload/jquery.fileupload.js" data-name="fileupload" data-deps="jquery-ui"></script>

   <script src="/vendor/blueimp-file-upload/jquery.fileupload-process.js" data-name="fileupload-process" data-deps="fileupload"></script>

   <script src="/vendor/blueimp-file-upload/jquery.fileupload-image.js" data-deps="fileupload,fileupload-process"></script>

   <script src="/vendor/blueimp-file-upload/jquery.fileupload-audio.js" data-deps="fileupload"></script>

   <script src="/vendor/blueimp-file-upload/jquery.fileupload-video.js" data-deps="fileupload"></script>

   <script src="/vendor/blueimp-file-upload/jquery.fileupload-validate.js" data-deps="fileupload"></script>

   <script src="/vendor/blueimp-file-upload/jquery.fileupload-ui.js" data-deps="fileupload"></script>

   <script src="/vendor/dropify/dropify.min.js"></script>

  <script src="/js/examples/forms/dropify.js" data-deps="fileupload"></script>

   <script src="/vendor/twbs-pagination/jquery.twbsPagination.min.js"></script>

2.html:

 

<input type="file" class="form-control" id="input-pic-now" onchange="ImgUpload4()"  multiple="multiple" accept="image/*" style="display:none;" />

<a href="javascript:;" type="button" role="menuitem" class="btn btn-cropper ladda-button" onclick="$(this).prev().click()">上传附件</a>

 



在admui中怎样上传本地文件?

标签:VID   cli   onchange   OLE   vendor   styles   lin   style   onclick   

原文地址:https://www.cnblogs.com/zhang-jiao/p/10710862.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!