How to determine the size in bytes of a Javascript UTF-16 string

后端 未结 0 1896
庸人自扰
庸人自扰 2021-02-06 11:09

In a Firefox addon I am caching lengthy strings to disk. I would like to be able to give users some idea of how much disk space in bytes these strings are taking up.

I u

相关标签:
回答
  • 消灭零回复
提交回复
热议问题