本節(jié)課的內(nèi)容是介紹web storage,使用它在瀏覽器里存儲(chǔ)鍵值對(duì)的數(shù)據(jù),功能上像以前的cookie一樣,不過他更好,存儲(chǔ)的數(shù)據(jù)可以更大。有兩種類型的web storage:local storage和session storage,他們使用相同的實(shí)現(xiàn)機(jī)制,只是可見性和生命周期不同。 1.使用local storage ...
www.dbjr.com.cn/html5/701...html 2025-6-11