Ten minutes to understand generics in TypeScript
Please indicate the source of Reprint: the official website of grape City, which provides professional development tools, solutions and services for developers to empower developers. Original source: https://blog.bitsrc.io/understanding-generics-in-typescript-1c041dc37569
What will you learn in this article
This article introduces the con ...
Posted by sstoveld on Sun, 05 Dec 2021 21:44:38 -0800
TypeScript official manual translation plan [x]: type manipulation - mapping type
Note: at present, there is no Chinese translation of the latest official documents of TypeScript on the Internet, so there is such a translation plan. Because I am also a beginner of TypeScript, I can't guarantee the 100% accuracy of translation. If there are errors, please point them out in the comment area;Translation content: the tentative t ...
Posted by kanch33 on Fri, 03 Dec 2021 00:58:49 -0800
Game programming mode - command mode
introduction
Command mode is a common mode in game development. If you only look at GoF's definition of this pattern, you will feel obscure and confused. My simple understanding of the command pattern is an object-oriented method call. We encapsulate a request method and save the required state of the reques ...
Posted by wstran on Tue, 30 Nov 2021 09:46:13 -0800
My screenshot plugin was used by Gitee
preface
Last Saturday, a group friend @ said that Gitee's feedback module added a screenshot function. I went to experience it and found that they used my plug-in 😁, This article will share this plug-in with you. All interested developers are welcome to read this article.
Plug in address and implementation principle
This plug-in is impleme ...
Posted by MockY on Tue, 30 Nov 2021 08:22:22 -0800
TypeScript learning notes
Advantages of TypeScript
Support ES6 specificationPowerful IDE supportAngular2 development language
IDE advantages
Type check
Typescript online complier
http://www.typescriptlang.org/play/index.html
Typescript local complier
Install node.js, npm
npm install typescripttsc --version
New string features
Multiline string``
...
Posted by quicknb on Mon, 29 Nov 2021 02:53:56 -0800
Open source PoemKit toolkit, based on React, builds a front-end and back-end separation website from zero
At a certain time, we should also summarize. Four years ago, we did a lot of UI work. At present, we have a lot of contact with development work. In fact, we don't ask people for the landing of the project. We unconsciously learned something and did something in our spare time.There are countless React UI toolkits and libraries today. Facing so ...
Posted by jajtiii on Fri, 26 Nov 2021 10:42:10 -0800
TypeScript official manual translation plan [v]: object type
Note: at present, there is no Chinese translation of the latest official documents of TypeScript on the Internet, so there is such a translation plan. Because I am also a beginner of TypeScript, I can't guarantee the 100% accuracy of translation. If there are errors, please point them out in the comment area;Translation content: the tentative t ...
Posted by shmony on Wed, 24 Nov 2021 18:34:35 -0800
Typeof Type Operator of TypeScript
prefaceThe official documents of TypeScript have already been updated, but the Chinese documents I can find are still in the older version. Therefore, some newly added and revised chapters are translated and sorted out.This article is compiled from "TypeScript Handbook" Typeof Type Operator "Chapter.This article is not translated ...
Posted by asmon on Wed, 24 Nov 2021 05:32:07 -0800
ES6 added API: Array
New prototype methodArray.prototype.copyWithinFunction type:/**
* @author: forceddd
* @desc: Shallow copy the elements in the array from the start position to the end position (excluding the elements at end), and overwrite the array from the target. Finally, the modified array is returned
* @param {number} target Copy to the starting overwrite ...
Posted by matt1 on Mon, 22 Nov 2021 23:01:04 -0800
Keyboard event, BOM and DOM, window, location, navigator, history object, this pointing problem, JS execution mechanism (event loop)
1.1. Common keyboard events
1.1.1 keyboard events
The execution sequence of the three events is keydown – keypress – keyup
1.1.2 keyboard event object
use keyCode Property to determine which key the user presses
Note: to trigger the focus event, you can use the element object. focus() to directly call the button click eve ...
Posted by buckboru on Mon, 22 Nov 2021 01:56:08 -0800