zoukankan      html  css  js  c++  java
  • 在admui中怎样上传本地文件?

    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>


  • 相关阅读:
    SpringMVC简单总结-day02
    SpringMVC简单总结-day01
    SpringMVC通过Ajax处理数据,出现406问题
    Java特殊时间格式转化
    PyQuery用法详解
    解决:CentOS 7下yum install mysql-server无包可用问题
    数据库编程接口
    python高级文件操作
    python生成随机数、随机字符串
    【转】错误日志ID8021来源BROWSER导致电脑死机
  • 原文地址:https://www.cnblogs.com/zhang-jiao/p/10710862.html
Copyright © 2011-2022 走看看