我正在用JSHint检查我的代码,我发现了以下在互联网上找不到的问题! (我正在使用jQuery.js)
Storage.prototype.setObject = function(key, value) {
'Storage' is not defined.
Storage.prototype.getObject = function(key) {
'Storage' is not defined.
Storage.prototype.setObject = function(key, value) {
this.setItem(key, JSON.stringify(value));
};
Storage.prototype.getObject = function(key) {
return JSON.parse(this.getItem(key));
};
如何解决这个问题?