當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
JS检查是否支持Storage
生活随笔
收集整理的這篇文章主要介紹了
JS检查是否支持Storage
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
查看效果:http://hovertree.com/code/html5/q69kvsi6.htm
代碼:
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><title>JS判斷瀏覽器Storage支持情況 - 何問起</title><base target="_blank" /><meta charset="utf-8" /> </head> <body><script>if(typeof(Storage)=="undefined"){document.write("何問起提醒:您的瀏覽器不支持Web Storage");}else {document.write("何問起提醒:您的瀏覽器可以使用Web Storage");}</script><div><br />參考:<a href="http://hovertree.com/h/bjaf/html_5_webstorage.htm" style="color:blue">Web存儲</a><br />By hovertree.com</div> </body> </html>網頁特效:http://www.cnblogs.com/roucheng/p/texiao.html
總結
以上是生活随笔為你收集整理的JS检查是否支持Storage的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 数组的简单方法
- 下一篇: 作业四 | 个人项目-小学四则运算 “软