Summary of common git commands

Sort out the git command to facilitate your own view Generate SSH ssh-keygen -t ras -C "email@xxx" Set user name git config --global user.name "cc" git config --global user.email "cc@xx" New code warehouse Create a Git code base in the current directory git init Create a new directory and initialize it as a Git code base git init ...

Posted by lalomarquez on Fri, 29 Apr 2022 11:22:20 +0300

Several methods of js inheritance and es6 inheritance

**Several methods of js inheritance and es6 inheritance ** **1, Prototype chain relay** ** 1. Basic thought** Using the prototype chain to realize inheritance, an instance of the superclass is used as the prototype of the subclass **2. Specific implementation** Copy code 1 function F() {} 2 3 //Prototype attribute, prototype method ...

Posted by gregtel on Fri, 29 Apr 2022 10:30:22 +0300

Escape characters, greedy matching, grouping and backward reference

Escape character Escape character classification Escape characters are divided into the following three categories: (1) Escape characters with specific meanings: \ d \w \s \b. (2) To represent a specific symbol in a string: \ \ '\ "> <. ^ $* +? (3) Use ASCII to represent characters: \ nnn \xdd \uxxxx Escape characters with s ...

Posted by GKWelding on Fri, 29 Apr 2022 10:02:59 +0300

Promise === async, await = = = detailed explanation of generator function in ES6

Promise When the interviewer asks you: 1. What is promise? 2. What is your understanding of promise? 3. Have you used promise? 4. What is promise 1. Solve the problem 2. It can be called in a chain 3. There are three states. 4. What API s does promise have 5. Application scenario: package Ajax, get and post of Axios, and package Wx i ...

Posted by LoStEdeN on Fri, 29 Apr 2022 07:11:50 +0300

Implement an asynchronous event flow

It is similar to the synchronous event flow mentioned above; This time to implement an asynchronous event flow; Similarly, it is executed in serial sequence, and the return value of the previous asynchronous event processing function is passed to the next event processing function as a parameter; In the function, you can terminate the execution ...

Posted by Mindwreck on Fri, 29 Apr 2022 01:49:01 +0300

Front-end stored cookie s, localStorage, sessionStorage, indexDB

cookie Cookie means cookie. As the name suggests, cookie s are indeed very small, with a size limit of around 4KB, and were invented in March 1993 by Lou Montulli, a former employee of Netscape. Its main purpose is to save login information. For example, when you log in to a certain website market, you can see "remember password", wh ...

Posted by anthill on Thu, 28 Apr 2022 22:54:25 +0300

To learn functional programming of front-end | JavaScript deep mining

Hello, I'm the pointer. When winter comes, people become lazy. In order to make myself move, I signed up for the big front-end high salary training camp of hook education. Learning needs to be summarized, shared and spurred, so there is a series of "needle love learning front end". I hope you can gain after reading it. If there i ...

Posted by hubbardude on Thu, 28 Apr 2022 21:39:19 +0300

Tanabata Valentine's Day ❤ html+css+j ❤ Achieve full screen love effect (programmer confession)

Chinese Valentine's Day ❤ html+css+j ❤ Achieve full screen love effect (programmer confession) ❤ The programmer confessed that many people were hit like Xiaobian. The students who need to confess stepped up. Don't miss this good opportunity. ❤ Many programmers are always struggling to find the right way to advertise. Here, we have specially s ...

Posted by webnick on Thu, 28 Apr 2022 18:36:53 +0300

How is Quill's Delta designed

quilljs/delta Delta Deltas is a simple and expressive format that can be used to describe Quill's content and changes. This format is essentially JSON, which is human readable and easy to be parsed by machines. Deltas can describe any Quill document, including all text and format information, without the ambiguity and complexity of HTML. Don ...

Posted by Xyn1407 on Thu, 28 Apr 2022 14:25:41 +0300

Navigation component of vant - Tab tab Tab

introduce   import Vue from 'vue'; import { Tab, Tabs } from 'vant'; Vue.use(Tab); Vue.use(Tabs); Code demonstration Basic usage Bind the index value corresponding to the currently active tag through v-model, and enable the first tag by default. <van-tabs v-model="active"> <van-tab title="Label 1">Content 1</van-tab ...

Posted by billcoker on Wed, 27 Apr 2022 23:12:59 +0300