Super practical vue tips. It's great to call directly after using it~
1. Prototype injection
Global properties and methods can be defined this wayEasy to call and obtainGenerally, there are not many definitions (it will pollute the prototype, and Vue will bring it with each instance)
// main.js entry file
import Vue from "vue";
import router from "./router";
import store from "./store";
import dayjs from ...
Posted by SpinCode on Thu, 20 Jan 2022 04:10:04 +0100
Recent bug collection
The four front-end bug s in the recent personal learning process are only personal records. Please be careful for reference!
catalogue
bug [ @multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js ]
Bug ['Vue cli service' is not an internal or external command, nor is it a runnable program]
bug [ npm ER ...
Posted by ManicMax on Thu, 20 Jan 2022 02:49:34 +0100
Vite + vue3 + Vue router + vuex + CSS preprocessor (less/sass) configuration guide - the most detailed series in the whole network
@[TOC](Vite+Vue3+Vue Router+Vuex+CSS preprocessor (less/sass) configuration guide - the most detailed series in the whole network)
Official Chinese documents of Vite Vue3 official Chinese document Vue Router 4.x Official Chinese documents Vuex 4.x Official Chinese documents
This article only introduces the detailed steps of using Vite to buil ...
Posted by My220x on Wed, 19 Jan 2022 21:03:13 +0100
Front end common interview basic questions
1, Self introduction
1.1 name, graduation school (can be said or not), project experience, age and working years
2, vue correlation
2.1 routing mode: the difference between hash mode and history mode
1.The appearance of the path:
stay vue There are in the routing configuration of mode The most intuitive difference between options is url in ...
Posted by cleary1981 on Wed, 19 Jan 2022 20:48:00 +0100
[note] Vue+Spring Boot front and back end separation development practice project - library management system
1, Effect display
main interface:
Add books:
Modify interface:
2, Front end implementation
1,Vue.cli build project
Enter vue ui on the command line (UI interface with vue version above 3.0)
vue ui
Manually create the project and select the following configuration to use: Wait until the project is created, because the bac ...
Posted by avvishnu on Wed, 19 Jan 2022 17:27:28 +0100
Compatibility problems such as video peer level, disabling progress bar, etc
Based on video JS usage problem
These problems are encountered in my project. My project is to set problem points for video. Users can't click the progress bar to fast forward when watching. They can fast forward what they have seen. When they encounter problem points, they will pause and pop up questions. If they answer correctly, they can co ...
Posted by eyedol on Wed, 19 Jan 2022 15:53:53 +0100
props value transfer mode and verification
1. Case of prop
attribute names in HTML are case insensitive, Therefore, the browser will interpret all uppercase characters as lowercase characters. This means that when you use a template in the DOM, The prop name of camelCase (hump naming method) needs to be named with its equivalent kebab case (short horizontal line separated naming). Don ...
Posted by herschen on Wed, 19 Jan 2022 13:29:07 +0100
Three stages of Java learning - Ajax cross domain request problem
1. Ajax in jquery
1.1 $.ajax description
/**
* $.ajax Relevant description
* 1.{key:value}
* 2.type: ajax Request method: get/post/put/delete
* 3.Simplify $ get(..) $.post(...) $.getJSON(...)
* 4.url: Remote server address
* JSONP: JS End - to - end is a mechanism to solve cross - domain problems ...
Posted by lisa3711 on Wed, 19 Jan 2022 12:31:38 +0100
Vue3 -- ref & reactive & toRefs & toRef responsive reference
preface
We learned in the last section setup function In this section, we will solve this problem.
Responsive citation principle
The data is encapsulated by proxy. When the data changes, the template content update is triggered.
ref
Function: accept an internal value and return a responsive object;Processing: generally used to pro ...
Posted by KILOGRAM on Wed, 19 Jan 2022 09:22:45 +0100
Learn the use of VUE filters and listeners from scratch
filter
Basic Usage
Filters are commonly used for text formatting and can be bound to the v-bind attribute. They are added to the tail of js and called by the "pipe character". They can only be used in Vue 2.0.
For example: < p > the value of message is {{message | capitalize} < / P > use the pipe character to call ...
Posted by exoskeleton on Wed, 19 Jan 2022 00:13:16 +0100