js basic problems

JS 1.this pointing problem this points to a deeper understanding of the address (1) Function call, this points to its caller function foo() { console.log(this.bar); } var bar = "bar1"; var o2 = {bar: "bar2", foo: foo}; var o3 = {bar: "bar3", foo: foo}; foo(); // bar1 o2.foo(); // bar2 foo.call(o3); // bar3 (2 ...

Added by Txtlocal on Mon, 24 Jan 2022 01:31:36 +0200

vue editor web shop decoration rapid development template npm vue jsonschema form

This editor is extracted from the open source project: Vue JSON Schema Form The Editor section It is extracted to facilitate secondary development, use and learning Original author: Liu Jun Official website: https://vue-json-schema-form.lljj.me/ Primary directory structure: Route - route Vue route directory │ └─routes └─views └─editor Table ...

Added by dexter_sherban on Sat, 22 Jan 2022 01:20:07 +0200

TS snake project details

Project introduction The project is completed by using the object-oriented idea in ts language. preface After learning the TS project, it is a good choice to practice with this project. Here is a process of js - > ts. js is a process oriented language and TS is an object-oriented language. This is the biggest difference between the ...

Added by polywog on Wed, 19 Jan 2022 17:53:41 +0200

TypeScript advanced types and usage

This article introduces the usage scenarios of advanced TypeScript types in detail, which can provide some help for the daily use of TypeScript. preface This article has been included in Github: https://github.com/beichensky/Blog In the middle, pass by and point a Star 1, Advanced type & cross type Cross type is to combine multiple typ ...

Added by colmtourque on Tue, 18 Jan 2022 08:29:03 +0200

vite + vue3 + ts Usage Summary

At this stage, the use of vite + ts in the development of vue3 projects should have become a standard paradigm. The new syntax experience vue composition api is combined with script setup. Who knows? In terms of development and construction, vite, as a next-generation construction tool, must be understood by everyone. Using ES6 module + ESbuild ...

Added by miro_igov on Mon, 17 Jan 2022 14:52:45 +0200

Come to markdown editor md-editor-v3 in Kangkang vue3 environment. It supports tsx and dark mode~

Development background All this comes from developing vue3-admin There is no appropriate editor component when the demo content of. explain It can only be used under vue3 project, developed with jsx syntax, and used in tsx project. To reduce insertion, less. Is not used Modifyvars method to switch topics, instead of replacing the class name. ...

Added by russellpehrson on Mon, 17 Jan 2022 09:39:32 +0200

Drag the mouse to create a selection and select the element

Welcome to personal blog website: Firefly forest: https://blog.xkongkeji.com Recently, to make an editor, you need a function of dragging and dropping the selection area with the mouse to facilitate batch selection of elements and corresponding operations. All of you have this article. Effect display Create selection component 1. To sele ...

Added by halojoy on Mon, 17 Jan 2022 09:34:42 +0200

Explain the implementation principle of Jest framework in simple terms

English Version | Chinese version Explain the implementation principle of Jest framework in simple terms https://github.com/Wscats/jest-tutorial What is Jest Jest is a JavaScript testing framework developed by Facebook, which is used to create, run and write JavaScript libraries for testing. Jest is published as an NPM package and can be i ...

Added by tmayder on Sun, 16 Jan 2022 15:55:47 +0200

Handwritten signing and approval of online documents under React framework

Based on the Office core technology independently developed by Yongzhong Software Co., Ltd. for more than ten years, Yongzhong cloud service platform provides a variety of Saas services for document processing and processing, and realizes a variety of functions such as document online preview, document online editing, document format conversion ...

Added by FramezArt on Sat, 15 Jan 2022 05:35:07 +0200

TypeScript writing for sorting

Several ways to write sorting using typescript 1. Bubble sort Bubble sorting is a simple sorting algorithm. It repeatedly visits the sequence to be sorted, compares two elements at a time, and exchanges them if they are in the wrong order. The work of visiting the sequence is repeated until there is no need to exchange, that is, the sequence h ...

Added by angelorigo on Sat, 15 Jan 2022 05:28:24 +0200