w2ui
Home
Get started
Demos
Docs
Blog
Support
Layout
Grid
Toolbar
Sidebar
Tabs
Form
Popup
Utilities
ver 1.3
ver 1.4
ver 1.5
ver 2.0
Utilities
Overview
Properties
Methods
Other
Events
Extending
w2utils.formatSize
Formats a number as file size.
formatSize(val)
val
string
or
number
, a number to format
The
val
argument should be an integer. The method will return size in Bt or KB or MB or GB or TB depending on the size
w2alert(w2utils.formatSize('49958439'));
User Comments
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus