修改项目结构,还有些混乱。

This commit is contained in:
virusdefender
2015-07-31 23:23:15 +08:00
parent c6d6b13072
commit 26dab5bd91
93 changed files with 48009 additions and 10 deletions

View File

@@ -0,0 +1,20 @@
define("uploader", ["webuploader"], function(webuploader){
function uploader(selector) {
return webuploader.create({
// swf文件路径
swf: "/js/Uploader.swf",
// 文件接收服务端。
server: "http://webuploader.duapp.com/server/fileupload.php",
// 选择文件的按钮。可选。
// 内部根据当前运行是创建可能是input元素也可能是flash.
pick: selector,
// 不压缩image, 默认如果是jpeg文件上传前会压缩一把再上传
resize: false
});
}
return uploader;
});