开源中国 2018 年度最后一场技术盛会邀你来约~错过就要等明年啦!点此立即预约

Cweili / plupload-commonjsJavaScript

Watch 1 Star 0 Fork 0
加入码云
与超过 300 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
Port of Plupload to CommonJS 展开 收起

Cweili 最后提交于 update readme
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README.md

Plupload CommonJS

Port of Plupload to CommonJS.

Use Plupload with Browserify or Webpack.

See original README.

Usage

const plupload = require('plupload');
const uploader = new plupload.Uploader({
  browse_button: 'browse', // this can be an id of a DOM element or the DOM element itself
    url: 'upload.php'
});
uploader.init();

Contribution

plupload.dev.js

modify

window.plupload = plupload;

to

module.exports = plupload;

moxie.js

add

module.exports = o;

after

// expose globally
exports.mOxie = o;
if (!exports.o) {
  exports.o = o;
}

点评 ( 0 )

你可以在登录后,发表评论

搜索帮助