特點:
1.不依賴與jquery
2.而且,好看些吧..支持很多實例,上傳成功後.會有一個回調函數.比如縮略圖地址顯示出來
用法:
. 代碼如下:
<link href="http://fineuploader.com/source/fineuploader-3.9.1.min.css" rel="stylesheet" />
<script src="http://fineuploader.com/source/fineuploader-3.9.1.min.js"></script>
. 代碼如下:
var thumbnailuploader = new qq.FineUploader({
element: $('#thumbnail-fine-uploader')[0],
request: {
endpoint: 'Uploadimg'
},
validation: {
allowedExtensions: ['jpeg', 'jpg', 'gif', 'png']
},
callbacks: {
onComplete: function (id, fileName, responseJSON) {
if (responseJSON.success) {
//alert(responseJSON.guidimg);
$('#logo').val(responseJSON.guidimg);
$('#thumbnail-fine-uploader').append('<img id="logoimg" style="width:200;hight:300px;" src="' + responseJSON.imgurl + '" alt="' + responseJSON.guidimg + '">');
}
}
}
});