• 获取内容占用磁盘空间大小

    Parameters

    • content: string

      需要获取字节大小的文本内容

    Returns number

    返回以 MB 为单位的数字

    Example

    console.log(`${getStorageSize('hello')} MB`)