Summary of Front End Knowledge Points--Introduction to ES6

1.var,let,const ES6 recommends using let to define variables in functionsconst is used to declare a constant (values like values cannot be changed, reference type addresses cannot be changed)let and const are valid only in the last block (in curly brackets) //1.let cannot be repeated var n = 10; var n = 100; console.log(n) //100 let a=10 l ...

Posted on Tue, 12 Nov 2019 20:22:10 -0500 by programguru

Several methods of Python passing in parameters

Written in front The only parameter transfer method supported by Python is call by sharing Most object-oriented languages use this pattern, including Ruby, Smalltalk and Java (Java's reference type is like this, and the basic type is passed by value). Shared parameter passing refers to that each formal parameter of a function obtains a copy of ...

Posted on Mon, 04 Nov 2019 08:44:58 -0500 by mligor

Problems in background communication between Vue+Axois and SSM

1. Cross domain issues Cross domain problems need to be solved when front and back ends are separated: export function registerUser(data) { console.log('export function registerUser(data)'); return request({ baseURL:'http://127.0.0.1:8080', url: '/user/registerUser', method: 'post', data }) } Set baseURL a ...

Posted on Sat, 02 Nov 2019 05:17:49 -0400 by kaedus

[book translation] Chapter 4 of JavaScript concurrent programming uses Generators to implement lazy computing

This is the fourth chapter of my translation of JavaScript Concurrency, which uses Generators to implement lazy computing. This book mainly uses technologies such as Promises, Generators, and Web workers to explain the practice of JavaScript concurrent programming.Complete book translation address: https://github.com/yzsunlei/javascript_concurr ...

Posted on Sat, 19 Oct 2019 06:20:21 -0400 by depraved

Shell script regular expressions - grep, egrep, sed (containing multiple Demo s)

Grep command Find specific characters for basic regular expression instances: Here we will take the / etc/passwd file of all the local users as an example. Demo1: [root@localhost ~]# Grep-n "root"/etc/passwd//-n denotes the display line number 1:root:x:0:0:root:/root:/bin/bash 10:operator:x:11:0:operator:/root:/sbin/nologin Find Set ...

Posted on Fri, 11 Oct 2019 23:11:43 -0400 by RalphOrange

Use Go Read-Write Request

brief introduction Read request parameters Parameters in path Parameters in query Parameters in from Model binding Return response summary The current part of the code brief introduction With a web framework, the most basic thing is to read and write requests.Gin supports many kinds of request parameters and also supports multiple formats ...

Posted on Wed, 09 Oct 2019 13:26:49 -0400 by zoidberg

Generics -- Java learning notes

generic paradigm It allows programs to pass in type parameters when creating classes, and when creating objects, it passes in type parameters to determine types. It is widely used in some tool classes. Using generics: class People<E,F>{//After the class name "< E, F >" is to ...

Posted on Fri, 04 Oct 2019 15:12:07 -0400 by oldtimer

async/await function for asynchronous programming

When it comes to asynchronous programming, you may think of event monitoring, callback functions, publish and subscribe, Promise objects, Generator functions, async functions, etc. This article mainly talks about async functions, many people think it is the ultimate solution of asynchronous programming. 1. What is the async function? In a word, ...

Posted on Wed, 18 Sep 2019 05:32:17 -0400 by rwfresh

A detailed explanation of arithmetic operations in shell scripts

The arithmetic operators are as follows: Operator and Operating Command: 1. Double parentheses numerical operation command Double parentheses ((()) are used to compare numerical operations with numerical values. They are the most efficient, fl ...

Posted on Sat, 31 Aug 2019 12:16:51 -0400 by bryson

python function, parameter and parameter deconstruction

function Mathematical Definition Y = f (x). y is an X function and X is an independent variable. y=f(x0,x1...xn) Python function A block of statements, function names, and parameter lists consisting of several statements are the smallest units of organizational code. Complete certain functions Functional action The most basic e ...

Posted on Tue, 23 Jul 2019 00:48:56 -0400 by jeffkee