accelerometer module sensor
The accelerator module manages the device acceleration sensor, which is used to obtain the device acceleration information, including the acceleration information in three directions: x (screen horizontal direction), y (vertical screen horizontal direction) and z (vertical screen plane direction). Via plus Accelerometer obtains the device accel ...
Posted by ShaolinWood on Mon, 24 Jan 2022 01:06:12 +0100
Function and functional programming
From: Micro reading https://www.weidianyuedu.com/content/4317415636514.html
Throughout all the key knowledge that must be mastered in JavaScript, function is the most easily ignored knowledge point when we first learn. Many people and articles may tell you that object-oriented is very important and prototype is very important, but few people ...
Posted by hypedupdawg on Sun, 23 Jan 2022 23:05:57 +0100
react + taro + dva to realize pull-up loading
The final code is at the end
Basic structure
The main body adopts the scrollView component of taro and sets a fixed height for it to make its sliding effective. An onScrollToLower event is configured to trigger the bottom event.
Drop down scroll component
import React from "react";
import { ScrollView } from "@tarojs/components";
import { ...
Posted by Jalz on Sun, 23 Jan 2022 22:16:12 +0100
The difference between var, let and const
ES6: the difference between VaR, let and const
1, var
In ES5, the attributes of top-level objects are equivalent to global variables. Variables declared with var are both global variables and top-level variables
Note: top level objects refer to window objects in browser environment and global objects in Node environment
var a = 10;
consol ...
Posted by esfisher on Sun, 23 Jan 2022 20:54:43 +0100
In order to practice the micro front end, we reconstructed our own navigation website
The author developed a navigation website in the early stage and always wanted to reconstruct it. He was lazy for several years. Finally, after learning about the micro front-end method, he made up his mind. Because he had no chance to practice at work, he had no choice but to try his own website and think about it. The broken navigation websit ...
Posted by blogger3 on Sun, 23 Jan 2022 19:55:18 +0100
One hour: teach you how to get started
express
brief introduction
Express is based on node JS platform, a fast, open and minimalist web development framework. Build web server
The essence of Express: it is a third-party package on npm, which provides a convenient way to quickly create a Web server.
Using the Express development framework, you can easily and quickly create a Web ...
Posted by midge1970 on Sun, 23 Jan 2022 19:15:00 +0100
Study vue notes
catalogue
First meet vue
vue template syntax class 2
Data binding
Two ways of writing data and el
MVVM model
Event object
Keyboard events
Basic use of events
Name Case
Weather case
Monitoring properties
Depth monitoring
watch vs. computer
Bind class style
Bind style
conditional rendering
List rendering
Function and principle ...
Posted by sajidfiaz on Sun, 23 Jan 2022 18:03:34 +0100
ES6 object new extension
ES6: object new extension
1, Attribute abbreviation
In ES6, when the object key name is equal to the corresponding value name, it can be abbreviated
const baz = {foo:foo}
// Equivalent to
const baz = {foo}
Methods can also be abbreviated
const o = {
method() {
return "Hello!";
}
};
// Equivalent to
const o = {
method: funct ...
Posted by karimali831 on Sun, 23 Jan 2022 17:38:12 +0100
Introduction to js FormData method
1. General
The FormData type is actually defined at XMLHttpRequest Level 2. It facilitates the serialization of tables and the creation of data in the same format as the form (for XHR transmission, of course).
2. Constructor
There are several ways to create a formData object instance
1. Create an empty object instance
var formData = new FormDa ...
Posted by techrat on Sun, 23 Jan 2022 15:20:11 +0100
VUE learning notes 2
1. slot
1.1 slot - basic use of slot
The slot of the component is also to make our package more scalableIt allows users to decide what is displayed inside the component
The basic use of slots is added in the template label Default value button for slot If there are multiple values, they will be used as replacement elements when compo ...
Posted by juancarlosc on Sun, 23 Jan 2022 14:43:44 +0100