Use ES6 new Target to simulate abstract classes

Recently, we found that symbol is a unique value, but symbol cannot perform new operation. It can only be used as a function. Type errors will occur when running newnew Symbol() // error Uncaught TypeError: Symbol is not a constructor at new Symbol (<anonymous>) at <anonymous>:1:1If the underlying implementation is not cons ...

Posted by lox on Thu, 27 Jan 2022 03:03:15 +0100

From 0-1 super detail, you can read excel form from the front end and render it to the interface

@ This paper aims to solve the need for the front-end to read the table file, obtain the file content and render to the interface without calling the back-end interface My other articles can address expansion requirements: Perform automatic cell merging after reading the parsed table After reading the parsing table, the cell color is automatic ...

Posted by newbie79 on Thu, 27 Jan 2022 02:10:14 +0100

React router ----------- use of react router DOM V6 new features

1. Installation dependency npm i react-router-dom 2. Introduce the components required for routing and page components import { BrowserRouter, Routes, Route } from 'react-router-dom'; import Foo from './Foo'; import Bar from './Bar'; ​ function App(){ return ( <BrowserRouter> <Routes> < ...

Posted by Lambneck on Wed, 26 Jan 2022 19:10:34 +0100

vue dynamic component source code analysis

Basic use // vue <div id="app"> <button @click="changeTabs('child1')">child1</button> <button @click="changeTabs('child2')">child2</button> <button @click="changeTabs('child3')">child3</button> <component :is="chooseTabs"> </component> </div> // js var child1 = { template: ...

Posted by nev25 on Wed, 26 Jan 2022 18:14:37 +0100

Generate Excel spreadsheet from the server (Node.js+SpreadJS)

Node.js is a JavaScript running environment based on Chrome V8 engine, which is usually used to create web applications. It can handle multiple connections simultaneously and is not thread dependent like most other models. For Web developers, the scenario of obtaining data from a database or Web server and then outputting it to an Excel file f ...

Posted by shadow1200 on Wed, 26 Jan 2022 14:24:17 +0100

vue parent-child component communication [case explanation]

Parent component communicates with child component The parent component wants to communicate with the child component through props in the child component props Type: Array | Object Details: props can be arrays or objects that receive data from parent components. props can be a simple array or use an object as an alternative, which a ...

Posted by leequalls on Wed, 26 Jan 2022 12:40:26 +0100

Non props attribute of VUE3

1. General Murphy's law tells us that people are always easy to make mistakes. No matter what degree of technology development or who they are, mistakes will always happen inadvertently. Therefore, when doing important things, we'd better try to estimate all possible errors, think about the remedial plan after the error, and then prepare one or ...

Posted by rptasiuk on Wed, 26 Jan 2022 12:31:18 +0100

Introduction to Cesium - environment construction

What is Cesium Cesium is a cross platform and cross browser javascript library for displaying 3D Earth and map Cesium uses WebGL for hardware accelerated graphics, which does not require any plug-in support, but the browser must support WebGL: Cesium is an open source program based on the Apache 20 license. It can be used for commercial ...

Posted by acidbox on Wed, 26 Jan 2022 11:46:16 +0100

JavaScript class notes I

1. Overview 1.1 what is JavaScript? 1.1.1 concept JavaScript is a scripting language, which is an interpretative scripting language (the code is not precompiled) JavaScript is a lightweight programming language. JavaScript is programming code that can be inserted into HTML pages. When JavaScript is inserted into an HTML page, it can be ex ...

Posted by nymall on Wed, 26 Jan 2022 06:45:41 +0100

JavaScript foundation of front end

JavaScript JavaScript is a programming language that provides dynamic interaction features for websites. Bring js file into the page 1. Create a new folder scripts 2. Create a new file main JS file let myHeading = document.querySelector('h1'); myHeading.textContent='Hello World!'; 3. Page import js file The position is between the lab ...

Posted by abs0lut on Wed, 26 Jan 2022 05:09:27 +0100