Code specification for vue development eslint

ESLint   whether it's a multi person collaboration or a personal project, code specification is very important. This can not only avoid basic syntax errors to a great extent, but also ensure the readability of the code. preparation 1, VSCode ESLint plug in The ESLint plug-in is used to display some error prompts in the editor accordi ...

Posted by rowantrimmer on Fri, 08 May 2020 03:07:25 -0700

Visualization interface of PID-feed system based on HTML5

Preface With the popularization and development of industrial Internet of Things and Internet technology, the way of artificial filling has been gradually replaced by mechanical equipment.Industrial manufacturers are increasingly demanding higher standards and stringent requirements for equipment in order to reduce misoperation, improve equipme ...

Posted by smartknightinc on Thu, 07 May 2020 10:15:40 -0700

The first day of react learning (version 16.13.1)

1. How react and dom are related In our initialization project, index.html is the entry point of our project In index.js corresponding to the main file of the project, our component is bound to the dom element 2. How to use this object correctly in the calling method 2.1. Actively bind this object when method is called (the best scheme, ...

Posted by leafface on Thu, 07 May 2020 07:13:09 -0700

Java paging data through laypage plug-in of layui

Recently, you need to paginate the data on a page of spring MVC + mybatis project. The general idea is to create two hidden input boxes on the page to save the pageNum of the current page and the number of pieces of data displayed on each page pageSize. Modify the corresponding values each time you paginate, and then transfer the pageNum and pa ...

Posted by w00kie on Thu, 07 May 2020 07:05:21 -0700

Introduction and learning notes of Angular

Angular The performance of Google's open source JavaScript library is much higher than that of the previous version. It uses Typescript and new mode for development, so from the second version, the number of people has suddenly dropped dramatically. Technology: basic use of typescript, es6 Typescript is a superset of JavaScript. Both JavaScr ...

Posted by gokhul on Wed, 06 May 2020 05:53:50 -0700

24 days of egg learning notes: mongoose default parameters, modular

1. mongoose default parameter: when adding data, if no data is passed in, the data configured by default will be used. Connect to the database, a warning is reported below, useNewUrlParser:true This attribute will identify the db needed to verify the user in the url. You do not need to specify it before upgrading. You must specify it before u ...

Posted by grungefreak on Sun, 03 May 2020 08:26:24 -0700

vue+axios set token and add request interceptor

1, When the front and back ends are completely separated, the idea of implementing token verification in Vue project is as follows: When logging in for the first time, the front end calls the login interface of the back end, and sends the user name and password The back end receives the request, verifies the user name and password, and returns ...

Posted by buraks78 on Wed, 29 Apr 2020 08:10:44 -0700

[interesting case] who says programmers are not romantic? Python exports wechat chat record to generate love word cloud

When it comes to CI Yun, it's not strange. I don't know how to look down on my boots Word cloud refers to the high frequency The visual prominence of "key words" Visitors can grasp the main idea of the text at a glance See if this is a little love with sound and picture~ Today we collect the daily conversation between lovers Use this ...

Posted by herghost on Tue, 28 Apr 2020 02:13:30 -0700

The usage of forEach, for in, for of loop in js

1, General method of traversing array: var array = [1,2,3,4,5,6,7]; for (var i = 0; i < array.length; i) { console.log(i,array[i]); } 2, Traversing arrays with the square of for in for(let index in array) { console.log(index,array[index]); }; 3, forEach array.forEach(v=>{ ...

Posted by dhcrusoe on Sun, 26 Apr 2020 23:54:59 -0700

Practical skills of sharing css pseudo elements in web front end training series of good programmers

Practical skills of sharing css pseudo elements in web front end training series of good programmers1. Definition: pseudo elements are used to create and style elements that are not in the document tree. For example, we can add some text before and after an element through: before: after, and add styles to the text. Although the user can see th ...

Posted by pazzy on Sun, 26 Apr 2020 01:40:48 -0700