JS02 process control

6. Operator Expressions and return values Expression: it is an expression composed of numbers, operators, variables, etc Expressions have a result that is returned to us, that is, the return value 1. Arithmetic operator: + - * /% There is a precision problem in the operation of floating-point numbers. Do not directly judge whether two floating ...

Posted by phencesgirl on Sat, 30 Oct 2021 10:29:02 -0700

Six ways of communication between vue components

Components are one of the most powerful functions of vue.js, and the scopes of component instances are independent, which means that data between different components cannot be referenced. In general, components can have the following relationships: As shown in the figure above, A and B, B and C, B and D are paternal-child relationships, ...

Posted by cheeks2k on Sat, 30 Oct 2021 10:11:13 -0700

Understanding and use of Axios

(for your later review. If there is something wrong, I hope the boss will correct it) 1. What is Axios Axios is a promise based HTTP library that can be used in browsers and node.js. 2.Axios features Create XMLHttpRequests from the browserCreate http request from node.jsPromise API supportedIntercept requests and responsesConvert request da ...

Posted by chamade76 on Sat, 30 Oct 2021 09:32:28 -0700

Handwritten Vue router & what is Vue plug-in

In this article, you can learn: Implement your own Vue routerLearn what Vue plug-ins are Learning the notes made by the boss of station b and the implementation of the source code 1.1.3 take you step by step to understand the core principle and implementation of Vue router_ Beep beep beep_ bilibili Use the official Vue router Initialize ...

Posted by richierich on Fri, 29 Oct 2021 20:19:50 -0700

Vue syntax template

1, Key modifier 1. Style binding 1.1 class binding       v-bind:class="expression"        Type of expression: string, array, object 1.2 style binding       v-bind:style="expression"       Type of expression: string, array, object Specific implementation: <!DOCTYPE html> <html> <head> &l ...

Posted by abhi on Fri, 29 Oct 2021 05:02:34 -0700

Puppeter project practice

Reprint: https://zhuanlan.zhihu.com/p/76237595 Case1: screenshot (async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); //Set visible area size await page.setViewport({width: 1920, height: 800}); await page.goto('https://youdata.163.com'); //Screenshot of the entire page a ...

Posted by dgx on Fri, 29 Oct 2021 02:42:51 -0700

Basic part of React

The basic part of react also needs us to grasp it in depth. Like other bloggers, I suggest using the JS package that is convenient for beginners to reference first. I'm also a beginner. That's what I did before. websotrm and vscode tools are OK. The three packages are react.js (Core Library), react-dom.js (providing DOM related services) and br ...

Posted by jbingman on Fri, 29 Oct 2021 02:16:56 -0700

Introduction to Electron 02: process model, interprocess communication and Node module use

objective In the last article Electron 01: getting started The basic usage of Electron is introduced in. If you just show the front-end page and don't need to use the file system, hardware devices and other functions of the operating system, just understand the content of that article. However, if you need to use the above resources, you n ...

Posted by Sayian on Fri, 29 Oct 2021 01:23:23 -0700

Introduction to Web API and DOM

        This is the last article in the DOM Series ~ the main content of this article is node operations, events and DOM event flow. 1, Node operation         1. Node overview          All contents in a web page are nodes (labels, attributes, text, comments, et ...

Posted by ravi.kinjarapu on Thu, 28 Oct 2021 17:51:57 -0700

087 learning js document object

Reference link: W3school-JavaScript HTML DOM Reference article: Han_python blog JavaScript Column 14 Document object model Document Object Mode, referred to as DOM. When a web page is loaded, the browser creates the DOM of the page. It defines: HTML elements as objects, Attributes of HTML elements (can be set or changed) Method (action) t ...

Posted by loureiro on Thu, 28 Oct 2021 17:32:01 -0700