Google zx scaffold module Chinese document

Google zx scaffold module Chinese document zx is a new star project on the 2021 gibhub. It allows us to easily use JavaScript / TypeScript (which contains TypeScript type declaration) instead of bash to build command-line scripts. The script provides convenience for those who master the front-end development to build a scaffold. Recently, ...

Posted by russthebarber on Thu, 10 Mar 2022 11:29:35 +0100

[Typescript] type operation

summary Everything in Javascript is a variable, and so is Typescript. A type can also be used as a "variable" to perform some operations. For example, the advanced type introduced earlier is an extended type based on the basic type and composite type. Some operators in Typescript can perform further operations on types, including: ...

Posted by marcs910 on Wed, 09 Mar 2022 12:32:13 +0100

vite + vue3 + setup + pinia + ts project practice

introduce A project developed by using vite + vue3 + pinia + ant design Vue + typescript complete technical route, with the launch of second level development update, the new vue3 composition api combined with setup to enjoy the silky development experience, the new pinia state manager and excellent design experience (1k size), the barrier fre ...

Posted by somenoise on Wed, 09 Mar 2022 01:17:43 +0100

Implement JavaScript language interpreter

prefaceLast article I introduced some basic concepts of syntax parsing and how to realize the syntax tree parsing of Simple language interpreter through custom DSL language. In this and the last article in this series, I will introduce you how the Simple interpreter executes the generated syntax tree.evaluate function and scopeThe evaluate func ...

Posted by ppgpilot on Tue, 08 Mar 2022 07:04:21 +0100

Interpretation of Vue source code (11) -- render helper

preface Last article Interpretation of Vue source code (10) -- generating rendering function of compiler Finally, when it comes to component update, you need to execute the rendering function generated by the compiler to get the vnode of the component. The reason why the rendering function can generate vnode is through it_ c,_ l,,_ v,_ s and ...

Posted by mac.php on Tue, 08 Mar 2022 06:14:40 +0100

Fdog series: what to do after writing the registration page in html? Write the background response in java.

Article catalogue 1. Preface2. Create a Java Web project3. Create Server4. Solve the problem of Chinese garbled code5. Respond to background data catalogue Fdog series (I): think about it. It's better to write a chat software. Let's start with the imitation QQ registration page. The source code of all articles has been packaged and uploa ...

Posted by stovellp on Tue, 08 Mar 2022 03:17:59 +0100

TypeScript learning notes - Omit

After version 3.5, TypeScript added an omit < T, k > type. Omit < T, k > types can exclude some attributes from inherited object attributes. type User = { id: string; name: string; email: string; }; type UserWithoutEmail = Omit<User, "email">; // Equivalent to type UserWithoutEmail = { id: string; name: string; }; ...

Posted by echo10 on Mon, 07 Mar 2022 09:36:02 +0100

TypeScript decorator Complete Guide

Decorators make the world of TypeScript better. Many of the libraries we use are built on this powerful feature, such as Angular and Nestjs . In this blog, I will introduce the decorator and many details of it. I hope that after reading this article, you can understand when and how to use this strong feature. overview Decorator is essential ...

Posted by Jeb. on Sat, 05 Mar 2022 16:32:24 +0100

[TypeScript notes] basic type, interface, function and generic type

1, Foundation type Boolean value let isDone: boolean = false number All numbers in TypeScript are floating point numbers. It supports decimal and hexadecimal literals, as well as binary and octal literals in ES 2015. let count: number = 10 character string let name: string = 'lyb' array Writing method 1: Element type []: let list: numb ...

Posted by Komodo on Fri, 04 Mar 2022 18:26:27 +0100

vue page refresh, data loss, data reset, data cache, data cache, vuex cache

Page refresh data lost In vue, data, vuex store and other data are in memory. Once the page is refreshed, these data will be lost (or reset to the initial value), which will affect the user experience at some times. Cache, recovery If you want to make the data refresh not lost, you have to listen to the page refresh event, cache the data to ...

Posted by jarriola on Fri, 04 Mar 2022 13:03:15 +0100