Inheritance of js Foundation

inherit Now, we have a drag function to implement: suppose there is a div and we need to implement the drag function on it, then according to our usual way, the implementation method is as follows: // Process oriented const mydiv = document.querySelector(".mydiv"); mydiv.onmousedown = e => { let ev = e || window.event; let x = ev.c ...

Added by ShogunWarrior on Wed, 02 Mar 2022 11:10:54 +0200

[HTML of reconstructing front-end knowledge system] changes brought by HTML5 to web page audio

[HTML of reconstructing front-end knowledge system] changes brought by HTML5 to web page audio introduction I believe everyone is familiar with music playback, but long before the previous music playback, your browser will ask you whether to download the flash plug-in. Now, however, it is estimated that some young developers don't need to kno ...

Added by kausee on Wed, 02 Mar 2022 07:02:06 +0200

vue.config.js configuration

vue.config.js configuration item After the vue-cli3 scaffold is erected, there is no Vue in the project directory config. JS file, which needs to be created manually Create Vue config. js vue. config. JS (equivalent to the previous webpack.config.js) is an optional configuration file. If this file exists in the root directory of the projec ...

Added by carsale on Wed, 02 Mar 2022 06:39:58 +0200

Interpretation of Vue source code -- Analysis of compiler

When learning becomes a habit, knowledge becomes common sense. Thank you for your attention, likes, collections and comments.The new video and articles will be sent to WeChat official account for the first time. Li YongningThe article has been included in github warehouse liyongning/blog , welcome to Watch and Star.Special instructionsDue to th ...

Added by friday_13 on Wed, 02 Mar 2022 03:11:44 +0200

TypeScript from introduction to practice [geek time] update

Website recommendation ts-playground ts Chinese Manual Introduction to ts Type basis Strong type and weak type Strongly typed language: it is not allowed to change the data type of a variable unless it is castWeakly typed language: variables can be assigned different data types Static type and dynamic type Statically typed language: det ...

Added by loureiro on Wed, 02 Mar 2022 02:25:22 +0200

JS object Foundation

preface Finally, I want to learn from you. For our program apes, we will never be single! No object? Impossible! Just one New, ha ha!!! No more nonsense. Let's learn JS objects together! 1, What is the object? Definition: in object-oriented programming, everything is an object! Object is a concrete thing. For example, a star is not an ...

Added by mistcat on Wed, 02 Mar 2022 01:40:49 +0200

Front End Prerequisites--Canvas

Life is meaningless if you don't write code to pretend. It's all 2020. If you're doing front-end development and you don't even use canvas, what do you want to do? Following the author, let's see what canvas is, what it can be used for, and which products are made by canvas. Introduction to Canvas 1.canvas is a new tag for html5, which is a ...

Added by f8ball on Tue, 01 Mar 2022 20:32:29 +0200

MySQL view, stored procedure, variable, function, transaction

MySQL view, stored procedure, variable, function, transaction 1. View Meaning: virtual table, but it is the same as that of ordinary table MySQL5. After 1, the characteristics appear through the data of dynamic production Syntax: create view View name as Query statement Create syntax Does it actually occupy physical ...

Added by martinacevedo on Tue, 01 Mar 2022 17:38:08 +0200

VuePress blog optimization opens Algolia full text search

prefacestay "A blog with VuePress + Github Pages" In, we used VuePress to build a blog. The final effect is as follows: TypeScript Chinese document. Because VuePress's built-in search will only build the search index for the title, h2, h3 and tags of the page. If you need full-text search, you can use Algolia search. This article talk ...

Added by roice on Tue, 01 Mar 2022 15:25:33 +0200

Advanced JavaScript how to get and control HTML elements in JavaScript (explained in detail)

Family, every other day with new knowledge to meet you! Today we are learning how to get and control HTML elements in our JS. If you want to learn JavaScript well, you should persevere in learning it. If you don't understand anything, you can confide in me or comment below and you will reply when you see it. I How to get HTML elements in JS ...

Added by rinteractive on Tue, 01 Mar 2022 12:16:13 +0200