//key:value|key:value var windowStorage = {
_inited: false,
_data: {},
init: function(str) {
this._inited = true;
if (str && typeof str == 'string') {
tmpData Data.length; i kv = tmpData[i].split(':');
value = unescape(kv[1]);
這個._data[key] = value;
}
} else if (typeof 字符串> }
},
read: function(key) {
if (!this._inited) {
🎜> return this._data [鍵];
},
write: function(key, value) {
var str = [];
請在寫入前初始化。
}
k) ':' escape(this._data[k ) ]) );
}
window.name = str.join('|');
}
};