Jump to content

how to use html5 storage in uniGUI


i2u4ever

Recommended Posts

I want to call JavaScript function in uniGUI.

 

<script type="text/javascript">

 

function setItem(key, value) {

  localStorage.setItem(key, value);

}

 

function getItem(key) {

  return localStorage.getItem(key);

}

</script>

 

Can I call JavaScript function in uniGUI?

After calling setItem('test_key", "test_value") in uniGUI,

can i get "test_value" by calling getItem("test_key") in uniGUI?

 

Bets Regards.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...