Vue learn 6Vue event modifiers (once, prevent, stop)

<! -- prevent click event from propagating -- > <a v-on:click.stop="doThis"></a> <! -- submit event no longer reloads the page, preventing jump to another page -- > <form v-on:submit.prevent="onSubmit"></form> <! -- click event will only trigger once -- > <a v-on:click.once="doThis ...

Posted by Nicholas Reed on Mon, 02 Dec 2019 01:15:27 -0800

koa-log4 manages nodeJs access log and system log

Use the nodeJs koa2 framework to develop back-end applications, and use the koa-log4 middleware to manage the access logs and system logs of nodeJs. I. installation of koa-log4 Because the project uses koa2, the higher version of log4 is installed, $ npm i --save koa-log4@2 If using koa1, use the directive $ npm i --save koa-log4@1 koa-log4 Np ...

Posted by petethepirate on Sun, 01 Dec 2019 10:15:49 -0800

NestJS integrated graphql grpc distributed practice

In order to learn the knowledge of nestjs graphql grpc microservice, the specific syntax of grpc and graphql is analyzed in detail 1 create project npm i -g @nestjs/cli nest new project-name 2 add graphql Create graphql-config.service.ts file for graphql configuration and filter writing logic @Injectable() export class GraphQLConfigService impl ...

Posted by Bac on Sun, 01 Dec 2019 05:51:29 -0800

vue3+typescript import external file

There are several ways to introduce external files into vue3+typescript (eg: introduce echarts) The first method: 1. script import in indext.html <div id="app"></div> <script src="https://cdn.bootcss.com/echarts/4.2.1-rc1/echarts-en.common.min.js"></script> 2. Use on. vue page, declare first and then use ...

Posted by xProteuSx on Sat, 30 Nov 2019 13:38:37 -0800

How to view the dependency tree of a js, ts file module

Recently, I took over a page of others. The code was messy and jumbled. When I was adding functions, I found that the module I added conflicts with the original module, but I didn't know where the original module was, so I found it. But I found that this way is too clumsy, and I didn't find the corresponding tool on the Internet, so I wrote a t ...

Posted by Anarking on Sat, 30 Nov 2019 12:43:20 -0800

onos2.0 compilation and installation

onos compilation and installation 1 pre download and installation 1.1 front package installation sudo apt-get install git sudo apt-get install python #Oracle JDK8 sudo apt-get install software-properties-common -y && \ sudo add-apt-repository ppa:webupd8team/java -y && \ sudo apt-get update && ...

Posted by myitanalyst on Sat, 30 Nov 2019 10:42:34 -0800

vue-cli3.0 source code analysis @ vue/cli-----add and invoke

The create command was mentioned in the previous article;Let's take a look at the command add and invoke in this article. The reason why we put it together is that when add executes, it will also execute invoke add vue add vue-cli-plugin-xxx or vue add @vue/xxx In this form, it is a plug-in that can be recognized inside vue-cli 3.0Let's first l ...

Posted by steveswt on Thu, 28 Nov 2019 08:14:56 -0800

Practice of installing and using TypeScript in old React projects

Preface By default, this article gives you an overview of what TypeScript is, mainly explaining how to install and use it in older React projects. The main purpose of writing this is that there are many online explanations of TypeScript, but they are grammatical concepts or simple examples. There are few articles that actually transform an old ...

Posted by darklight on Wed, 27 Nov 2019 17:42:01 -0800

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

Notes on the process of web assembly engineering development based on rule

Initialization project $ npm init rust-webpack web_assembly_demo npx: 18 Installation successful, time 3.989 second Rust + WebAssembly + Webpack = ️ Installed dependencies Install Web dependency $ yarn yarn install v1.19.1 warning package.json: No license field info No lockfile found. warning package-lock.json found. Your project contains lo ...

Posted by gmiyano on Mon, 25 Nov 2019 10:30:48 -0800