Front end network monitoring and heavy chain disconnection

Business background Recently, when doing large screen data visualization project, when thinking about project delivery and operation, considering the need to display on the company's large screen display, I suddenly thought that the project might face the problem of display in case of network disconnection and slow network speed, so I have to e ...

Posted on Fri, 21 Feb 2020 23:08:44 -0800 by getmukesh

python reptile actual battle post beauty picture

In recent days, I have used my spare time to self-study python crawlers to crawl various nutritious websites..... Looking at my growing calluses... How can we not share it to supplement nutrition -------------Manual split line------------------- Introduce the next small project, do is to crawl Baidu Pos ...

Posted on Sat, 15 Feb 2020 23:38:01 -0800 by flamtech

Internet Explorer's console is an undefined error

I'm using Firebug, and I have some similar statements: console.log("..."); In my page. In IE8 (and probably earlier), I received a script error that said "console" was not defined. I try to put it at the top of the page: <script type="text/javascript"> if (!console) console = {log: function() {}}; </script> ...

Posted on Sat, 15 Feb 2020 03:02:48 -0800 by realchamp

The essence, definition and usage of variables and scopes in JS

Global scope and local scope global scope Local scope: function scope Global scope can be accessed globally and locally, while local scope can only be accessed locally var name="cyy"; function fn(){ var age=25; console.log(name);//cyy console.log(age);//25 } fn(); console.log(name);//cyy console.log(age);//age is not defined js h ...

Posted on Mon, 10 Feb 2020 22:52:59 -0800 by holladb

Selenium Python Usage Tips

Book above and above: Selenium Python Usage Skills (1) Selenium Python Usage Skills (2) Handle waiting in different situations In elenium automated tests, a Web page may take some time to load, or you may want to see specific Web elements on the page before triggering the test code.In this case, you need to execute Explicit Wait, which is a p ...

Posted on Fri, 07 Feb 2020 17:54:40 -0800 by Dillenger

Web crawler - project practice (crawling through all articles in Encyclopedia of embarrassing events)

Project analysis 1, First of all, we're ready to crawl the website Encyclopedia Website (http://www.qiushibaike.com/), you can check the source code of the article to find out the rules of the content we want to crawl. Here is part of the code I extracted <div class="content"> <span> When ...

Posted on Fri, 07 Feb 2020 01:34:42 -0800 by Pie

Browser Object Model "BOM" -- window Object

GlobalObject global Object All global variables and methods can be placed on Windows <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> body{ width:100%; height:100%; } </style> <script> ...

Posted on Wed, 05 Feb 2020 08:20:25 -0800 by Deanznet

How to solve the problem that outline is compatible with lower version IE?

Recently, I found that the buttons in the project are basically a gif picture, which is ridiculous. The most serious problem is that if the text in the button exceeds the length of the gif picture, the excess part will not be displayed, so the operability is not very low. Of course, it's hard for a versatile programmer. Here's ...

Posted on Fri, 31 Jan 2020 09:36:29 -0800 by kendallkamikaze

Partial compatibility of native JS

1. Get the rolled out part of the page (top,left) /** * window.pageYOffset Google Firefox * document.documentElement.scrollTop ie8 * @returns {{top: (Number|number), left: (Number|number)}} */ function getScroll(){ return { scrollTop: window.pageYOffset || document.documentElement.scrollTop || document.body ...

Posted on Fri, 31 Jan 2020 07:52:23 -0800 by remnant

Retrieve the commit log for a specific line in the file?

Is there any way for git to give you a commit log that only commits that touch specific lines in the file? Like git blast, but git blast tells you to touch the final commit of a particular line. I really want to get a log like this, not a commit list anywhere in the file, but a commit to a specific line. #1 building This will call ...

Posted on Sat, 25 Jan 2020 05:50:53 -0800 by mailtome