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