Comparison of installation steps of each version of react navigation
1.x and 2.x versions
yarn add react-navigation
# or with npm
# npm install --save react-navigation
3.x version
yarn add react-navigation
# or with npm
# npm install react-navigation
yarn add react-native-gesture-handler react-native-reanimated
# or with npm
# npm install react-native-gesture-handler react-native-reanimated
1. If your version ...
Added by BuzzLY on Mon, 18 Nov 2019 08:49:22 +0200
Web backstage service development -- a simple select for database query
Article from Geek Forum
Step 1: create module s and service s
Execute the following command at the command line to create the module and service named Person.
nest g module person
nest g service person
In this case, the directory named person will be generated automatically
Step 2 create entity
Create the file person.en ...
Added by Nytemare on Wed, 13 Nov 2019 19:53:28 +0200
wangEditor3.X directly transmits files (pictures) to ali oss, supports ctrl+v and drag upload
Preface
Recently, I arrived at a new company, just to meet the needs of image upload. Some of the previous image uploads are from the front end to the back end, and then the back end is uploaded to the server, or using 7niu cloud. This time, Alibaba oss, which is used by the company in a unified way, hasn't been used. I went online and looked u ...
Added by elementaluk on Mon, 11 Nov 2019 16:19:04 +0200
Using jsonp to grab cross domain data in Vue project
Download jsonp NPM install jsonp
Add a jsonp.js in the JS folder to encapsulate a jsonp()
How to encapsulate a jsonp()
In the downloaded jsopn, JSON (url, options, callback) is a parameter in the native JSON method;
Introducing download jsonp
import originJsonp from 'jsonp';
Export your own defined JSON functions
//This JSON function i ...
Added by hypertech on Sat, 09 Nov 2019 16:22:37 +0200
Introduction to DAPP development - Aha! scatterJS!
What is Scatter
scatter is a very useful wallet handle on the desktop. There was a plug-in of Google browser before, but the plug-in has stopped maintenance. It has a bug. It's a big bug (there was a problem in the previous development, it's a plug-in problem for half a day, which is too bad). So it's recommended to ...
Added by CerealBH on Fri, 08 Nov 2019 19:24:31 +0200
Starting from 0, use webback to build a React scaffold of your own
react-cli-diy
Starting from 0, use webback to build a React scaffold of your own
Source address
Project use:
git clone git@github.com:TigerHee/react-cli-diy.git
cd react-cli-diy
npm install
Development mode launch:
npm run dev
Production packaging:
npm run build
Implementation steps:
First, create a new project directory in which npm init i ...
Added by oshecho on Thu, 07 Nov 2019 10:20:26 +0200
Write a web pack loader to get the pictures under the specified directory and return the picture URL array
Preface
I often encounter such a problem. When preloading the image resources of h5 project, we often need to manually get one image address and store it in the array, and then pre load the traversal, such as this:
let imgList = ['http://domain.com/img/1.jpg','http://domain.com/img/2.jpg','http://domain.com/img/3.jpg',...];
In the spirit of bei ...
Added by JakeTheSnake3.0 on Tue, 05 Nov 2019 17:25:23 +0200
Vue.js source code analysis instructions v-for instructions
We can use the v-for instruction to render a list based on an array. There are five ways to use it, as follows:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
&l ...
Added by Randy Jackson on Sun, 03 Nov 2019 05:40:19 +0200
How to do the front end of a large factory? Baidu senior front-end engineer, take you to write the micro front-end framework
Preface
Focus on the core implementation and skip to the fourth section: execution process.
The commands in this article apply only to shell enabled systems, such as Mac, Ubuntu, and other linux distributions. It is not applicable to windows. If you want to execute the commands in the article under windows, please use git command window (GIT ne ...
Added by wiztek2000 on Thu, 31 Oct 2019 05:05:51 +0200
Deep understanding and implementation of promise and async/await
Promise and async/await have been put forward for a long time. Many people know that both of them are to solve the problem of callback to hell. Many interviewers in the interview like to compare them. Let me talk about the difference between promise and async/await and the simple principle realization. Avoid the embarrassment of interview!
It' ...
Added by jf3000 on Thu, 24 Oct 2019 06:04:31 +0300