TS decorators, Mixins, modules and namespaces

Table of contents decorator Definition of a decorator class decorator Mixins Modules and Namespaces Modules in TS Namespaces in TS decorator The main role of a decorator is to extend some new behavior to an existing method or class, rather than modifying it directly. After ES2015 enters Class, when we need to share or extend some met ...

Posted by axiom82 on Tue, 13 Sep 2022 21:04:14 +0300

We can understand the source code - list page common hook packaging

This article is the sixteenth in a series of ahooks source code articles that have been compiled into documents- address . I think it's not bad. Give me one star Support me, thank you.List page common elementsFor some background management systems, a typical list page includes three parts: filtering form items, Table tables, and Paginatio ...

Posted by DeathStar on Fri, 02 Sep 2022 01:40:00 +0300

Taro (React+TS) encapsulates a basic audio component based on InnerAudioContext (uni app (vue) (updated later)

Why encapsulate an audio component This is mainly because the official audio of wechat applet is not maintained, and there are some problems on many iOS real machines, such as clicking can not be played, and the total time is not displayed Requirements and limitations of audio components Click play or pause Display playback progress and total ...

Posted by CashBuggers on Wed, 25 May 2022 02:19:32 +0300

Deno from zero to architecture level series - annotation routing

The last time I introduced the basic installation and use of Deno. Based on the oak framework, the control layer and routing layer are built, and the entry file is modified. Then this time, we will continue to transform the routing and simulate springmvc to implement annotation routing. Decorator pattern The decorator pattern (decorator), whic ...

Posted by Brink Kale on Mon, 23 May 2022 23:33:12 +0300

Perhaps the most comprehensive introduction to Angular novice in the whole network

Angular overview Angular is an open source web front-end framework developed by Google, based on TypeScript. Compared with react and vue, Angular is more suitable for medium and large enterprise projects. Angular program architecture Angular advantage Scalability: Based on RxJS and immutable JS and other push models can meet the need ...

Posted by echox on Mon, 23 May 2022 00:06:26 +0300

From vue to elementUI project

Detailed explanation of common components of Element install element Go to the folder and execute the following command to install yarn add element-ui -S // -S indicates the dependencies used by both the production environment and the development environment Introduce element in main.js, you can use it in the page import Vue from 'vue' impor ...

Posted by Birdmansplace on Wed, 18 May 2022 08:39:48 +0300

On TypeScript type programming

I started this article Blog For reprint, please indicate the source: http://kohpoll.github.io/blog... When we write TypeScript, we mainly use type annotation (adding type constraints to variables and functions), which can enhance code readability and avoid low-level bug s. In fact, TypeScript's type system is designed to be so powerful that it ...

Posted by billthrill on Mon, 16 May 2022 07:30:17 +0300

Ten years without sleep, painstakingly wrote the experience

summary TS is a programming language based on JS The problem of JS type system is solved TS greatly improves the reliability of code Key issues Problems of JS own type system How to solve this problem with some excellent technical solutions TS is just a language we will involve in this process Because TS is the ultimate solution to ...

Posted by CorkyMcDoogle on Mon, 16 May 2022 00:42:48 +0300

Teach you how to use Rollup to package 📦 and publish your own tool library 🔧

DevUI is a team with both a design perspective and an engineering perspective, serving HUAWEI CLOUD DevCloud The platform and several mid- and back-end systems within Huawei serve designers and front-end engineers.Official website: devui.designNg component library: ng-devui (Welcome to Star)Official Communication: Add DevUI Assistant (devui-off ...

Posted by nkyoung1 on Tue, 03 May 2022 14:40:56 +0300

TypeScript common types

catalogue 1. Type notes 2. Common foundation types 1. Existing JavaScript types 2. New typescript type 3. Original type 4. Array type 1. Writing method of type [], such as 2. The writing method of array < type >, such as 5. Joint type 6. Type alias 7. Function type void type Function optional parameters 8. Object type Use t ...

Posted by UQ13A on Sun, 01 May 2022 22:59:20 +0300