uploadify多次加载导致页面无法加载

function upld() {

    $('#file_upload').uploadify({

        'formData'     : {'seccode':'<?php echo get_cookie('auth')?>'},

        'swf'      : '<?php echo site_url(JS_ROOT.'uploadify/uploadify.swf');?>',

        'uploader' : '<?php echo site_url('upload/uploadsave');?>',

        'auto'     : true,

        'removeCompleted': false,

        'debug':true,

        'buttonImage':'<?php echo site_url(IMAGE_ROOT.'sns/stupload.gif');?>',

        'width':240,

        'height':100,

        'buttonText':'',

        'fileTypeExts':'*.jpg;*.gif;*.png;*.jpeg;',

        'fileSizeLimit' : '4MB',

        'queueSizeLimit':uploadcount,

        'removeTimeout': 0,

        'successTimeout': 300,

        'overrideEvents':['onSelect'],

        'onSelect' : function(file) {

            

        },

        'onUploadStart' : function(){

            

        },

        'onUploadSuccess' : function(file,data,response) {

            



            uploadcount = uploadcount-1;

            $('#file_upload').uploadify('settings','queueSizeLimit',uploadcount);



            $('#attaction').html("单次可以批量上传10件作品,您已经上传了 "+(10-uploadcount)+" 件作品。");

        },

        'onQueueComplete' : function(queueData) {

            //可做自动跳转

            if(uploadcount > 0) {

    

            }

        }

    });

}    

 

你可能感兴趣的:(uploadify)