<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
没有发生......有人知道这个问题吗?非常感谢!