我有这样的代码,window.location不能与window.location.href一起使用?
$('.editLayout #changeLayout').click(function() {
$('html').height($(document).height());
$('#fluidWrap').hide('scale');
$.ajax({
data: {
mainLayout: true
},
success: function() {
alert(window.location.href);
window.location = window.location.href;
}
});
return false;
});
当alert
回报我得到一个散列一个例子是一个有效的URL,
http://www.example.com/edit#_layout
但也不会刷新页面,如果我打F5尽管页面正常刷新。
任何想法?
似乎没有工作,可能是造成这种情况,它是在工作之前,但没有哈希标签。 – cgwebprojects 2012-04-01 20:24:47
您试过哪个浏览器? Chrome? – safarov 2012-04-01 20:25:29
叶铬,我在铬首先测试然后其他人 – cgwebprojects 2012-04-01 20:26:35