📜  localStorage.setItem multipile arra - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:38.350000             🧑  作者: Mango

代码示例1
dataObj = {
            'user_id': user_id,
            'prov'   : prov.val(),
            'mun'    : mun.val(),
            'brgy'   : brgy.val(),
            'r_code' : r_code,
            'h_class': h_classification.val()
        };
        dataObject.push(dataObj);
        localStorage.setItem('dataObject', JSON.stringify(dataObject));