HTML (required for beginners)
1. Concept
A language that uses tags or tags to describe Web pages and present information to users
2. Hyper Text Mark Language:
Hypertext: the page can contain pictures, links, music, programs and other non text elements
Tag: that is, tag. Different tags realize different functions.
Language: an interactive tool between human and compute ...
Posted by langemarkdesign on Mon, 14 Feb 2022 14:11:23 +0100
10 minutes to get started with Composition API (setup syntax)
Hello, I'm A bowl week , a front end that doesn't want to be drunk. If you are lucky enough to get your favor, I am very lucky~
Write in front
When we write Vue2, the way to write components is to use the Options API. The feature of this way is to write corresponding function modules in the corresponding attributes, such as defining data in ...
Posted by xatter on Mon, 14 Feb 2022 13:10:06 +0100
Who moved my code! 🔥
prefaceAn old project of the company didn't do the verification before code submission. After I got it, I thought about the old project and didn't have time to help it with these. Anyway, I just changed a little something; Try to follow its code style and submit it after writing;Until one day, another person joined in. Good guy, something happe ...
Posted by microthick on Mon, 14 Feb 2022 13:06:50 +0100
typescript basic knowledge sorting
I Foundation typeNever:Throw exceptionFunction expression with no return value🌰// The function returning never must have an unreachable end point
function error(message: string): never {
throw new Error(message);
}
// The inferred return value type is never
function fail() {
return error("Something failed");
}
// The function returni ...
Posted by jrbush82 on Mon, 14 Feb 2022 13:05:40 +0100
Reference and packaging of JavaScript animation functions for front-end learning
Animation function encapsulation
Animation implementation principle
Core principle: continuously move the box position through the timer setInterval().
Implementation steps:
Get the current position of the boxAdd 1 movement distance to the current position of the boxUse the timer to repeat this operation continuouslyAdd a condition to ...
Posted by taith on Mon, 14 Feb 2022 12:57:50 +0100
Develop their own team's front-end development specification documents
Naming conventions
Project naming
All are in lowercase. When multiple words are included, use the middle dash (-) to separate them. Example: my project name
Directory naming
Refer to project naming rules;
When there is a plural structure, the plural naming method shall be adopted.
Examples: utils, images, modes
In vue's project, the comp ...
Posted by jovanross on Mon, 14 Feb 2022 08:05:04 +0100
Use RxJs to implement an Angular Component that supports infinite scroll
First, let's take a look at the runtime effect of my Angular application that supports infinite scroll:https://jerry-infinite-scroll...Scroll the middle mouse button and scroll down to trigger the list to continuously send requests to the background to load new data:The following are the specific development steps.(1) app.component.html source ...
Posted by dcole on Mon, 14 Feb 2022 05:27:32 +0100
async/await you can use it, but do you know how to deal with errors?
prefaceHello, I'm Lin Sanxin. The most difficult knowledge point in the most easy to understand words is my motto. The foundation is advanced, and the premise is my original intentionPromise encapsulation requestIf you usually use Promise to encapsulate the request, when you use this request function:// Encapsulation request function
const requ ...
Posted by nileshn on Mon, 14 Feb 2022 03:44:44 +0100
Explore React synthetic events
Explore React synthetic events 1, What is a composite event React synthetic event is an event object that can simulate all the capabilities of native DOM events, that is, the cross browser wrapper of browser native events. It defines synthetic events according to W3C specification, is compatible with all browsers, and has the same interface as ...
Posted by Lashiec on Mon, 14 Feb 2022 02:34:56 +0100
vue custom instruction usage
preface
1, Vue's custom instructions are divided into?
In addition to the built-in instructions of core functions, vue also allows the registration of user-defined instructions. In some cases, user-defined instructions will be used for the underlying operation of ordinary DOM elements.
User defined instructions are divided into global u ...
Posted by nicky77uk1 on Mon, 14 Feb 2022 00:46:34 +0100