Recently, it's a hot rewind challenge - ReverseVoice (wechat applet version front and back source code) Ts Node Taro

Project address: https://github.com/smackgg/reversevoice In fact, the whole project is very simple. It's only a few days after I saw the fire in tremolo and station B until the app finally went online. Since it went online on November 16, there are still a lot of users (mainly the fast apps made at that time are relatively few). Now there are a ...

Posted by DeadDude on Wed, 27 Nov 2019 04:11:29 -0800

nodejs pushes messages through a group of nails robot

nodejs pushes messages through a group of nails robot Intro Recently, nodejs has been used for writing. The previous nodejs crawler code was written in js. It feels that the maintainability is too poor, and there is no intelligent prompt. Therefore, js is rewritten with ts(typescript) to improve the code quality. After the start of the crawler, ...

Posted by daniel-g on Mon, 18 Nov 2019 06:58:44 -0800

Starting with Prototype - class es and extends in ES6

What is a class JavaScript is known to have no classes, and classes are just grammatical sugars. This article aims to clarify what grammatical sugars we often hang around our mouths mean. ES6 versus ES5 Writing class Parent { static nation = 'China' isAdult = true get thought() { console.log('Thought in head is t ...

Posted by bolerophone on Sun, 17 Nov 2019 10:44:15 -0800

Using vue+node+koa+sequlize to realize the background management system

mkdir AceNode && cd AceNode vi package.json Add the following to package.json { "name": "ace-node", "version": "1.0.0", "description": "backend for ace", "main": "./src/app.js", "scripts": { "start": "nodemon node ./src/app.js", "build": "babel ./src/app.js -d dist" }, "keywords": [ "koa", "async" ], ...

Posted by phorcon3 on Mon, 11 Nov 2019 14:28:22 -0800

Using typescript to write react-redux and redux-thunk, and the implementation of thunk and other middleware

General steps for using react-redux Provider, as the provider of the top-level global state, needs to pass a parameter, the global state store import { Provider } from 'react-redux'; <Provider store={ store }></Provider> Stores are created by the createStore function and need to pass the reducer pure function as a parameter impor ...

Posted by amberb617 on Sat, 09 Nov 2019 22:09:38 -0800

Intensive reading of React Conf 2019 - Day1

1 Introduction React Conf 2019 In October this year, the content quality is still as high as before. If you want to learn more about the front-end or React, this conference must not be missed. I hope that the front-end intensive reading will become a preacher on your way to learning and growth, so this intensive reading will introduce the relev ...

Posted by AQHost on Sun, 03 Nov 2019 17:04:45 -0800

How to call mock data in Umi

Official website According to the official website, you can download it by executing yar create umi or npm create umi. After that, select: the space is select enter is OK Select project = > select app Choose whether to use TypeScript. Then, select the function you need = = > antd + DVA OK, the bas ...

Posted by secret007 on Fri, 01 Nov 2019 20:58:52 -0700

How to implement anti shake operation with multiple input search boxes in Vue.js page (use the correct posture of debounce)

original text from Naughty kid Published in Bloghome blog About debounce Debounce is a very useful function in the lodash library. When implementing dynamic query of search box input, we need to prevent the front end from sending query requests to the back end frequently. At this time, we need to use debounce, which can set a time interval, s ...

Posted by Iokina on Thu, 31 Oct 2019 23:31:24 -0700

Code completion fast food tutorial - 30 lines of code witness miracle

Code completion fast food tutorial (1) - 30 lines of code witness miracle Here is a code completion model I wrote with more than 30 lines of code, including many blank lines and comments. Let's see the effect first. Completion effect cases Let's take a look at the common (Python, Keras) Known: y_t ...

Posted by psych0 on Sun, 27 Oct 2019 03:33:51 -0700

TypeScript learning 3-interface

What is an interface The core of TypeScript is type checking. The interface is used to declare types and provide type declarations and constraints for internal or third-party consumers. Usage scenarios Data type declaration and constraints // Declare data type interface CustomerInfo { customerCode: string; customerName: string; } // Using ...

Posted by gladius on Wed, 23 Oct 2019 14:41:16 -0700