VScode configuration prettier and eslint

In the front-end tool, if the prettier is used for code formatting, eslint performs error detection. Great help for front-end work Principle: The prettier and eslint configurations can be divided into two types: local configuration and global configuration. VScode will check whether there are user-def ...

Posted on Wed, 22 Jan 2020 06:06:06 -0800 by Shandrio

tiff image in html

###What is tiff tiff is a picture format Today, I suddenly saw that there was a picture loading failure. The console called out a picture address in tiff format. So Baidu checked / asked a friend, and finally found a tiff.js file npm installation can't follow others' instructions. Next, record the pro ...

Posted on Tue, 21 Jan 2020 07:48:37 -0800 by titaniumtommy

The simplest configuration of react routing

Preface vue has written a lot. I want to know more about react. In addition, we all say that typescript is very fragrant. So write a small demo project with react + typescript. Because the main purpose of the project is to practice the cooperative use of various technologies, so the implementation of ...

Posted on Fri, 17 Jan 2020 04:13:38 -0800 by GESmithPhoto

Vue + Spring Boot project: navigation bar and Book page design

Article directory Preface 1, Implementation of navigation bar 1. Routing configuration 2. Use NavMenu component 2, Book management page 2.1. LibraryIndex.vue 2.SideMenu.vue 3.Books.vue Preface We have talked about using Element to assist the development of front-end pages before, but only us ...

Posted on Wed, 15 Jan 2020 19:57:36 -0800 by BinaryDragon

Background data of echarts map and its introduction

1. Refer to the official introduction for the introduction method Because of the improvement of map accuracy in echart 3, no more built-in map data increases the code volume. You can download the required map file in the map download interface and import it into echart. Two formats of map data are pro ...

Posted on Mon, 13 Jan 2020 18:24:19 -0800 by Stevis2002

The first way to learn TypeScript: installation, basic type, variable declaration, operator and conditional statement

1: Install TypeScript There are two main ways to get TypeScript tools: Through npm (Node.js package manager) Install TypeScript plug-in for Visual Studio For users using npm: > npm install -g typescript For Visual Studio users 1, Download Visual Studio Code. 2: click the code file edite ...

Posted on Mon, 13 Jan 2020 02:46:11 -0800 by musicdirector

state and getters of Vuex

General usage of store It's not good to write directly in the new Vuex.store option. The normal way is create a file Create client/store/state/ Create client/store/state/state.js Create client / store / transitions/ Create client / store / state / transitions.js Module write // state.js data export default { cou ...

Posted on Mon, 06 Jan 2020 19:42:18 -0800 by gunslinger008

Detailed explanation of webpack setting server agent

Role of server agent Resolve cross domain: Principle: there is no cross domain problem in using servers to access servers Request process: first request to the agent (same origin) server, and then request the external server by the agent (same origin) server Construction of proxy server Install HTTP proxy middleware pack ...

Posted on Sat, 04 Jan 2020 13:40:34 -0800 by TheDumbNerd

Some procedures of using jquery and bootstrap

For the first time, we use web pack to pack vue, without using vue cli to build a scaffold. There are many npm packages to install at the beginning. Here is the package.json file { "name": "v1", "version": "1.0.0", "description": "", "main": "main.js", "scripts": { "test": "echo \"Error: no test specified\" & ...

Posted on Sat, 04 Jan 2020 02:49:25 -0800 by bijukon

The treatment of the lyrics of Vue music (15)

The lyrics are protected by the referer (), so the back-end reverse proxy needs to get the data. The data obtained is not in the normal json format, so after regular transformation var ret = response.data // Lyrics data if (typeof ret === 'string') { var reg = /^\w+\(({[^()]+})\)$/ // ...

Posted on Thu, 02 Jan 2020 21:49:58 -0800 by unkwntech