1
我试图重定向本地存储密钥的值的用户,但它似乎不工作。JS:Window.location本地存储密钥的值
现在这个工程:window.location = "http://google.com"
但这并不:window.location = localStorage.getItem('key1')
的键1的值是http://google.com ...
是否不起作用,因为localStorage的不采取://
作为一个字符串或者类似的东西?
非常感谢
我已经这样做了,正如我所提到的,key1的值是http://google.com ... – jQuerybeast
您使用的浏览器是哪个版本?在firefox 7.0.1中,我看到http://google.com。 –