Search
Preparing search index...
The search index is not available
@gdjiami/jslib
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
"format"
External module "format"
字符串格式化
Index
Variables
GB
KB
MB
TB
Functions
format
Size
Variables
Const
GB
GB
:
number
= 2 ** 30
Const
KB
KB
:
number
= 2 ** 10
Const
MB
MB
:
number
= 2 ** 20
Const
TB
TB
:
number
= 2 ** 40
大小单位转换
Functions
format
Size
format
Size
(
size
:
number
)
:
string
格式化文件长度
example
formatSize(file.size)
Parameters
size:
number
文件大小
Returns
string
格式化后文件大小字符串
Globals
"
Event
Emitter"
"
Token
Auth
Service"
"array"
"compress"
"date"
"dom"
"format"
"function"
"geo"
"http"
"number"
"promise"
"string"
"ua"
GB
KB
MB
TB
format
Size
Generated using
TypeDoc
字符串格式化