VUE course -- 16. style binding

1, Summary One sentence summary: Style binding (inline style binding) also has object syntax and array syntax. Object syntax is that key value pairs represent style names and style values. Array syntax is that multiple objects representing styles can be placed in an array <div id="app"> <!--Object syntax--> <p :style="{co ...

Posted by justinchrono on Sat, 16 May 2020 06:01:48 +0200

Vue state management Vuex

1. Overview As a plug-in, Vuex manages and maintains the component state of the whole project.   2. Install vuex cnpm i --save vuex   3. Use of vuex github address: https://github.com/MengFangui/Vuex new Vue({ el: '#app', router: router, //Use vuex store: store, render: h => { return h(App) } ...

Posted by Gurzi on Sun, 03 May 2020 22:22:07 +0200

Min UI, a mobile component library based on Vue.js, realizes unlimited scrolling and loading more

By climbing the pit many times, we found the common point of these monitoring scrolls to load more components, Because these load more methods are bound to the elements that need to load more content, Therefore, when the monitor hears the scrolling event, it will continue to load more, So for infinite scrolling, you don't need to write the firs ...

Posted by lyasian on Sat, 02 May 2020 13:01:20 +0200

Vue router nested route

1, Foundation install $ npm install vue //Install vue $ npm install vue-router //Install Vue router Or quote < script > <script src="https://unpkg.com/vue/dist/vue.js"></script> <script src="https://unpkg.com/vue-router/dist/vue-router.js"></script> I'm referring to script directly in HTML here Catalog index.ht ...

Posted by walter8111 on Thu, 30 Apr 2020 22:26:49 +0200

[Vue] status management

Page application needs Vuex to manage the state of global / module. If large single page components rely on events / props to communicate values, they will be coupled together. because This requires unified management of Vuex. Of course, for a small single page application, reference to Vuex will increase the complexity. Therefore, it ...

Posted by notionlogic on Sun, 26 Apr 2020 07:56:09 +0200

Toast of VUE components (VUE. Extend mode)

1, Renderings   Two, explain Such prompt box components are usually called directly in JS code. Like this: this.$toast('Stop it, it's over!')   However, most of the Internet is implemented by component. In this way, we need to place a component element in the DOM when we use it, and then control its display and hiding through a var ...

Posted by deeem on Sun, 19 Apr 2020 16:36:28 +0200

Note: build a simple file search system based on Springboot+Lucene

Different types of files are stored in the file storage system. The background extracts the file name and content through the program. Lucene is used to index the file name and content. The front end provides a query interface for the user. After the user submits the query keywords, the index library is retrieved and the matching documents are ...

Posted by txmedic03 on Sun, 19 Apr 2020 16:23:54 +0200

Angular vs React vs Vue vs UISYS event binding comparison (novice must see)

1. Start from zero Event binding is the second lesson for beginners in web development, and learning event binding represents a new lesson in which you will challenge interaction.Let's first look at what native html + JavaScript does: Native mode: <div> <button onclick="greet()">Greet</button> </div> <script> ...

Posted by Lodius2000 on Fri, 17 Apr 2020 04:30:03 +0200

OAuth2.0-based token senseless refresh

The vue project at hand now has a requirement for permissions, but the architect asked me to do it very early, but because the urgency is not very high, I was reminded of the project coming online recently, so I rushed to make up for it.This project is based on OAuth2.0 authentication and requires that access_token be carried over the head of e ...

Posted by thompsonsco on Wed, 15 Apr 2020 04:08:54 +0200

Lu Feixue city deploying vue+django

Lu Feixue city deploying vue+django   Deployment of Luffy Learning City One day, Ritian sent me two mysterious codes. It's said that they are the crystallization of mjj   I put these two codes on a website. You can download them by yourself Lu Fei Xue Cheng django Code https://files.cnblogs.com/files/tiger666/luffy_boy.zip vu ...

Posted by faizanno1 on Sun, 12 Apr 2020 14:51:09 +0200