A simple tool library: jeasy

A year ago, it was found that there was a large use of money in working projects, but only the most basic format function was used. The volume of money directly causes the volume of the project to increase exponentially, and therefore, jeasy is born.jeasy implements the most commonly used function of money, and GridManager Some of the tool meth ...

Added by bobbythenewb on Mon, 09 Dec 2019 18:03:07 +0200

1 MySQL ORM learning notes

Node.js ORM - Sequelize basic Overview: ORM(Object Relation Mapping) based on Promise supports multiple databases, transactions, associations, etc Installation: npm i sequelize mysql2 -S Basic use: const Sequelize = require("sequelize"); // Establish connection const sequelize = new Sequelize("kaikeba", "root", "admin", { host: "localhost" ...

Added by angeljyt on Fri, 06 Dec 2019 01:59:46 +0200

Array element addition and deletion, including tree structure data

Install npm package npm i great-jsutils --save Import api import {JsUtilsApi, ArrayUtils, Base64, TimeUtils,StringUtils } from "great-jsutils/index"; Example 1: String removal //String removal: the first parameter is the array to be operated, and the second parameter is the string to be removed testArray(){ let arr=["a","b","c"]; Arra ...

Added by ierpe on Thu, 05 Dec 2019 12:05:37 +0200

Simple usage and installation of nodejs websocket

I can't understand a lot of WebSockets on the Internet. I have to watch a video to understand them Video link: https://blog.csdn.net/QQ408896436/article/details/81606553 The following are all based on the steps of the teacher First open cmd or powershell, type cd to enter the server address, and then type NPM install nodejs websocket And no ...

Added by electronish on Sun, 01 Dec 2019 06:45:02 +0200

The UI router of Angular routing

The UI router of Angular routing Explain Official website hello world Complete code Online testing supplement Design sketch Explain In the previous article, we introduced the use of the native routing of angular, but in fact, we have used very little, which is basically replaced by the third-party UI router. The differe ...

Added by arun_php on Thu, 28 Nov 2019 18:04:45 +0200

Ten minutes to get started status management tool Mobx

What is Mobx A simple and expandable state management tool install npm install mobx --save Core concept State State is the data that drives the application, and the change of state will affect the view. import {observable, autorun} from 'mobx'; var todoStore = observable({ /* Some observed states */ todos: [] }); Derivations (derivativ ...

Added by cityguru on Thu, 28 Nov 2019 13:11:01 +0200

Generating pdf file and excel file in JS front end

Generate pdf file: Using html2canvas and jspdf plug-ins Details:jspdfhtml2canvas Install or use CDN with the following instructions npm install --save html2canvas jspdf And then introduce import html2canvas from 'html2canvas' import JsPdf from 'jspdf' First, generate canvas from the whole screenshot of DOM element through ht ...

Added by tHud on Tue, 26 Nov 2019 20:57:38 +0200

Using archive to compress files in nodejs

Preface archive is a tool for cross platform packaging in nodejs You can compress the file to zip or rar format It is a better third-party module install npm install archiver --save archive github address: https://github.com/archiverjs/node-archiver Quick Start // require modules var fs = require('fs'); var archiver = require('archiver'); // ...

Added by Dustin013 on Tue, 26 Nov 2019 17:48:33 +0200

Add dynamic parameters to vue wechat sharing link

When sharing wechat, the carrying parameters of sharing link may not be fixed. You need to know that this is the basic code for dynamically setting sharing link before sharing, which is not so detailed, but the general process is as follows 1. Install and reference jssdk npm install --save weixin-js-sdk const wx=require('weixin-js-sdk') ...

Added by Dilb on Thu, 21 Nov 2019 16:23:22 +0200

AssemblyScript Getting Started Guide

Author: Danny GuoTranslate: Crazy Technology House Original: https://blog.logrocket.com/th... Reproduction is strictly prohibited without permission WebAssembly (Wasm) is a relatively new feature in Web browsers, but it expands the functional potential of using the Web as a service application platform. Learning to use Web Assembly can be a di ...

Added by Avalanche on Wed, 20 Nov 2019 07:19:44 +0200