阿西河

所有教程

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

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      插件 jQuery.droparea 中文API文档

      插件 jQuery.droparea 中文API文档 https://github.com/gokercebeci/droparea

      h1. Droparea

      droparea is a jQuery plug-in for HTML5 drag-and-drop (images and files).

      Originally it has:

      • client-side image resizing with canvas on browser option
      • data url option for sending a file/image as a text field with ajax
      • click event for browsing files

      Tested on:

      • GoogleChrome (Linux; v. 23)
      • Mozilla Firefox (Linux; v. 17)

      h2. Usage

      
        

      h2. Options available

      Note: If you want to post more data while uploading a file, you can use “data tag”. For example: @data-custom=“custom-data”@

      
      data-width,
      data-height : Optional but required for canvas resizing.
      data-crop   : Optional. This is crop option for canvas resizing. [true/false]
      data-canvas : Canvas resizing option. Default value is false.
      data-post   : Optional. This is an URL for direct posting.
      data-type   : Optional. File tld. [png, jpg, zip] Separate with coma if more than one.
      

      h2. Contributors

      • “goker.cebeci”:https://github.com/gokercebeci , the author
      • “shybovycha”:https://github.com/shybovycha , the contributor
      目录
      本文目录
      目录