Inheritance of JS foundation and methods of implementing inheritance

1, What is inheritance? First, let's understand what prototype chain is: JavaScript stipulates that all objects have their own prototype. On the one hand, any object can act as the prototype of other objects; On the other hand, because the prototype object is also an object, it also has its own prototype. Therefore, a "prototype chain&quo ...

Added by olanjouw on Fri, 07 Jan 2022 21:18:28 +0200

[Typescript user manual] function

🚀 [TypeScript Introduction Manual] records the concept of Ts with high attendance rate, which is designed to help you understand and be familiar with Ts 🎉 This series will continue to be updated and corrected, focusing on the points of interest to everyone. Welcome to leave messages and exchange, and encourage each other on the way to advanc ...

Added by ramesh_iridium on Fri, 07 Jan 2022 13:20:08 +0200

[suggested stars] 13 implicit type conversion interview questions let you enjoy it all at once

prefaceThis is one of my series of articles on basic JavaScript, which mainly records type conversion, equality judgment and operator priority in JavaScript. At the end of the article, some common type conversion interview questions are prepared. After reading this article, I believe these questions are so easy for you. The daily blog is record ...

Added by igor berger on Fri, 07 Jan 2022 12:34:04 +0200

How to set the last updated time of VuePress blog optimization

prefacestay A blog with VuePress + Github Pages In, we built a blog using VuePress, but browse the final site: TypeScript4 Chinese document , we will find that the last update time does not appear at the bottom of each article as in the official VuePress document:In this article, let's explore how to achieve the final update time.OfficialReview ...

Added by saish on Fri, 07 Jan 2022 11:52:30 +0200

WebGIS development drawing map annotation

catalogue Implementation steps 1. Reference development library: 2. Create a map container: 3. Create a map object class: 4. Add vector layer: 5. Add picture labels: 5.1 creating picture annotation elements 5.2 setting the style of picture annotation elements 5.3 adding picture labels to layer data sources 6. Add text annotation: ...

Added by StirCrazy on Fri, 07 Jan 2022 09:37:32 +0200

Functions and scopes

(1) Function declaration function call Function is to encapsulate (package) multi line function, and element function is to run multi line code encapsulated by function Function declarations and callsObject. alert is a method of the window objectDeclaration of functions and variables in advanceFunction expression (1) Declaration and call of f ...

Added by zeno on Fri, 07 Jan 2022 08:46:25 +0200

It's time to master the cloud development of applets ~

original intentionFrom the explosion of wechat Xiaocheng in 2018 to the current applet and cross platform applet framework. It has appeared in everyone's life for three years, and has been used more and more deeply. After several years of development, wechat has officially provided a cloud development model. I was thinking that as a developer, ...

Added by skippence on Fri, 07 Jan 2022 06:10:54 +0200

10 tricky JavaScript snippets for interviews

Job interviews are not entirely predictable, but we still often see common thorny problems. Let's take a look at 10 of them, which often appear in interviews. "I am an old programmer who has been engaged in Web front-end development for 6 years. At the beginning of this year, I spent a month sorting out a full set of Web front-end trai ...

Added by robotta1530 on Fri, 07 Jan 2022 04:13:30 +0200

Vue dynamic binding class

When learning js, we learned how to dynamically switch element styles. The specific steps are as follows: Get element first Modify the style. Modify through className or style <head> <style> .class1 {         border: 1px solid black;         height: 20px;         width: 20px;       } </style> </head> <body&gt ...

Added by aperales10 on Fri, 07 Jan 2022 03:04:20 +0200

Refactoring Webpack Series 6 - Configuration Files

Refactoring Webpack Series 6 - Configuration Files I. Basic Usage The configuration files for webpacks are different. This is because the configuration file for the webpack is a JavaScript file, in which an object for the webpack configuration is exported, and then the webpack is processed according to the properties defined by the configur ...

Added by Bee on Thu, 06 Jan 2022 19:27:30 +0200