HTML5的localStorage数据库有大小限制。标准大小为每个域5或10MB。建议每个源限制为5MB。
以下内容已说明−
User agents should guard against sites storing data under their origin's other affiliated sites, e.g. storing up to the limit in a1.example.com,a2.example.com, a3.example.com, etc, circumventing the mainexample.com storage limit.
对于尺寸限制 −
A mostly arbitrary limit of five megabytes per origin is suggested. Implementation feedback is welcome and will be used to update this suggestion in the future.
Atas ialah kandungan terperinci HTML 5本地存储子域的大小限制. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!