IE 浏览器只对服务器上的网页支持HTML LocalStorage

阅读更多

参考:http://stackoverflow.com/questions/8706006/local-storage-in-ie9-fails-when-the-website-is-accessed-directly-from-the-file-s

 

 

问题: 在做一个Oauth2 js 的 例子的时候,  Oauth2 js  通过HTML5 LocalStorage 来存储accessToken。

当在IE下,用文件路径打开html测试时,是不能使用LocalStorage。

可以使用jStorage.js 来解决 , 详情 : https://github.com/andris9/jStorage

你可能感兴趣的:(HTML5,LocalStorage,UserData)