javascript - 七牛js上传时如何在点击某个按钮之后才初始化uploader

WBOY
Release: 2016-06-06 20:12:51
Original
1263 people have browsed it

示例代码点击该链接:http://developer.qiniu.com/code/v6/sdk/j...
主要是想请教可以不可以在我点击某个按钮之后初始化uploader, 急

回复内容:

示例代码点击该链接:http://developer.qiniu.com/code/v6/sdk/j...
主要是想请教可以不可以在我点击某个按钮之后初始化uploader, 急

最好就是不好用官方的demo 小小的一个上传功能 引了一个那么大的包 好脏啊。 推荐的2个解决方案,1个是是每次要上传的时候请求服务端获取uptoken。用formData上传即可。 第二种直接传到服务器,让服务器的再发到七牛

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!