且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

获取 index.html 响应头

更新时间:2023-10-16 23:29:52

这取决于您如何请求该页面,如果您使用 javascript/jquery 通过 ajax 加载它,则可能:

It depends on how are you requesting that page, if you are loading it over ajax with javascript/jquery it is possible:

$.ajax({
    type: 'GET',
    url:'google.com',
    success: function(resp){
        console.log(resp.getAllResponseHeaders());
    }
});