Collation of Common Knowledge Points in Koa Framework
brief introduction
Koa It's a simple and easy-to-use Web framework. It is characterized by elegance, conciseness, strong expression and high degree of freedom. The code itself is only over 1000 lines, and all functions are implemented through plug-ins.
Pre-school preparation
Check the Nodejs version
Open the cmd command line window node-v
Note ...
Posted by amazing on Wed, 15 May 2019 23:57:02 -0700
ajax component request API recommended by axios.js
I. installation
1. Install NPM install Axios using npm--save2. Install bower install Axios with bower--save3. Introducing <script src="https://unpkg.com/axios/dist/axios.min.js"> </script> directly using cdn
Two, example
1. Send a GET request
//Send requests with a given ID
axios.get('/user?ID=12345')
.then(function(re ...
Posted by JamieinNH on Wed, 15 May 2019 15:31:43 -0700
Disclosure of Component Library (Part I)
I. Preface
1. Sources of inspiration
I usually prefer to make some records and summaries of some things, including some components. When the amount of accumulation is large, I find that scattered accumulation is not suitable for management.
So I began to think, what is a good way to regulate these scattered things? If compon ...
Posted by Lefu on Tue, 14 May 2019 18:37:54 -0700
To master common gulp plug-ins
Proficiency in common gulp plug-ins
What is gulp?
gulp is a front-end build tool that enhances our workflow Relevant websites: Gulp Chinese Official Website —- Gulp Introduction Guide —- Gulp English official website —- npm-gulp
install
What other options do you have besides gulp
1.Webpack
2.Grunt
...
Posted by davidjam on Tue, 14 May 2019 03:40:36 -0700
Hand-on instructions for crawling data with nodejs
1. Target of this crawl
To crawl data from websites and analyze and organize it, my goal is to completely recreate a webapp site for practice, so I'll think about how inputs are stored in MongoDB.The crawled data is temporarily stored in the json file first; of course, it can be stored directly in your own MonoDB, so the duplicated website is ...
Posted by bulldorc on Sat, 11 May 2019 09:01:17 -0700
React V16.3, the life cycle to be changed
Note: This article is translated from React's official blog (article address: Update on Async Rendering)
Mainly describes the update direction after React, and summarizes the problems arising from the previous life cycle. Later React will gradually abandon some life cycles and increase some more practical and more realistic li ...
Posted by Kath_php_? on Sat, 11 May 2019 06:23:11 -0700
Use TypeScript to write a library that perfects testing, documentation, and continuous integration
This article mainly describes how to use TypeScript to write a perfect library, including testing, documentation, continuous integration, covering the technology and tools needed to write the entire library, mainly covering:
Project catalog skeleton
TypeScript configuration
Using jest unit testing
Writing documents using vuepress
Deploy docume ...
Posted by hessian on Sat, 11 May 2019 06:09:42 -0700
Do not update after treading pit vue v-for operation DOM
Do not update after treading pit vue v-for operation DOM
Preface
Recently, when I read the style guide for vue, I found a problem that I had previously ignored in learning or even developing.
Picture Description
phenomenon
Looking at the above paragraph, I think I have encountered similar problems when I was just developing.It is after forcibly ...
Posted by Hamlets666 on Fri, 10 May 2019 23:53:03 -0700
Webpack 4 series of tutorials (16): development mode and production mode.
Author Click This is the last tutorial in the webpack 4 series. This article builds on all the previous tutorials and does a real webpack project! I spent three months sorting out this tutorial, perfecting the relevant sample code and becoming more familiar with the theory and application of webpack. Of course, thank you for your support. Okay ...
Posted by zurron on Fri, 10 May 2019 12:27:11 -0700
Using Webpack to Realize Multi-project Management of Small Programs
This is how the story begins.
Front-end development brother Bingo receives the demand of product ladies and sisters, and has to go online with several small programs.
Code Animal Brother Begins Architecture
Miscellaneous small procedures, put a project to facilitate management
There are many small programs, so the code should be reusable.
Team ...
Posted by maniac1aw on Fri, 10 May 2019 10:38:01 -0700