【发布时间】:2013-06-19 16:15:53
【问题描述】:
<script type="text/javascript">
var email = document.write(localStorage.getItem('email'));
var pass = document.write(localStorage.getItem('pass'));
var url = document.write(document.URL);
document.location.href = url+"?email="+email+"&pass="+pass;
</script>
但是当我进入页面时,我留下了这样的网址: http://example.com/undefined?email=undefined&pass=undefined
没有发生...有人知道这个问题吗?非常感谢!
【问题讨论】:
标签: javascript get refresh