JavaScript有哪些刷新页面的方法?

1 个回答

Coco老师 - 科普专家
擅长:编程教育

Javascript刷新页面的几种方法:

location.reload()

location.replace(location)

history.go(0)

location=location

location.assign(location)

document.execCommand('Refresh')

window.navigate(location)

document.URL=location.href