|
|
|
@ -1,11 +1,3 @@
@@ -1,11 +1,3 @@
|
|
|
|
|
Storage.prototype.setObj = function(key, obj) { |
|
|
|
|
return this.setItem(key, JSON.stringify(obj)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Storage.prototype.getObj = function(key) { |
|
|
|
|
return JSON.parse(this.getItem(key)) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let game = new Vue({ |
|
|
|
|
el: '#root', |
|
|
|
|
data: { |
|
|
|
|