Local Storage Ha

Source URL: N/A

Language: javascript

Created on: 2020-08-08 16:23:21


function set(){
    var sendJson = JSON.stringify(allPerfume);
    localStorage.setItem("allPerfume", sendJson);
}

function get() {
    var getJson = localStorage.getItem("allPerfume")
    if (getJson) {
        allPerfume = JSON.parse(getJson);
    }
}
Local Storage Ha
content_copy