mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
add a localstorage test
This commit is contained in:
parent
59d2986054
commit
688184c80a
1 changed files with 10 additions and 0 deletions
10
public/f/localstorage.html
Normal file
10
public/f/localstorage.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!doctype html>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<p align=center id=out></p>
|
||||
<script>
|
||||
var x = Number(localStorage['test'] || 0)
|
||||
document.getElementById('out').innerHTML = x
|
||||
x += 1
|
||||
localStorage['test'] = x
|
||||
</script>
|
||||
|
||||
Loading…
Reference in a new issue