文件大小单位换算
function sizeConversion(size){
if (size < 1024) {
size = size.toFixed(2) + "B";
}else if (size < 1048576) {
size = (size / 1024).toFixed(2) + "K";
}else if (size < 1073741824) {
size = (size / 1048576).toFixed(2) + "M";
}else {
size = (size / 1073741824).toFixed(2) + "G";
}
return size;
}