Prototype and prototype chain in JS (illustration)

Prototype and prototype chain in JS When talking about prototypes, we should first remember the following points, which are the key to understanding prototypes: 1. All reference types (arrays, functions, objects) can freely extend attributes (except null). 2. All reference types have a_ proto_ _ Property (also known as implicit prototype, wh ...

Added by izzy on Fri, 04 Feb 2022 03:02:23 +0200

[JQuery Mobile mobile application development practice] JQuery Mobile foundation - page and dialog box

JQuery Mobile foundation 1. Page and dialog box This chapter introduces the method of using page control in JQuery Mobile with examples. Page control is not only a very important control in JQuery Mobile, but also an essential control. Although the usage is simple, it can reflect the depth of programmers' understanding of coding. This ...

Added by texerasmo on Thu, 03 Feb 2022 20:44:49 +0200

[Use babel to handle ES6 syntax]

Using babel to handle ES6 syntax Index. Write some ES6 syntax in the JS file const arr = [ new Promise(() => { }), new Promise(() => { }), ] arr.map(item => { console.log(item) }) Package using the npx webpack command (webpack-dev-server is not used here because the packaged files are placed directly in memory, making ...

Added by susi on Thu, 03 Feb 2022 19:16:52 +0200

How to implement a min webpack?

Today, let's implement a simple packaging tool File dependency src ├─ a.js ├─ b.js ├─ c.js └─ index.js [external chain picture transfer failed. The source station may have anti-theft chain mechanism. It is recommended to save the picture and upload it directly (img-xxkfcw02-1643883138652)( https://raw.githubusercontent.com/nxl3477/md-img-sto ...

Added by heinrich on Thu, 03 Feb 2022 14:58:45 +0200

Using Vue JS build background management system

vue.js is the core * element UI is a support Vue JS UI component library * mock JS: since there is no back-end interface, you need to use local data to pretend to be back-end data. Technology stack vue.js+element UI+mock.js Initialize project use first vue-cli Initialize a project structure [if you haven't installed it yet vue-cli,S ...

Added by JakeTheSnake3.0 on Thu, 03 Feb 2022 11:43:54 +0200

Differences among let, const and var in JavaScript

stay In ES5, declared variables have only var and function has two forms. However, the variables declared by var have certain disadvantages (the problem that the inner variables may cover the outer variables and the circular variables used to count are leaked to global variables, which are described below), ES6 proposes the use of let an ...

Added by Waxxy on Thu, 03 Feb 2022 11:20:58 +0200

ViewPager implements the second section of an automatic rotation chart

The general framework of the viewpager in the previous section has been set up. We found that there is a rotation picture, that is, it can't rotate automatically, and can only slide left and right manually, and it can't slide indefinitely. If you slide to the beginning and end in order, you can't move. Next, we'll realize how to make the pictur ...

Added by whir on Thu, 03 Feb 2022 07:31:46 +0200

Three.js to realize the 2022 Winter Olympics Theme 3D interesting page 🐼

backgroundWelcome the Winter Olympics and look forward to the future together! 2022 Winter Olympics will begin soon. This paper uses three JS + react technology stack realizes winter and Olympic elements, and makes a 3D page full of interesting and commemorative Winter Olympic theme. The knowledge Points involved in this paper mainly include To ...

Added by actionsports on Thu, 03 Feb 2022 06:59:48 +0200

8, Event handling -- review notes of warm boiled water

preface The notes are miscellaneous this time 1, Basic usage of events in Vue (1) Review event usage in native JavaScript Three elements Get event source (which object is triggered) Binding event, event type (how to trigger, click or keyboard input, etc.) Add event handler (what to run) Using events in this way is complicated. Let's lo ...

Added by jstinehelfer on Thu, 03 Feb 2022 06:43:13 +0200

jQuery quick start learning notes

0. Why learn jQuery? jQuery is very useful! Get started quickly and operate DOM quickly!If you are interested in some web scripts, jQuery is a good helper. Combined with the three swords, it can help you automatically complete the automatic questionnaire filling and some web page repeated operationsFor web pages such as rotation map and waterf ...

Added by sitorush on Thu, 03 Feb 2022 05:19:28 +0200