Briefly introduce how to use socket in Nestjs and Vue3 io
brief introductionIn this paper, the server takes Nest official template and the client takes Vue3 + Vite official template as an example to briefly introduce how to use socket in Nest project IO instant messaging with Vue3's clients.Initialize projectServer# Install Nest scaffold
$ npm i -g @nestjs/cli
# Create a nest backend project
$ nest n ...
Added by Smifffy on Tue, 25 Jan 2022 22:08:01 +0200
[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
JS basic syntax
Basic JavaScript syntax (2)
8, Function
1. Concept of function
In JS, many codes with the same or similar functions may be defined. These codes may need to be reused. Although the for loop statement can also realize some simple repetitive operations, it has limitations. At this time, we can use the functions in JS
Function: encapsulates a code ...
Added by fleabay on Tue, 25 Jan 2022 15:58:41 +0200
vue realizes the function display of ternary equation by using echarts and mathlive
catalogue
1. Quote mathlive
2. Quote echarts
3.methods
4. Code display
5. Attention
First of all, I searched the Internet for a long time, but I didn't find the information of Eckart's three-dimensional drawing, and took many detours. Therefore, after solving the problem, I recorded the difficulties and solutions here. This pure front-en ...
Added by maiza on Tue, 25 Jan 2022 10:45:25 +0200
Personalized recommendation without login? A detailed explanation of browser fingerprints
In daily life, biometric technology has been the standard configuration of most smart phones. Most mobile phones have face recognition, fingerprint recognition and other functions. At present, fingerprint recognition technology has been very mature. But what we want to talk about today is not fingerprint identification in biometrics, but browse ...
Added by PHPFreaksMaster on Tue, 25 Jan 2022 08:23:54 +0200
Parsing Vue. From JavaScript attribute descriptor JS responsive view
preface
The object of JavaScript is a set of key value pairs, which can have any number of unique keys. The key can be of String type or tag type (Symbol, the basic data type newly added in ES6). Each key corresponds to a value, and the value can be any value of any type. For the properties in the object, JavaScript provides a property descrip ...
Added by mark_and_co on Tue, 25 Jan 2022 04:29:59 +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
[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 audiointroductionI 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 know wh ...
Added by kinaski on Tue, 25 Jan 2022 01:04:22 +0200