Flow static type checking development environment construction

Flow It is a static type checking tool for JavaScript produced by Facebook. It can help to catch common errors in JavaScript development without modifying the original code, such as static type conversion, null value reference and so on. At the same time, Flow adds a syntax identifier of static type to JavaScript, so that developers can define ...

Added by MaxBodine on Sat, 18 Apr 2020 12:33:56 +0300

Vue asynchronous request

vue initially uses vue resource to implement asynchronous request (ajax), and vue 2.0 began to recommend using axios instead of vue resource.   Preparation 1. Download axios using npm npm install axios   2. Introducing axios.js <script src="js/axios.js"></script> Change to min.js when online         The front-end vue uses axios ...

Added by RiBlanced on Fri, 10 Apr 2020 17:44:55 +0300

Node.js implementation of Websocket real-time communication small Demo

A small Demo simulates real-time communication, which is mainly realized by socket.io framework (further encapsulation of websocket) 1. Environmental preparation: 1) Node.js environment – > download and install on the official website 2) socket.io.js file https://cdnjs.com/libraries/socket.io 3) Install the module ...

Added by crazyjeremy on Fri, 03 Apr 2020 22:39:39 +0300

vue project preparation and skeleton construction

First, ensure that these conditions are met:     Then install vue globally cnpm install -g vue-cli After installation, you can use vue -h to view the help documents of vue     vue -list view the templates supported by vue What we will use next is webback     vue init webpack mall The project name must be entered in English. I enter mal here ...

Added by phphead on Fri, 03 Apr 2020 18:20:20 +0300

Summary of usage of dva.js

Dva.js is a front-end framework based on react, Redux and webback developed by Alibaba front-end team. It can realize one click deployment of react Redux webback environment, which can save front-end engineers a lot of time in setting up the environment. And the optimized Redux is more convenient to use than the native redux. Let's talk about t ...

Added by PHP_apprentice on Thu, 02 Apr 2020 14:23:27 +0300

Create react app and complete HelloWorld of TodoList

React is the front-end framework of FaceBook, which is characterized by componentization, high encapsulation and component reuse. The disadvantage is that both view and data are included in the render function, which does not achieve the separation of data and view The JSP syntax initiated by React has become an independent standa ...

Added by SieRobin on Thu, 02 Apr 2020 04:14:24 +0300

Deployment steps of FISCO-BCOS blockchain open source platform (2)

Chapter II deployment of Genesis node 2.1 initialize node environment The path used in this article is / mydata/nodedata-1/ #Create directory mkdir -p /mydata/nodedata-1/data/ #Store various files of the node mkdir -p /mydata/nodedata-1/log/ #Storage log mkdir -p /mydata/nodedata-1/keystore/ #Deposit account key #Copy node configuration cd / ...

Added by fris on Wed, 01 Apr 2020 23:35:32 +0300

Eight queens question display code

1. introduction Eight empresses estimate everybody knows what problem is, did not elaborate (do not know Baidu) The display version mainly depends on vue, so the display and internal logic are separated when writing code, so it's no more difficult than the non display version. The only advantage is that you can try it first, which is more intui ...

Added by mmponline on Tue, 31 Mar 2020 15:41:01 +0300

Hexo Best Practice Recommendations

This practice is actually a directory operation specification that, ultimately for ease of use, requires personalized and frequently changing directories or files to be isolated, initialized with a simple Shell script, and upgraded with the NexT theme. Note: Summary from personal use may not be suitable for everyone, for reference only. <! ...

Added by jacksonpt on Wed, 25 Mar 2020 06:01:39 +0200

Use sass in vue2 and configure global sass style files

If the style file sass is used in vue, if each.Vue file introduces this style, it will inevitably cause duplication and redundancy of the style after the file is built out. If a scss file is introduced globally in main.js, and no error is defined in referencing the reference variable in other components or pages, other styles c ...

Added by bogu on Tue, 24 Mar 2020 18:05:30 +0200