English 中文(简体)
添加到地方标签目标(链条)[复制]
原标题:Adding to localStorage Object (chaining) [duplicate]
最佳回答
问题回答

储存的APICA是一种关键、价值高的垫子,两者都在铺设。 因此,它们需要编集一些知识,然后在回收时被淡化。 例如,你正在利用JSON作为(de)航空化机制。

<代码>目标 项目将永远退还所储存的座标。 在你从中除去物体之前,它必须被淡化。 您可修改本地的<代码>。 项目在内部运行和进行(de)航空化,或为您撰写<代码>地方Storage的包装。 请阅读你回答问题的其他答案。 这是其他答案。 他们没有说你<>必须使用j Query。 书写包裹非常简单。

var MyLocalStorage = {};

MyLocalStorage.getItem = function(key) {
    return JSON.parse(localStorage.getItem(key));
};

MyLocalStorage.setItem = function(key, object) {
    localStorage.setItem(key, JSON.stringify(object));
};




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签