What's new in ES6 - let

The difference between let and var Before ES6, we used var to declare variables, and JS only has function scope and global scope, without block level scope, so {} cannot limit the access scope of var declared variables { var i = 9; } console.log(i); // 9 The new let in ES6 can declare variables of block level scope. { let i = 9 ...

Added by busyguy78 on Wed, 26 Jan 2022 18:29:53 +0200

About node JS Buffer

The JavaScript language itself has only string data types and no binary data types. However, binary data must be used when processing such as TCP stream or file stream. Therefore, in node JS, a Buffer class is defined, which is used to create a cache for storing binary data. On Node JS, the Buffer class is a core library published with the ...

Added by Jiraiya on Wed, 26 Jan 2022 15:16:57 +0200

Python phase 3 learning day04

1, JavaScript Foundation 1, JavaScript overview 1. What is JavaScript 1) JS introduction JS, for short, is a browser interpreted language, which is nested in HTML files and handed to the browser for interpretation and execution. It is mainly used to realize the dynamic effect of web pages, user interaction, front and back-end data trans ...

Added by KirstyBurgoine on Wed, 26 Jan 2022 15:15:47 +0200

vue2 last stubbornness

How to exclude the listening of some attributes when watch listens to an object The following code is to re request data when params changes, regardless of the change of a, b, c and d attributes data() { return { params: { a: 1, b: 2, c: 3, d: 4 }, }; }, watch: { params: { de ...

Added by Replika on Wed, 26 Jan 2022 13:05:51 +0200

The parity rearrangement of NC133 linked list, the maximum path in NC6 binary tree and NC26 brackets of NC16 symmetric binary tree generate NC18 clockwise rotation matrix

Parity rearrangement of linked list Parity rearrangement of NC133 linked list Use a cnt counter When the node is the odd node, it will be inserted into the odd linked list When the node is the even node, it will be inserted into the even linked list Finally, point the next of the tail pointer of the odd chain to the header node of the ...

Added by PatelNehal on Wed, 26 Jan 2022 09:11:11 +0200

Efficient component communication technology Vuex -- getting started

1, Basic concepts Vuex function: frequent and large-scale data sharing (scenario: shopping cart) Vuex advantages: 1 Data access in one step. 2. Clear data flow. 3. Responsive. 2, Use steps 1. Lower package yarn add vuex 2. introduce main.js import Vuex from 'vuex' 3. Install plug-ins Vue.use( Vuex ) 4. establish store Instance object c ...

Added by sevenfive on Wed, 26 Jan 2022 04:26:24 +0200

WeChat official account uses JS-SDK to achieve photo uploading function

WeChat official account uses JS-SDK to achieve photo uploading function Wechat browser cannot use the function of calling camera (pit ~ / ㄒo ㄒ) / ~ ~). This paper uses wechat public platform jsjdk to realize the function of taking photos and uploading pictures. As we all know, the biggest criticism of calling wechat platform interface is ...

Added by itazev on Tue, 25 Jan 2022 23:24:54 +0200

APICloud AVM framework list component list view use, flex layout tutorial

avm.js It is a multi terminal development framework launched by apiccloud. Use AVM Js a technology stack can develop Android & iOS native app, applet and iOS light app at the same time, and the multi terminal rendering effect is unified; The new App Engine 3.0 does not rely on webView and provides 100% native rendering to ensure that app pe ...

Added by Gmunky on Tue, 25 Jan 2022 23:13:49 +0200

Briefly introduce how to use socket in Nestjs and Vue3 io

brief introductionIn this paper, the server takes Nest official template and the client takes Vue3 + Vite official template as an example to briefly introduce how to use socket in Nest project IO instant messaging with Vue3's clients.Initialize projectServer# Install Nest scaffold $ npm i -g @nestjs/cli # Create a nest backend project $ nest n ...

Added by Smifffy on Tue, 25 Jan 2022 22:08:01 +0200

How do I use RestTemplate with Ribbon?

1. Using RestTemplate and Integrating Ribbon Spring provides a simple and convenient template class for API calls, RestTemplate. Use RestTemplate First, let's look at how GET requests are used: add two interfaces to the HouseController of the fsh-house service, one that passes parameters through @RequestParam and returns an object information; ...

Added by samscripts on Tue, 25 Jan 2022 19:21:19 +0200