vueX of vue state management

preface Over the past few years, I have been struggling in the it industry. Along the way, many have summarized some high-frequency interviews in the python industry. I see most of the new blood in the industry, and I still have all kinds of difficult questions for the answers to all kinds of interview questions or collection Therefore, I dev ...

Posted by Madatan on Mon, 06 Dec 2021 18:43:11 -0800

42 vue3 transition and animation attributes control the transition duration

Build a transition and animation code <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>demo</title> <style> @keyframes comein { 0% { transform: translateX(-120px) ...

Posted by Daveyz1983 on Mon, 06 Dec 2021 18:39:22 -0800

Non single file component of Vue component

Non single file component: a file contains n components   1, Components   Definition of component -- a collection of local function codes and resources in an application Components: Understanding: code set used to achieve local (specific) functional effects (html/css/js...)Why: the functions of an interface are complexFunction: ...

Posted by mazazino on Sun, 05 Dec 2021 04:37:04 -0800

vue2.0 conditional rendering

Conditional rendering instruction 1.v-if and v-else2.v-show <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Vue conditi ...

Posted by todd2006 on Sat, 04 Dec 2021 17:37:15 -0800

Vue Foundation (listener)

What are listeners in vue During development, we defined data in the object returned by data, which can be bound to templat through interpolation syntax and other methods.When the data changes, the data bound in the template will be automatically updated to display the latest data. However, this change is transformed by automatically listening ...

Posted by vigge89 on Fri, 03 Dec 2021 10:33:09 -0800

Modularization related specifications

Modularization related specifications Modular overview Modularization is to encapsulate a single function into a module (file). Modules are isolated from each other, but internal members can be exposed through specific interfaces or rely on other modulesBenefits of modular development: facilitate code reuse, improve development efficien ...

Posted by JJ2K on Fri, 03 Dec 2021 04:26:53 -0800

JAVA - Vue and comprehensive case

1. Vue advanced usage 1.1. Custom components After learning the Element component, we will find that the component is actually a custom label. For example, the encapsulation of. In essence, a component is a reusable Vue instance with a name, which can be defined by ourselves. Define format Vue.component(Component name, { props:Prope ...

Posted by DJH on Wed, 01 Dec 2021 19:51:28 -0800

Go through axios completely and never be afraid to write requests again

axios request method It mainly includes get, post, put, patch and delete get get data post Submit data (form submission + file upload) put Update data (push all data to the server) patch Update data (only the modified data is pushed to the back end) delete Delete data get method Writing method Call type axios.get('/data.json').the ...

Posted by ppera on Tue, 30 Nov 2021 19:32:12 -0800

Simple instructions for vue

Vue Componentization, virtualization dom, MVVM (features) Author of vue: you Yuxi (official website) Vue.js) Use of vue: vue features: What is a component? Encapsulate the code into a component that everyone can use Virtual dom is a virtual space (space for time) Ajax requests an array. How to put it in the array? Add one or more for loo ...

Posted by nofxsapunk on Tue, 30 Nov 2021 08:59:40 -0800

My screenshot plugin was used by Gitee

preface Last Saturday, a group friend @ said that Gitee's feedback module added a screenshot function. I went to experience it and found that they used my plug-in 😁, This article will share this plug-in with you. All interested developers are welcome to read this article. Plug in address and implementation principle This plug-in is impleme ...

Posted by MockY on Tue, 30 Nov 2021 08:22:22 -0800