vue integrated rich text tinymce
development environment
1. vscode
development language
1. vue
2. javaScript
Plug-in installation
1. npm install tinymce -S
2. You can use the files in it. After downloading, you can view the following directory structure in node modules
3. The whole structure can be copied into static. In order to save the size of the packed file, tiny ...
Posted by spasme on Sun, 08 Dec 2019 21:23:47 -0800
axios unified interface management and optimization
I wrote before An article , sharing the methods of interface management in their own projects. The conclusion is: define interface file -- with Axios export -- call interface method. In this way, the unified management of the interface and the semantics and simplifications of the calling interface are realized.
According to the use in the p ...
Posted by adamhhh on Sun, 08 Dec 2019 14:46:07 -0800
this point of anonymous function in ES6/Typescript
Previously, it was thought that the call object was pointed to the global object when the function call was not set, but recently it was found that this of anonymous function was a little strange, and it was hard to be clear without an instance. Let's start with a piece of code from a graphql module case
import { Injectable, ProviderScope } fro ...
Posted by Nathaniel on Sun, 08 Dec 2019 11:10:27 -0800
Use, principle and implementation of Promise
1. What is Promise
Promise is the mainstream solution of JS asynchronous programming, which follows promise / A +.
2. Brief analysis of promise principle
(1) promise itself is a state machine with three states
pending
fulfilled
rejectedWhen a project object is initialized, its state is pending. When resolve is called, the project state will be ...
Posted by Dude0 on Sat, 07 Dec 2019 02:01:03 -0800
The use, principle and implementation of Promise in JavaScript
1. What is Promise
Promise is the mainstream solution of JS asynchronous programming, which follows promise / A +.
2. Brief analysis of promise principle
(1) promise itself is a state machine with three states
pending
fulfilled
rejected When a project object is initialized, its state is pending. When resolve is called, the project sta ...
Posted by lional on Fri, 06 Dec 2019 16:48:50 -0800
React Bucket Configuration Guide in webpack4, Actual!
Latest React Family Bucket Practice Configuration Guide
I'm listening to this document Mr. Lv Xiaoming For the course, Mrs. Lv combined her previous project experience with her own summary document on react webpack redux understanding, which took a total of one week to summarize. I hope to benefit the readers. I am here to do more basic proces ...
Posted by mbeals on Fri, 06 Dec 2019 14:33:11 -0800
#04-HK custom city selection list
04-HK custom city selection list
This article is hkzf The series of mobile tutorials aims to help beginners quickly master the project development based on React technology stack through a series of articles.
requirement analysis
The custom city list is divided into two parts. The left side is divided into three parts: current location, hot ci ...
Posted by Cynix on Wed, 04 Dec 2019 19:29:20 -0800
Local storage local storage use
Store data
localStorage.setItem("name","Amy") //Store the variable with name and Amy
localStorage.name = "Amy"; // Equivalent to the above command
localStorage // Storage{name: "Amy", length: 1} read data
Read data
localStorage.getItem("name") //Amy, read the value of the variable named name stored in the localStorage ob ...
Posted by eatc7402 on Mon, 02 Dec 2019 10:59:53 -0800
Design of api request duration and request data type
Preface
In our business requests, there are times when we have strategic settings for different lengths of demand.This requirement is detailed here.
In this case, our timout is usually based on the request address, so the core processing technique is how to set different timeout for different request addresses.
The request time we set up earlie ...
Posted by MastahUK on Mon, 02 Dec 2019 07:20:21 -0800
vue uses mockJs to simulate data
In recent years, I have been developing in Java, and I have forgotten about the front-end technology (actually, I don't know how to do it). Recently, I participated in a project written in VUE + element UI + springboot. Because of the uncertain demand, I drew a demo interface first, and I didn't want to write the data. So I went online to check ...
Posted by steveswt on Sun, 01 Dec 2019 17:23:28 -0800