📅  最后修改于: 2022-03-11 15:02:35.595000             🧑  作者: Mango
function set(){
var sendJson = JSON.stringify(allPerfume);
localStorage.setItem("allPerfume", sendJson);
}
function get() {
var getJson = localStorage.getItem("allPerfume")
if (getJson) {
allPerfume = JSON.parse(getJson);
}
}