📅  最后修改于: 2022-03-11 15:01:32.199000             🧑  作者: Mango
if (window.location.search === '') {
window.location = window.location.origin + '?arg=1'
} else {
window.location = window.location.origin + window.location.search + '&arg=1'
}