• Welcome to the eight year blog, I'm glad to meet you at the right age!
  • Due to the theme, QQ login partners will display the default avatar in the comments. Please go to the personal center and upload the avatar again.

ES6 array extension: Union, intersection and subtraction

 ES6 array extension: Union, intersection and subtraction
Then, at the end of writing an article "understanding the set structure in ES6", when summarizing the knowledge points, I just saw a method of "finding the union, intersection and difference set of two sets" by using the relevant knowledge in [extension of ES6 array]. it is very simple and can be implemented as follows: let a = new set ([1,2,3]); ; let B = new set ([4,3,2]); / / Union let union = ne Read the full text

barben 4 months ago (04-02) Browse 177 0 comments three Praise

Understanding the set structure in ES6

 Understanding the set structure in ES6
What is a set? es6 adds a new data structure called set. It is similar to an array, but it has no duplicate values of its own. What can be the parameter of new set()? Array 2. Array objects, such as the NodeList collection returned by Dom operation, and the arguments object inside the function. / / NodeList object document. Queryselectorall ('p '); / / argu Read the full text

barben 4 months ago (04-02) 185 view 2 comments three Praise

Vue back to the previous page will jump out of the site? How to jump to the home page without the previous page?

 Vue back to the previous page will jump out of the site? How to jump to the home page without the previous page?
Today, when I did the back button in the upper left corner of the mobile phone, I unlocked a desperate operation: if I directly input the address to visit my project on other pages, and then click back in the project, I will jump back to that webpage directly. what's the difference between this and the browser's fallback function!!! Mobile terminal website is not if there is no previous page will jump back to the home page??? / / using the Vue router's fallback method go and back, this will happen this. $router. Go (- 1); this Read the full text

barben 5 months ago (03-13) 479 browse 1 comments five Praise

Adaptive adaptation of Vue mobile terminal

 Adaptive adaptation of Vue mobile terminal
This is the first article in the year of the rat! it's also the first task that I get after the compulsory holiday is to complete the development of wechat public account mobile terminal project! Don't talk much, Vue, get up! 1. Install the Lib flexible plug-in [lib flexible] mobile terminal flexible layout adaptation solution. REM font size is used to set the base value of one tenth of the screen width of the plug-in automatically. For example, if the current Read the full text

barben 5 months ago (03-12) 311 browse 0 comments six Praise

The regular expressions I used in those years

 The regular expressions I used in those years
Numbers and commas can only be numbers and commas / ^ [, D,] * $/ verify mobile phone numbers are basically correct / ^ 1 [3457889] / D {9} $/ D input multiple mobile phone numbers, each mobile phone number is separated by a comma, and the beginning and end cannot appear comma / ^ (1 (3 (3 1244 4 4 1245 5 5𞓜 7 ӟ 7_) d {9}) (,, (1 (1 (3 12444 | 5 | 5 | 7 | 8) ﹤ D {9} / D) * $/ D password length is 6-18 digits, and numbers, letters, symbols, symbols, symbols, letters, symbols symbols, symbols, 6-18 digits, at least two kinds of / (?! ^ [0-9] + $) (?! ^ [A-Z Read the full text

barben 8 months ago (12-17) 390 browse 0 comments eleven Praise

How to turn off eslint in vue-cli3?

 How to turn off eslint in vue-cli3?
Today, I took over the project of a big man. When there was a problem, the head iron was upgraded to node.js and Vue cli. I found that the scaffold version has reached 4.1.1! in order to see what the difference is after the scaffold upgrade, we set up a project. Next, Vue create emmmm is as fierce as a tiger after the operation You may use special comments to disable some warnings. U ... Read the full text

barben 8 months ago (12-10) 2495 browse 1 comments seven Praise

CSS penetration: let div go to the top without affecting the element click below

 CSS penetration: let div go to the top without affecting the element click below
Case study page has a div with copyright information, which is fixed at the bottom. Every time I open the console, this div hides the "log in now" button. because after the page height changes, fixed positioning will make div move up, just blocking the buttons below. I have to implement it now: div is displayed on the top without blocking the elements below [normal browser size] [when the console is opened Full text

barben 10 months ago (10-22) 4282 browse 2 comments five Praise