[front end] nk front end - zero basic FED
HTML
Basic label
1 form type
Please write out the following types of input boxes in turn.
The type is password, and the default value is "nowcoder"The type is the check box and the status is checked
<form>
<input type = "password" value = "nowcoder">
<input type = "checkbox" checked = "checked">
&l ...
Added by brianlange on Tue, 25 Jan 2022 19:09:11 +0200
ES6 Promise Usage Summary
What is Promise
Promise is a solution to asynchronous programming. In fact, it is a constructor. It has all, reject and resolve methods, and then, catch and other methods on the prototype. (ps: what is a prototype https://blog.csdn.net/qq_34645412/article/details/105997336 )
Promise objects have the following two characteristics.
(1) The ...
Added by auro on Tue, 25 Jan 2022 17:36:13 +0200
Three browser storage schemes, are you still worried about nowhere to put the data
webStorageBasic conceptswebStorage provides two storage methods, localStorage and sessionStorage.localStorage is a persistent storage, and the stored content will exist permanently if it is not deleted activelysessionStorage is session level storage. Close the browser and destroy itThe specific difference isAfter closing the web page and reopen ...
Added by SensualSandwich on Tue, 25 Jan 2022 15:19:44 +0200
JavaScript class notes II
JavaScript class notes I
7.1 local JavaScript variables
Variables declared inside JavaScript functions (using var) are local variables, so they can only be accessed inside functions.
Variables with the same name can be declared in different functions, because the function fails when the local variable is out of the function.
7.2 global Java ...
Added by tilde on Tue, 25 Jan 2022 12:00:21 +0200
Nailing applet generates pictures from the page through Canvas and saves them to the local album
background
Recently, the company has an account recharge business scenario that needs to be migrated from offline payment to online payment:
Offline payment scenario: customers pay through POS machine or scan the QR code provided by the sales classmate to complete the payment. Then the sales classmate enters the relevant information into the ...
Added by Rheves on Tue, 25 Jan 2022 05:35:29 +0200
Detailed explanation of jQuery events in JavaScript·
Detailed explanation of jQuery events in JavaScript
Because JavaScript runs in a single thread mode in the browser, after the page is loaded, once all the JavaScript code on the page is executed, you can only rely on the trigger event to execute the JavaScript code.
After receiving the user's mouse or keyboard input, the browser will automati ...
Added by iamcaper on Tue, 25 Jan 2022 03:48:07 +0200
Front end Vue JS (to be continued)
reference material: Vue official manual Editor: Hbuider X We need to do a small program development. We have selected the framework of uni app, so we should learn vue first ps: 2022-1-24 updated to Class is bound to Style
Template syntax
Vue.js uses an HTML based template syntax that allows developers to declaratively bind the DOM to the ...
Added by Sware on Tue, 25 Jan 2022 02:50:24 +0200
Packaging and automatic update of Electron application --- case practice, very detailed
In the last article, we introduced some basic knowledge of electron, Get started with Electron and teach you to write complete practical cases Here, we will continue to introduce the packaging and automatic update of Electron based on this project.
Generate Icon
Before packaging the application, prepare an icon for the application as the inst ...
Added by robvan75 on Tue, 25 Jan 2022 02:38:20 +0200
JS basic theoretical knowledge
1. Tell me about your understanding of the box model??
When a document is laid out, the browser's rendering engine will represent all elements as rectangular boxes according to one of the standard CSS basic box model s
A box consists of four parts: content, padding, border and margin
In CSS, the box model can be divided into:
W3C standard b ...
Added by ohjay on Tue, 25 Jan 2022 01:28:17 +0200
Preliminary understanding of Promise
First, we know Promise from console Dir (Promise) start
The prototype method in prototype needs an instance
all race reject resolve is a static method, which is used directly
How to use Promise?
new Promise((resolve,reject) => {
setTimeout(() => {
console.log('implement Promise')
resolve('Data to return')
},2000)
}) ...
Added by IronicSoul on Tue, 25 Jan 2022 00:55:44 +0200