TypeScript learning - 22 JavaScript file type check

JavaScript file type check Typescript versions after 2.3 support the use of – checkJs pairs js file for type check and error prompt. You can ignore type checking by adding the / / @ TS nocheck annotation; Instead, you can check some by removing the – checkJs setting and adding a / / @ TS check comment JS file. You can also use ...

Added by JustGotAQuestion on Mon, 07 Feb 2022 08:03:23 +0200

Native pop-up dialog with HTML5 < dialog > Tag

Dialog boxes and light boxes are widely used in websites and applications. Before that, they need to be customized - use a series of < div > to create containers, set the CSS of dialog boxes to center them, and use Javascript event handlers to show / hide mode boxes. Now, the browser has introduced a new < dialog > tab, which makes ...

Added by ntg on Mon, 07 Feb 2022 07:50:52 +0200

JS --- detailed explanation of BOM of JS

1. BOM overview BOM = Browser Object Model It provides an object that interacts with the browser window independently of the content, and its core object is window BOM consists of a series of related objects, and each object provides many methods and attributes BOM lacks standards. The standardization organization of JavaScript syntax is EC ...

Added by hostcord on Mon, 07 Feb 2022 07:46:04 +0200

TypeScript learning-19 decorator

Decorator introduce With the introduction of classes in TypeScript and ES6, in some scenarios, we need additional features to support labeling or modifying classes and their members. Decorators provide a way for us to add annotations on class declarations and members through metaprogramming syntax. Decorators in Javascript are currently i ...

Added by Timma on Mon, 07 Feb 2022 07:37:06 +0200

Let applet development enter the era of 'tailwind jit'!

Let small program development enter the tailwind jit era!Bring tailwindcss JIT idea into small program development!The author wrote a few months ago tailwindcss-miniprogram-preset Preset, but this preset scheme has very little operability and is not compatible with the Just in time engine of tailwindcss v2/v3. At the same time, there are some v ...

Added by quickphp on Mon, 07 Feb 2022 05:42:59 +0200

Analysis of JavaScript object deconstruction usage

The release of ES6 (ES2015) provides JavaScript with a more convenient and fast way to deal with the properties of objects. This mechanism is called Destructuring (also known as deconstruction assignment). But can you really use it? Do you really understand the usage of deconstruction assignment in various scenarios?Get values from objects usin ...

Added by nbaxley on Mon, 07 Feb 2022 04:43:32 +0200

Vue3&TypeScript pit summary

Installation environment 1.node version above 12 Project creation npm init @vitejs/app + Project name 1. Configure routing router-index.ts npm install vue-router@4 --save import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router"; const routes: Array<RouteRecordRaw> = [ { path: "/", name: "Home", meta: { ...

Added by a-mo on Mon, 07 Feb 2022 03:38:36 +0200

The difference between vue2 and vue3 bidirectional data binding

The new responsive mechanism adopts ProxyApi of ES6 and abandons object defineProperty() Problems in Vue2 bidirectional data binding About objects Vue cannot detect the addition or removal of properties. Because Vue will perform getter/setter conversion on the property when initializing the instance, the property must exist on the data obj ...

Added by hsn on Mon, 07 Feb 2022 02:34:10 +0200

Use of keep alive of vue

Concept: Keep alive is a built-in component of Vue. When it wraps dynamic components, it caches inactive component instances instead of destroying them. Similar to transition, keep alive is an abstract component: it does not render itself as a DOM element or appear in the parent component chain. effect: In the process of component switching, ...

Added by blackmamba on Mon, 07 Feb 2022 02:25:53 +0200

Learn CSS selector, read this article is enough (nearly 20000 words in detail)

Long time no see, I miss you very much! hello everyone! I'm breeze Yangyang. Today's article is to talk to you about CSS selectors in detail. I hope you can gain something after reading them. Then my hard codewords are worth it. If you have the greatest motivation to lose and like your creation, I might as well continue to support you. The nex ...

Added by Topsy Turvey on Sun, 06 Feb 2022 21:47:32 +0200