Authored by yyq

上传组件

... ... @@ -48,6 +48,7 @@ function getResponse(cb) {
if (num > 20 || res) {
uping = false;
$filename.val('');
clearInterval(inter);
}
... ... @@ -63,9 +64,11 @@ function getResponse(cb) {
}
$filename.change(function() {
uping = true;
$upload.submit();
getResponse(callback);
if ($(this).val()) {
uping = true;
$upload.submit();
getResponse(callback);
}
});
exports.up = up;
... ...