window.location =和window.location.replace()有什么区别?
这两条线之间有区别吗?
var url = "http://www.google.com/";
window.location = url;
window.location.replace(url);
相关分类