Shang Silicon Valley - Shang pinhui
catalogue
1. Project catalog analysis:
2. Code for three days first
3. Some knowledge points
Update every three days and summarize the three-day learning results
1. Project catalog analysis:
First, when we get a project, we first analyze its structure, and then divide it into components, we will find some components Pages exis ...
Posted by xzazx on Wed, 08 Dec 2021 02:46:26 +0100
Vue Router: how to implement a front-end routing?
President Liu returns again. Today, the military industry and lithium battery are catching up, which has injected their own wages and strength into China's economy
I believe that for front-end development engineers with a certain foundation, routing is no stranger. It originally originated from the server. In the server, routing describes the ...
Posted by inosent1 on Wed, 08 Dec 2021 01:19:23 +0100
Vue slot usage (easy to understand)
Because in 2.6.0, named slots and scope slots introduced a new unified syntax (i.e. v-slot instruction). It replaces slot and slot scope, and now the Internet is talking about some old versions of content, and the official documents are not easy to understand, so I sorted out an article on the use of slotsThe common understanding of slot is &qu ...
Posted by driver_x on Wed, 08 Dec 2021 00:08:12 +0100
About how JS can activate the third-party map software on the H5 mobile terminal in Vue (Gaode, Tencent, Baidu)
1, First, encapsulate the method to distinguish whether the current environment is ios or android
RunningPlatform() {
let ua = navigator.userAgent.toLowerCase()
console.log('kernel', ua);
// ios
if(ua.indexOf('like mac os x') > -1) {
this.OS = 'IOS'
}
// android
if(ua.indexOf('android') ...
Posted by MFHJoe on Tue, 07 Dec 2021 04:23:10 +0100
41 Vue uses third-party animation Libraries
elaborate
In this section, let's learn how to use the third-party animation library Animate.css in Vue.
There are many finished animations in it, which can bring great convenience to development.
Before learning how to use the third-party animation library, we should first learn a knowledge, which is to customize the fixed CSS animation ...
Posted by assgar on Tue, 07 Dec 2021 03:48:27 +0100
Vue - how Vue monitors data, collects data from forms
catalogue
1, How Vue monitors data
1.Vue monitoring data range
2. How to monitor data in objects
3. How to monitor the data in the array
4. When modifying an element in the Vue array, you must use the following methods:
5. Case display
2, Collect form data
1, How Vue ...
Posted by wendu on Tue, 07 Dec 2021 01:41:54 +0100
[learning notes] play with Vue3 family bucket ---- how to develop web pages like building blocks?
In our project, components are everywhere. Through the encapsulation of component functions, we can develop web pages like building blocks. Next, let's learn about Vue's componentization mechanism.
1, What is component development
vue allows us to customize components and encapsulate a functional template in a. vue fi ...
Posted by Katanius on Fri, 03 Dec 2021 10:44:52 +0100
[VUE project practice] 21. User list development - basic UI layout
Continued< 20. Realize home page routing redirection and left menu routing link> In the previous article, we realized the routing redirection of the home page and the effect of transforming the menu on the left into a routing link. In this article, we formally realized the first function of the menu, user list.
1, Effect to be achieved
...
Posted by nihal on Tue, 30 Nov 2021 21:52:51 +0100
Vuex data flow management
Component communicationParent child component value transferPass data to subcomponents through propsParent<template>
<div>
<h1>Pass values from parent to child</h1>
<child title="My journey with Vue"></child>
</div>
</template>
<script>
import child from './Child'
export default ...
Posted by Kev on Tue, 30 Nov 2021 04:23:29 +0100
vue data bidirectional binding principle summary plus complete code
Step by step implementation of bidirectional data binding
1. reduce() method of array
Application scenario: the initial value of the next operation, which depends on the return value of the last operation
(1) Cumulative calculation of array
Common implementation
const arr = [1,2,3,4,5,6]
let total = 0;
arr.forEach(item=>{
total+=item ...
Posted by benyhanna on Sun, 28 Nov 2021 12:47:16 +0100