Knowledge points of Dom and BOM

1. Find elements: (1). There are 4 kinds of element objects that can be obtained directly without searching: document.documentElement - document.head - document.body - document.forms[i] - (2). If you have obtained an element object, when you find the element object around you, you can use the search by the relationship between nodes: 2 ...

Posted by shadypalm88 on Mon, 07 Mar 2022 21:02:55 +0100

HTML+JS+websocket actual combat "Yu GI Oh" online card game

At the beginning of this chapter, we will combine js code to see the implementation of specific functions of the game. The general plan is to first introduce the basic functions throughout the game, and then introduce them one by one according to different function keys and function blocks. The functions related to online in the function will b ...

Posted by everisk on Mon, 07 Mar 2022 20:47:18 +0100

JavaScript - PC side web page special effects

catalogue 1, Element offset offset series 1. offset overview 2. Common attributes 3. Difference between offset and style Case - coordinates of mouse in box Case - drag modal box Case - Jingdong magnifying glass 2, Element viewable area client series flexible source code analysis Execute function now pageshow event 3, Element scroll ...

Posted by davidmuir on Mon, 07 Mar 2022 17:06:35 +0100

CSS - Crazy God notes

CSS: 1, Simple understanding CSS selector, beautify web pages (beautify text, shadow, hyperlink, list beautification, gradient), box model, web page animation. <style> h1{ color:red; } </style> Syntax: Selector{ Statement 1; Statement 2; } 3. Two ways of writing external styles Linked: <link rel="stylesheet" href="css/ ...

Posted by trex005 on Mon, 07 Mar 2022 15:02:00 +0100

Inheritance and reference of templates in Django

Introduction: you can find a website at will, such as Taobao. Look at its different pages and use your big shining eyes to find the differences and similarities. As like as two peas, you will find that there are some different pages in the website, and some of them are exactly the same. And some data are as like as two peas. The layout of their ...

Posted by baccarak on Mon, 07 Mar 2022 14:26:23 +0100

Usage and difference of js call(), apply(), bind()

1. call() Syntax: fun.call(thisArg,arg1,arg2,...) fun: represents a functionIf the object "this" and "this" are to point to the global object, then "this" and "this" are to point to the global object;Starting from arg1, it is the parameter to be passed to fun. characteristic: fun.call(thisArg,arg1 ...

Posted by mariocesar on Mon, 07 Mar 2022 10:46:41 +0100

[js30 Wes BOS] Gallery effects realized by Flex container

title: [native javascript project] Flex Panel 05date: 2021-11-17 20:10:40tags: native javascript projectcategories: 30 native javascript projectsintroductionThis paper introduces a dynamic screening web page. The knowledge points mainly involve flex container and element click events.Effect website: https://janice143.github.io/f...text1, html p ...

Posted by jimmygee on Mon, 07 Mar 2022 10:03:31 +0100

TypeScript learning notes - Omit

After version 3.5, TypeScript added an omit < T, k > type. Omit < T, k > types can exclude some attributes from inherited object attributes. type User = { id: string; name: string; email: string; }; type UserWithoutEmail = Omit<User, "email">; // Equivalent to type UserWithoutEmail = { id: string; name: string; }; ...

Posted by echo10 on Mon, 07 Mar 2022 09:36:02 +0100

Implementation of Vue quill editor customization function (undo, redo)

Record the problems encountered in recent work. The requirement is to customize the undo and restore functions in Vue quil editor rich text: undo and redo. install npm install vue-quill-editor -S Of course, you can also use CDN. Here we talk about NPM installation Mount in component import 'quill/dist/quill.core.css' import 'quill/dist/qui ...

Posted by cowboysdude on Mon, 07 Mar 2022 04:29:49 +0100

Ruoyi Vue: detailed explanation of permission system design

This article attempts to explain why it is "trying" according to the permission design principle and actual combat in Vue system? Because this is also groping for understanding, not necessarily accurate According to Vue, the functions of permission management in the system are concentrated in the system management menu module, as sho ...

Posted by joshbb on Mon, 07 Mar 2022 02:53:44 +0100