真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

Chrome開發(fā)者工具里的一個(gè)隱藏技能:chrome://net-internals

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.、

創(chuàng)新互聯(lián)是專業(yè)的魏縣網(wǎng)站建設(shè)公司,魏縣接單;提供成都網(wǎng)站設(shè)計(jì)、做網(wǎng)站、成都外貿(mào)網(wǎng)站建設(shè)公司,網(wǎng)頁設(shè)計(jì),網(wǎng)站設(shè)計(jì),建網(wǎng)站,PHP網(wǎng)站建設(shè)等專業(yè)做網(wǎng)站服務(wù);采用PHP框架,可快速的進(jìn)行魏縣網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴(kuò)展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團(tuán)隊(duì),希望更多企業(yè)前來合作!

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開發(fā)者工具里的一個(gè)隱藏技能: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開發(fā)者工具里的一個(gè)隱藏技能:chrome://net-internals

And it works now:

Chrome開發(fā)者工具里的一個(gè)隱藏技能: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開發(fā)者工具里的一個(gè)隱藏技能:chrome://net-internals

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

Chrome開發(fā)者工具里的一個(gè)隱藏技能: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的原創(chuàng)文章,請關(guān)注公眾號"汪子熙":

Chrome開發(fā)者工具里的一個(gè)隱藏技能:chrome://net-internals


網(wǎng)站欄目:Chrome開發(fā)者工具里的一個(gè)隱藏技能:chrome://net-internals
網(wǎng)頁鏈接:http://weahome.cn/article/piedhs.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部