New features of ES6

Catalog Chapter I. construction of development environment Part two and three ways of declaration 2.1 var (Global declaration) 2.2 let (local declaration) 2.3 const (constant declaration) Chapter 3: Deconstruction and assignment 3.1 deconstruction and assignment of arrays 3.2 deconstruction a ...

Added by soccerstar_23 on Sat, 11 Jan 2020 06:31:25 +0200

Nuxt.js Learning - Asynchronous Data

[TOC] 1. Asynchronous data 1.1. Official documents: Nuxt.js extends Vue.js by adding a method called asyncData that allows us to get or process data asynchronously before setting up the data for a component. asyncData method The asyncData method is called before each load of the component (page component only).It can be invoked on the server s ...

Added by homchz on Mon, 06 Jan 2020 01:21:33 +0200

hubot + rocket configuration document

1. Install hubot 1.1 install node.js and npm yum install -y nodejs npm npm install -g inherits n yum install -y curl 1.2 install yo generator hub npm install -g yo generator-hubot npm install coffee-script -save //The following packages are optional: npm install hubot-test-helper --save-dev npm install expect.js npm ...

Added by agoni on Fri, 03 Jan 2020 03:14:46 +0200

Reach advanced routing and parameters

  1. Installation depends on the latest version by default npm i react-router react-router-dom --save-dev 2. Import main component object import {BrowserRouter as Router,Route,Link,Redirect} from 'react-router-dom'; 3. The writing structure is inside the component and does not need to be written in the render. The Router ...

Added by philwong on Wed, 01 Jan 2020 12:08:12 +0200

Real + DVA implementation component drag

React+dva implements component drag through Resizable 1. Install dependency package through npm install – save react resizable command 2. This example uses es6 syntax to define the initial value in state. defaultUpHeight saves the current height of the top half of the component when the drag stops defa ...

Added by campsoup1988 on Tue, 31 Dec 2019 12:24:30 +0200

Construction of webpack4 architecture and application of vue single component

First, enter the folder of the installation directory, enter npm init initialization package.json: To install webpack and webpack cli locally: NPM install webpack webpack cli - D / / - D refers to the development environment needs, online environment does not need; Create an entry file, configure packet.json for packaging ...

Added by brian79 on Thu, 19 Dec 2019 21:45:44 +0200

What do I need to do when I first use TypeScript in a Vue project

Preface As we all know, the new version 3.0 of Vue uses TypeScript development, which makes the already popular TypeScript attract more people's attention. Although TypeScript has only been popular in recent years, it was actually born in October 2012, and the official version was released in June 2013. It is a free and open source programming ...

Added by mikkex on Sat, 14 Dec 2019 22:12:28 +0200

Binary Installation of 006-ELK

Binary Installation ELKstack This build belongs to single point and is installed on the same machine Base Component Deployment curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo yum makecache yum install wget vim lsof net-tools ...

Added by EdN on Wed, 11 Dec 2019 23:28:13 +0200

Axios GET cannot set content type

<p>Recently, in the project docking with the backend, the interface tool uses the < code > Axios < / code > thing. Anyway, there are many pits. In the back-end request, set < code > get < / code > request, set < code > content type < / code > in &lt ...

Added by Buffas on Wed, 11 Dec 2019 05:31:02 +0200

Comprehensive exploration of new features of Vue3.0 - rapid construction of practical projects based on Composition Api

Quick Start Project source code: https://github.com/Wscats/vue-cli This project comprehensively uses the new features of Vue3.0, which is suitable for novice learning Based on the Composition API, i.e. function based API, the transformation is carried out. With Vue Cli, the priority is to experience the characteristics of Vue3 Using singleton ...

Added by EvanAgee on Tue, 10 Dec 2019 11:22:34 +0200