阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      插件 jQuery.Upload File 中文API文档

      插件 jQuery.Upload File 中文API文档 https://github.com/hayageek/jquery-upload-file

      jQuery Upload File

      Overview

      jQuery Upload File plugin provides Multiple file Uploads with progress bar.Works with any server-side platform (Google App Engine, PHP, Python, Ruby on Rails, Java, etc.) that supports standard HTML form file uploads.


      Demo

      http://hayageek.com/docs/jquery-upload-file.php


      Documentation

      http://hayageek.com/docs/jquery-upload-file.php#doc

      jQuery File UPload plugin provides Multiple file uploads with progress bar. jQuery File Upload Plugin depends on Ajax Form Plugin, So Github contains source code with and without Form plugin.

      1). Add the CSS and JS files in the head sections

      <link href="http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css" rel="stylesheet">
      <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
      <script src="http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js"></script>
      
      

      2). Add a div to body to handle file uploads

      <div id="fileuploader">Upload</div>
      

      3). Initialize the plugin when the document is ready.

      <script>
      $(document).ready(function()
      {
      	$("#fileuploader").uploadFile({
      	url:"YOUR_FILE_UPLOAD_URL",
      	fileName:"myfile"
      	});
      });
      </script>
      
      目录
      本文目录
      目录