Handwriting a Promise that conforms to the A + specification

This article is also published in my github blog Welcome to star Previously, I wrote a simple promise by hand. This time, in order to pass the official Proise A + test set, I borrowed some promises Polyfill with more downloads and changed it several times. Finally, I passed 872 test cases of A + specification. How to test? The test library addr ...

Added by dtasman7 on Sun, 11 Aug 2019 17:17:48 +0300

Webpack4 Builds a Vue Project from scratch

Author: NCUHOME-FED Flura's blogAuthorized by the original author Main Settings Create Project Create a new project folder NPM init-y initialization package.json Install webpack dependency packages npm install --save-dev webpack webpack-cli webpack-dev-server devServer: { contentBase: path.join(__dirname, './dist'), host: 'localhos ...

Added by DoD on Tue, 06 Aug 2019 05:19:02 +0300

Small Program Cloud Development Practical-Weight Recording Small Program

The small procedure just submitted has been approved and the notes are sent out. The previous paragraph saw that people in the circle of friends always use txt to record weight, so I especially wanted to write a small program to record weight. Now the cloud development of small programs has cloud functions and databases, which is really good fo ...

Added by CBaZ on Mon, 05 Aug 2019 11:32:59 +0300

vue generates canvas Poster

vue-canvas-poster vue Component - Draw Canvas Diagram with Simple Attributesgithub Summary A lightweight vue component that draws canvas pictures through css attributes(A lightweight vue components use canvas draw image by css properties.) It has the following characteristics: Drawing text (line breaks, out-of-content ellipsis, midline, unders ...

Added by creativodev on Mon, 05 Aug 2019 11:05:20 +0300

Build VUE2-webpack4.0 Development Environment from Zero

Original Link: http://www.cnblogs.com/ITtt/p/10812875.html and Build vue2 vue-router2 webpack3 Project from scratch In the same way, from a beginner's perspective, the contents of each step are described in detail, not in-depth discussi ...

Added by leetcrew on Sat, 03 Aug 2019 02:16:40 +0300

Publish a wxh-tools for your own npm package

Work is often repeated to write some methods, organized and hosted to In GitHub Warehouse ,Build an npm package, each time used, download and package into a file on demand, easy to use;<!--more--> Project address NPM address: https://www.npmjs.com/package/wxh-tools;GITHUB: https://github.com/Wxh16144/wxh-tools; Tool screenshots: Project ...

Added by Nicholas on Thu, 01 Aug 2019 12:14:44 +0300

Use of clipboard.js to copy text to clipboard

A copy plug-in that needs to be used in the work is good for simple compatibility, because you can translate it yourself without finding the introduction of the Chinese version. The level is limited, not necessarily all according to the article. If you have any questions, you are welcome to make corrections! ______.For a more intuitive display ...

Added by dumdumsareyum on Thu, 01 Aug 2019 06:08:16 +0300

Simple application of axios in Vue

1. Install axios: npm install --save axios vue-axios 2. Install qs: qs.stringify(data) can solve the problem of data format npm install --save axios vue-axios qs 3. Refer to in the main.js page: 1 import Vue from 'vue' 2 import axios from 'axios' 3 import qs from 'qs' 4 5 Vue.prototype.$http = axios 6 Vue.prototype.qs = qs 4. U ...

Added by mligor on Wed, 31 Jul 2019 10:58:27 +0300

Summary of Vue usage

What is VUE? Vue (pronunciation/vju_/, similar to view) is a progressive framework for building user interfaces, based on JavaScript, lightweight and independent   What can Vue do? View Interface Beautification   Usage steps of Vue Introduction 1. Install vue -- npm is installed in advance here npm install vue - -"just know - we ...

Added by theda on Tue, 30 Jul 2019 05:49:41 +0300

Use of Routing Component 0

I. Overview Router: Router manages routing; Routing: Routing is a mapping relationship. A key corresponds to a value, and a key is a path. For background routing, Value is a callback function for processing requests, and is a component for the front-end routing value.   Explain:1) Officially provided vue plug-ins for SPA (single page)2) gi ...

Added by oeb on Sat, 27 Jul 2019 07:44:03 +0300