📜  在 javascript 代码示例中加载新页面

📅  最后修改于: 2022-03-11 15:03:39.283000             🧑  作者: Mango

代码示例1
// Cross browser compatable redirect
window.location.href = url;

// Short hand not supported by all browsers
window.location = url;

// Set the location of the topmost window of the current window.
top.location = url;