The orientation module manages the direction information of the device, including alpha, beta and gamma, through plus Orientation to obtain the device direction management object
The orientation module manages the direction information of the device, including alpha, beta and gamma, through plus Orientation to obtain the device direction management object.
method:
getCurrentOrientation : obtain the direction information of the current device, including alpha, beta and gamma direction informationwatchOrientation : moni ...
Posted by kobayashi_one on Wed, 09 Feb 2022 03:47:29 +0100
Using jQuery,vue implements synchronous requests
In general, asynchronous requests are used in most scenarios, which can be implemented using ajax, axios and other technologies;
The most commonly used method in the middle is the ajax method of jquery; There are also axios of vue in recent years
$.ajax({
url: "XXX",//Request path
data: { param1: jsonObj1, params2: str2... },
...
Posted by Sxooter on Wed, 09 Feb 2022 02:42:13 +0100
Four ways to get data from a foem form: (you can receive data submitted by post and get)
In our daily work or browsing the web, we often use and see many functions and styles of form submission. This function is realized by form form and some JavaScript or jQuery.
Now let's use Visual Studio 2015 to verify it. There are four methods to obtain data from form.
1. Receive the data submitted by the form through formal parameters.
2. ...
Posted by mallard on Wed, 09 Feb 2022 01:55:25 +0100
Hikvision front-end internship telephone
Life cycle of Vue
beforeCreatcreatedbeforeCountcountedbeforeUpdateupdatedbeforeDestroydestroyed
CSS horizontal and vertical centering method (inline elements?)
Reference CSS horizontal center + vertical center + horizontal / vertical center method summary , the summary of this article is very clear.
First, block level elements:
1. Horizont ...
Posted by mpunn on Tue, 08 Feb 2022 21:23:43 +0100
Use of microservices
1. Install Qiankun
npm i qiankun -S
2. Modify main application
The main application is divided into two forms: routing loading and manual loading
Loading in the form of routing, adding the startup code in the startup file, which is suitable for the scenario of replacing sub applications based on a large area, such as switching the home a ...
Posted by efficacious on Tue, 08 Feb 2022 20:56:17 +0100
vue.js project tiktok APP- eleventh: application of login and verification code
[warm tips]: if you want to know more about the actual combat content of this project, you can go to vue.js project tiktok APP- project planning Learn more about project planning.
[project address] The project is managed by Git, and the final project will be released to GitHub. Interested partners can learn together to improve the project. Pro ...
Posted by Mad_T on Tue, 08 Feb 2022 16:47:56 +0100
2. Process control
Statement: all the contents of my front-end learning notes are the learning notes of teacher pink's course on station b. If you want to know more, you can search the following website:
H5C3 + Mobile layout: Dark horse programmer pink teacher front-end introductory video tutorial HTML5+CSS3 + mobile terminal layout flex layout rem layout respo ...
Posted by divadiva on Tue, 08 Feb 2022 15:59:03 +0100
A blog post: js introduction knowledge, worth collecting!
javaScript
1. Background introduction
In order to improve the network speed, it was solved by Brandon Archie of Netscape, who designed js in 10 working days
1. js standard
ECMAScript is a standard, while JavaScript is the language
2. Basic concepts of js
1. What is js
An object-oriented, cross platform, scripting language that relies o ...
Posted by isaacsf on Tue, 08 Feb 2022 15:41:58 +0100
[New Star program] Vue JS actual combat series: project development of video WebApp -- 12 Vuex is introduced to realize data management and login process
If you want to see the rest of this series, please move to Vue.js actual combat series to realize the project development of video WebApp.
Project warehouse address Welcome, Star
Realization effect
Function realization
Introduce Vuex
What is Vuex? Vuex is designed for Vue JS application development state management mode. It ...
Posted by maxedison on Tue, 08 Feb 2022 15:26:03 +0100
Vue3 - Vuex use
Vuex is suitable for complex state management
Install the specified version in Vue3
npm install vuex@next
Basic use process of Vuex
Simple version
Create a folder at the same level as components store / index js
import {createStore} from 'vuex'
const store = createStore({
state(){
return{
count:0
}
},
mutations:{
...
Posted by Aérolithe on Tue, 08 Feb 2022 13:42:16 +0100