Jump to content

how to use html5 storage in uniGUI


i2u4ever
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...