PHP
·
发表于 6年以前
·
阅读量:8496
function redirect(url, asLink = true) {
asLink ? (window.location.href = url) : window.location.replace(url);
}