Skip to main content Link Search Menu Expand Document (external link)

Read and Save Data

$.store.global ( …keys )

global variables can be read using this api

function myChanedMethod(){
    return $.store.global('key1','key2').then(function({key1,key2}){
      console.log(key1,key2);
    });
}
/// Alternativly

async function myChanedMethod(){
    let { key1 ,key2} = await $.store.global('key1','key2');
    console.log(key1,key2);
}

$.store.local ( …keys )

local variables can be read using this api

async function myChanedMethod(){
    let { key1 ,key2} = await $.store.local('key1','key2');
    console.log(key1,key2);
}

$.store.local.set ( key, value )

local variable can be stored using this api

async function myChanedMethod(){
    let key1 = await $.store.local.set('key1',"My Variable Value");
    console.log(key1);
}

$.store.local.get ( key )

local variable can be read using this api

async function myChanedMethod(){
    let key1 = await $.store.local.get('key1');
    console.log(key1);
}

Table of contents