apexUpload flash上传控件

简单易用的flash附件上传,使用jquery封装调用。


/*
* apexUpload
* version: 1.0.0 (24/05/2015)
* @ jQuery v1.3.*
* usage as:
*
* html:





init javascript:
$('#uploadBtn').apexUpload({
path: 'res/plugin/apexUpload/ApexUpload.swf',
name:"apexUpload",
"uploadUrl":"http://localhost:8090/apexUploadDemo/FlexUploadServlet",
"cookies":"JESSIONID=<%=request.getSession().getId()%>",
"allowFiles":[{"name":"所有文件(*.*)","type":"*.*"}],
uploadProgress:function(p){
$("#result").append(p+"->");
},
uploadComplete:function(result){
$("#result").append(result);
}
});
$('#uploadBtn').apexUpload("enabled");
$('#uploadBtn').apexUpload("disabled");
* Copyright 2015.05.24 LYM [ [email protected] ]
*/

你可能感兴趣的:(JS,Flex)