js怎么获取当前页的头部信息var xhr = new XMLHttpRequest()xhr.open("GET", window.location.pathname + window.location.search, true)xhr.send2023-04-24JavaScript340