BOM Foundation for JavaScript

The BOM(Browser Object Model), also known as browser object, provides many objects for accessing browser functions.However, there is no standard for BOM. Each browser manufacturer will expand BOM objects according to their own requirements.This article mainly uses some simple examples to describe the basic knowledge of BOM in front-end developm ...

Posted on Mon, 17 Feb 2020 11:21:59 -0500 by JellyFish

Reporting: Popular understanding of linear regression

0 What is regression? Assuming that linear regression is a black box, the black box is a function in the programmer's mind, and then, as long as we pass some parameters to the function as input, we get a ...

Posted on Mon, 17 Feb 2020 01:19:32 -0500 by manhattanpaul

Why do I need to call anonymous functions on the same line?

I read some articles about closures, and I saw them everywhere, but I didn't explain exactly how it works - every time I was told to use it : // Create a new anonymous function, to use as a wrapper (function(){ // The variable that would, normally, be global var msg = "Thanks for visiting!"; // Binding a new function to a global ...

Posted on Sun, 16 Feb 2020 04:02:03 -0500 by l_evans

Python advanced Web front end (04 - getting started with jQuery)

1, jQuery introduction 1. What is jQuery JQuery is a fast and concise JavaScript framework, which is another excellent JavaScript code base (or JavaScript framework) after Prototype. The purpose of jQuery design is "write Less, Do More", that is to advocate writing less code and doing mo ...

Posted on Sun, 16 Feb 2020 02:23:00 -0500 by hiprakhar

JavaScript object-oriented programming -- creating objects

1, All things are objects All data types in JavaScript can be regarded as objects, so we often say that everything in JavaScript is an object. In JavaScript, an Object is a general concept. Any value can be converted into an Object and used as an Object. For example, number objects, Boolean objects, s ...

Posted on Sat, 15 Feb 2020 22:56:24 -0500 by abgoosht

JavaScript asynchronous processing (ES6)

1, What is Promise? Isn't it async/await? Why is Promise mentioned? In fact, async/await is an extension of Promise, so to understand async/await better, we need to understand Promise first. Let's see what Promise is first. First, use console.dir(Promise) in the browser to print out all the properties ...

Posted on Sat, 15 Feb 2020 21:39:07 -0500 by echox

Vue instance lifecycle

1, Life cycle All Vue applications pass Vue example (ViewModel) to complete, Vue needs a series of initialization actions to create an instance, such as setting data listening, compiling templates, attaching the instance to the DOM and updating the DOM when the data changes. Of course, creating an instance is just life cycle P ...

Posted on Sat, 15 Feb 2020 13:56:00 -0500 by bmx316

Serial port + GPS positioning software C ා upper computer code interpretation (1)

This post tells a question: how can PC PC analyze the GPS data received by serial port and display the location information on Baidu map? 1. The serial port receives the data sent by the GPS module and displays it in the receiving area         private string receiveData; //receive data private void ReceiveDat ...

Posted on Sat, 15 Feb 2020 12:10:27 -0500 by levi_501_dehaan

The concept of JS object, how it is declared, inheritance and encapsulation in JS

Traversal of objects Objects can be treated as arrays using for in var person={}; person.name="cyy"; person.age=25; person.infos=function(){ alert(this.name+" "+this.age); } for(var i in person){ console.log(i);//Property or method name console.log(person[i]);//Property value or method value }   Objects declared using constructo ...

Posted on Fri, 14 Feb 2020 12:11:43 -0500 by wholein1

Python and Web Crawlers

Python and Web Crawlers Article Directory Python and Web Crawlers Basic Principles of Crawlers Get Web Page Extract Information Save data Automated Programs Crawler Practice--Capturing the Movie Rank target Get ready Analysis Design Realization debugging complete Ajax Data Crawling Introducti ...

Posted on Fri, 14 Feb 2020 01:34:38 -0500 by guestabc