suggest.js 618 Bytes
/**
 * 个人中心--意见反馈
 * @author: chenglong<chenglong.wang@yoho.cn>
 * @date: 2015/11/12
 */


var $ = require('jquery'),
    Hammer = require('yoho.hammer'),
    lazyLoad = require('yoho.lazyload');

require('./jquery.uploadifive');

$('#upload-img').uploadifive({
    auto: true,
    buttonClass: 'nav-btn',
    fileType: 'image/*',
    uploadScript: '/home/suggestimgUpload',
    fileObjName: 'fileData',
    fileSizeLimit: 1024,
    onAddQueueItem: function (file) {
        console.log(file);
    },
    onQueueComplete: function (file) {
        console.log(file);
    }
});