private function formatBytes($size){
$units = array('字节','K','M','G','T');
$i = 0;
for( ; $size>=1024 && $i<count($units); $i++){
$size /= 1024;
}
return round($size,2).$units[$i]; }
private function formatBytes($size){
$units = array('字节','K','M','G','T');
$i = 0;
for( ; $size>=1024 && $i<count($units); $i++){
$size /= 1024;
}
return round($size,2).$units[$i]; }