最終更新:2018-02-18 (日) 05:03:41 (184d)  

localStorage はてなブックマークを見る
Top / localStorage

localStorage['key'] = 'value';
var value = localStorage['key'];
delete localStorage['key'];
localStorage.clear();

//以下は同じ意味。
localStorage.setItem("foo","bar");
localStorage.foo = "bar";
localStorage[foo] = "bar";

メソッド

容量

関連

参考