Hacker said: how to do a small program online in 4 days?

Since the launch of the "hacker talk" Web Version (hackertalk.net) on June 6, it has attracted many users. In order to further improve the terminal experience, we decided to reuse the existing technology stack to realize the wechat applet. It took only four days to develop it. This paper mainly discusses how to quickly launch the ap ...

Added by hbradshaw on Wed, 29 Dec 2021 11:27:08 +0200

Typescript best practices

summary Deep understanding of TypeScript TypeScript has a type system and is a superset of JavaScript It can be compiled into ordinary JavaScript code TypeScript is a more Java Script than JavaScript; install npm install typescript -g tsc # Version 3.9.7 # Syntax: tsc [options] [file...] # # Examples: tsc hello.ts # ...

Added by rjs34 on Sat, 25 Dec 2021 16:04:32 +0200

JS array, and the use of timer and delayer

preface On 04day of training 1, I mainly learned the array in JS and the use of timer and delayer. Tip: the following is the main content of this article. The following cases can be used for reference DAY04 1, Tab tab Toggle The same location displays different contents on the interaction of different elements; Core problem: note ...

Added by usvpn on Sat, 25 Dec 2021 08:00:33 +0200

Burst the liver overnight just to send it to you. Write a quick TypeScript guide to the primary front-end

1, Why use TypeScript TypeScript allows us to avoid some types or code results that are not what we expect. xxx is not defined. We all know that JavaScript errors are thrown during operation, but TypeScript errors are directly told to us in the editor, which greatly improves the development efficiency, does not need to spend a lot of time wr ...

Added by Cerberus_26 on Mon, 20 Dec 2021 11:20:23 +0200

Learn typescript (day 3)

I talked about several data types, and the differences between the five tigers general and the two hem and haw generals void, any, undefined and void Now let's say, if we don't specify a type, what will ts do? Let's have a look. Enter the topic, that is, type inference. Type inference When we declare variables in ts without specifying the ty ...

Added by idris on Sat, 18 Dec 2021 22:19:18 +0200

vue3.2 ref efficient secret: dependent collection of error level bit operation (bit/dep.w/dep.n)

preface As we all know, the core responsive principle of vue reactivity has not changed significantly for one year. In vue the latest version 3.2, immortal Bas van Meurs A refactoring scheme for ref is proposed, which can increase the comprehensive speed of ref by 3 times! feat(reactivity): ref-specific track/trigger and miscellaneous optimi ...

Added by quiettech on Sat, 18 Dec 2021 11:32:39 +0200

Differences and uses of NG template, ng container and ng content of angular

ng-template Define a template - no rendering by default List rendering example - renderings html <div *ngFor="let person of persons;"> <div>full name: {{person.name}}</div> <!-- adopt ngTemplateOutlet Instruction output template Content of context You can pass data to the template, $implicit Is the default data -- ...

Added by SeaJones on Thu, 16 Dec 2021 05:43:58 +0200

[secure TypeScript] union type, cross type and type protection

Hello, I'm A bowl week , a front end that doesn't want to be drunk. If you are lucky enough to get your favor, I am very lucky~ Union type The so-called joint type is to define some types. The defined variables only need to meet any type. The joint type is defined by | and the example code is as follows: // Union types are defined by the | ...

Added by cwspen on Thu, 16 Dec 2021 02:25:14 +0200

Introduction and mastery of TypeScript - d. Use and explanation of TS description file

introduce What is a description file? Before answering this question, let's first think about the problem. Typescript and javascript are not interlinked in principle. Can all javascript be used before typescript comes out, such as jQuery? If not, is it a pity? Therefore, in order to solve this problem, typescript has a description file, That's ...

Added by cmos on Wed, 15 Dec 2021 06:16:27 +0200

typescript update log 🚀 Chinese speed reading (updated to 4.5), continuous update

Give priority to personal learning and facilitate others 😉Starting address: https://github.com/any86/ts-l... The content of this article will also be updated continuously🔥 Reading instructionsDue to the limited personal ability, this paper only filters the knowledge points related to type / syntax from the "typescript update log". ...

Added by johnsiilver on Mon, 13 Dec 2021 03:05:05 +0200