# uploader **Repository Path**: hippor/uploader ## Basic Information - **Project Name**: uploader - **Description**: 上传控件 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 通用上传控件 ## 使用说明 ### script引入方式 ```html
``` ```javascript var UPLOADER_PATH = 'http://localhost:8080/upload' var uploader = new Uploader({ path: UPLOADER_PATH, btnEl: document.getElementById('uploader-button'), filesEl: document.getElementById('filelist'), env: 'web', // 'web' > 'mobile' theme: 'default', options: { auto: false, md5: true, type: 'ws', // 'ws'>'http'>'flash'. default: 'ws' queued: '2', ticket: 'bearer bxxx' } }) uploader.on('progress', (file, index) => {}) uploader.start() ```