cococreator怎么能方便的存储修改数据

比如有个对象类型的数组,现在给它存起来,然后只要修改其中的一个值,而不是全部都修改,例如:
start () {
let array=[1,2,3];
cc.sys.localStorage.setItem(“data”,JSON.stringify(array));

	console.log(JSON.parse(cc.sys.localStorage.getItem("data"))[2]);
},

怎么能修改这个array中某个索引下的值,最好不要是那种cc.sys.localStorage.setItem(“data”+“index”,JSON.stringify(array[index]));方式存储的

不能吧