摘要:
function formatFileSize(bytes, decimalPoint = 2) { if (bytes == 0) return "0 Bytes"; let k = 1000, sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB 阅读全文
posted @ 2022-03-17 17:20
程序源说
阅读(396)
评论(0)
推荐(0)
摘要:
function capitalize(string) { return string.charAt(0).toUpperCase() + string.slice(1); } capitalize("abc"); // Abc String.prototype.capitalized = func 阅读全文
posted @ 2022-03-17 17:19
程序源说
阅读(132)
评论(0)
推荐(0)

浙公网安备 33010602011771号