Exigences : Obtenez l’utilisation du disque, vous pouvez intuitivement voir l’utilisation du disque dur en arrière-plan, pas besoin de vous connecter au serveur pour la consulter, écrire votre propre code,Pas en copier-coller en ligne。
Les rendus sont les suivants :
{ « succès » : faux, « code » : 200, « message » : « itsvse.com », « data » : [{ « nom » : « C :\\ », « totalSize » : 161236381696, « totalSizeString » : « 150,16 Go », « totalUsedSpace » : 86086381568, « totalUsedSpaceString » : « 80,17 Go », « totalFreeSpace » : 75150000128, « totalFreeSpaceString » : « 69,99 Go », « pourcentage » : « 53 % » }, { « nom » : « D :\\ », « totalSize » : 785173704704, « totalSizeString » : « 731,25 Go », « totalUsedSpace » : 209646657536, « totalUsedSpaceString » : « 195,25 Go », « totalFreeSpace » : 575527047168, « totalFreeSpaceString » : « 536 Go », « pourcentage » : « 27 % » }, { « nom » : « H :\\ », « totalSize » : 104853504, « totalSizeString » : « 100 Mo », « totalUsedSpace » : 34779136, « totalUsedSpaceString » : « 33,17 Mo », « totalFreeSpace » : 70074368, « totalFreeSpaceString » : « 66,83 Mo », « pourcentage » : « 33 % » }, { « nom » : « V :\\ », « totalSize » : 53686038528, « totalSizeString » : « 50 Go », « totalUsedSpace » : 7382994944, « totalUsedSpaceString » : « 6,88 Go », « totalFreeSpace » : 46303043584, « totalFreeSpaceString » : « 43,12 Go », « pourcentage » : « 14 % » }]
} Le code est le suivant :
|