HTML basic structure, tag, list
Relationship between HTML, CSS and JS
HTML is the skeleton of web pages, which is mainly responsible for the structure of web pagesCSS provides styles for web pages to beautify and decorate web pagesJavaScript is a scripting language used to control DOM elements, which is mainly used for DOM processing of front-end pages
Mainstream browse ...
Posted by srdva59 on Thu, 03 Mar 2022 17:57:18 +0100
Vite2 + Vue3 + TypeScript + Pinia build an enterprise level development scaffold [worth collecting]
Hello, everyone. I'm xy???. It has been a year since I first came into contact with vue3 version. Due to vue3 With the release of version 2, the experimental mark of < script setup > has been removed, and many companies have started to use vue3 2 development project. This article is to help you how to quickly use vue3 x. typeScript, vite ...
Posted by limitedreality on Thu, 03 Mar 2022 17:45:21 +0100
React page does not refresh
Today, I write about the react project of the laboratory. One of the States is an array (be careful when you see that the state is an array. There are many pits!!!)
After operating on the array, the page does not refresh. After repeated tossing, it is reduced to the following code:
import React, { Component } from 'react'
import { Table, Tag, ...
Posted by JustinMs66 on Thu, 03 Mar 2022 17:38:18 +0100
Unit webgl loads assetbundle (nodejs build server)
This article is a study record. I dug a hole for myself to fill in.
Step 1: Pack ab
After establishing the corresponding path Assets/AssetBundles folder, you can go to the menu ("Assets/Build AssetBundles") and click the button to package.
public class CreateAB : MonoBehaviour
{
[MenuItem("Assets/Build AssetBundles")]
stati ...
Posted by freebie on Thu, 03 Mar 2022 16:48:47 +0100
vite + vue3 + setup + pinia + ts project practice
introduce
A project developed by using vite + vue3 + pinia + ant design Vue + typescript complete technical route, with the launch of second level development update, the new vue3 composition api combined with setup to enjoy the silky development experience, the new pinia state manager and excellent design experience (1k size), the barrier fre ...
Posted by Ionisis on Thu, 03 Mar 2022 16:12:00 +0100
React learning notes - extended content
1. setState
There are two ways to update the state using setState.
Object expression is the abbreviation of function expression (syntax sugar).
Use principle (not required):
The new state does not depend on the original state = = > use objectThe new state depends on the original state = = = > use functional expressionIf you need to ge ...
Posted by Yaak on Thu, 03 Mar 2022 15:52:58 +0100
The third day of jQuery study
The third day of jQuery study
1. Event registration
grammar
element.event(function(){})
for example
$("div").click(function(){})
2. jQuery event handling
2.1 event handling on() binding event
grammar
element.on(events,[selector],[data],fn)
Events: trigger events, separated by commas Selector: select descendants of selector elemen ...
Posted by endlyss on Thu, 03 Mar 2022 15:03:47 +0100
Callback function and callback function
catalogue
1, Promise object
1. Callback function
2. Synchronization task
3. Asynchronous task
4. Callback Hell: the case of nesting callback functions in callback functions is called callback hell (an operation method to realize the sequential execution of code)
5. Solution to callback hell
6. About Promise objects
2, async and await fu ...
Posted by luvburn on Thu, 03 Mar 2022 14:31:07 +0100
How does Vue listen for array changes
How does Vue listen for array changes
We know through object DefineProperty () hijacking an array to set getter and setter, the push, splice, and pop methods of the array to be invoked will not trigger the setter of the array when changing the array elements. This will result in the change of the array after using the above method, and the cha ...
Posted by ym_chaitu on Thu, 03 Mar 2022 13:21:43 +0100
Detailed explanation of event delegation or event agent in js
1. Overview:
(1) What is event entrustment?
It also has a name called event agent In terms of JavaScript Advanced Programming: event delegation is to use event bubbling and specify only one event handler to manage all events of a certain type. What does that mean? The leaders on the Internet basically use the same example of event entrustment ...
Posted by kapishi on Thu, 03 Mar 2022 11:34:04 +0100