91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Chrome開發者工具里的一個隱藏技能:chrome://net-internals

發布時間:2020-08-07 19:18:08 來源:ITPUB博客 閱讀:196 作者:i042416 欄目:web開發

During my holiday I was writing a small tool for fun, which extracts my personal posts from  http://www.  for further analysis. I am using AJAX in jQuery to perform a synchronous call to fetch html source code of given url specified by argument requestURL.、

function getPostByAJAX(requestURL){
   var html = $.ajax({
    url: requestURL,
    async: false}).responseText; 
   return html;}

The requestURL I am using is  http:// tie http:// tb/error.html?ErrType=1 ” give me a reminder that this issue might be related to logon state of BAIDU website, since I would like to return my personal information, it makes sense that the url can only return personal data if cookie is available or user credential is specified ( not supported by BAIDU in this case ). In order to verify my assumption, I request the url directly in Chrome and check its request header fields this time, and yes, the cookie field is there:


Chrome開發者工具里的一個隱藏技能:chrome://net-internals


So now the question is, how to send my cookie information together with the AJAX call in JavaScript code? I found  this article from Google. According to the article, I add the following code in my function:


Chrome開發者工具里的一個隱藏技能:chrome://net-internals


And it works now:


Chrome開發者工具里的一個隱藏技能:chrome://net-internals


By the way, via this tool I can also figure out how the jQuery library file jquery1.7.1.js stored in local laptop is loaded by Chrome. Chrome reads this file by chunks with size 32768 ( the file consists of 8 chunks ).


Chrome開發者工具里的一個隱藏技能:chrome://net-internals


The total size 251661 matches exactly with the number I see in windows, perfect isn’t it?


Chrome開發者工具里的一個隱藏技能:chrome://net-internals


Further reading

For more tips I gained during my daily work about Chrome development tools, please refer to this blog  Chrome Development Tool tips used in my daily work.

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

Chrome開發者工具里的一個隱藏技能:chrome://net-internals

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

柳林县| 乐安县| 泽库县| 陆良县| 双辽市| 蒙阴县| 申扎县| 延庆县| 九龙城区| 镶黄旗| 乐清市| 岢岚县| 柳林县| 柞水县| 罗定市| 页游| 桂东县| 西贡区| 卫辉市| 巴青县| 德惠市| 保靖县| 东光县| 建阳市| 班戈县| 凉山| 阿城市| 南城县| 凤山县| 台东县| 顺平县| 七台河市| 诏安县| 罗山县| 新田县| 平舆县| 虞城县| 获嘉县| 临汾市| 乐亭县| 丽江市|