那啥,想下载文件的得先让吧主把资料分类,还有想增加上传文件功能的,在地址处复制以下代码就行了0 0
javascript:function fact(n){return n>1?n*fact(n-1):1;}RichPostor.prototype._init_idisk=function(){var gl=this._option.bavl;alert('\u006d\u0069\u006b\u0075\u5427\u6700\u6709\u7231\u4e86');try{this._option.userInfo.user.power.idisk=true;}catch(e){}this._option.open_idisk=true;this._option.power_idisk=true;this._option.upload_max_length=(gl>8?3:(gl>6?2:(gl>4?1:0)));this._option.upload_max_size=21474836479;this._editor.addPlugin("idisk",new TED.EditorPlugins.IdiskPlugin(true,this._data_postor.fid,this._option.upload_max_length,this._option.upload_max_size));this._editor.on("idisk_upload_complete",function(e){var h=this.getPostorDataObj("files");h=h||[];h.push({name:e.name,size:e.size,bucket:e.bucket,md5:e.md5,fileid:e.fileid});this.setPostorDataObj("files",h)},this);this._editor.on("idisk_remove_file",function(l){var k=this.getPostorDataObj("files");if(!k){return}for(var h=0,e=k.length;h<e;h++){if(k[h]["bucket"]===l){k.splice(h,1);if(k.length===0){this.setPostorData("files",undefined)}else{this.setPostorDataObj("files",k)}return}}},this)};rich_postor._init_idisk();