Since localStorage
(currently) only supports strings as values, and in order to do that the objects need to be stringified (stored as JSON-string) before they can be stored, is there a defined limitation regarding the length of the values.(由于localStorage
(当前)仅支持将字符串作为值,并且为了做到这一点,需要先将对象进行字符串化(存储为JSON-string),然后才可以定义值的长度限制。)
Does anyone know if there is a definition which applies to all browsers?(有谁知道是否存在适用于所有浏览器的定义?)
ask by Codekie translate from so