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