vuex auxiliary functions mapState,mapGetters,mapMutations,mapActions

auxiliary function In addition to providing our Store object, Vuex also provides a series of auxiliary functions to facilitate the use of Vuex in our code, and provides a series of grammatical sugar to manipulate various attributes of the store. Let's take a look at the following: mapState The mapState tool function maps the state in the st ...

Posted by fussy on Sat, 12 Jan 2019 16:03:11 -0800

8-vue Django restful framework to create fresh supermarket-commodity category data display (part two)

Vue+Django REST framework Set up a website of fresh supermarket with front and back ends separated Django rtf completes the commodity category page vue Displays the List of Commodities Page Data Click on a navigation level class to display the data. Or click on the search to find the results These two functions need to be compl ...

Posted by joel danny on Thu, 10 Jan 2019 12:36:10 -0800

29 - Analysis of Resolver.prototype.resolve of webpack source code

In the previous section, we finally returned a resolver, essentially a Resolver object: resolver = new Resolver(fileSystem); The constructor of this object is very simple. It simply inherits Tapable and receives the fileSystem parameter: function Resolver(fileSystem) { Tapable.call(this); this.fileSystem = fileSystem; } module.export ...

Posted by hubbardude on Tue, 08 Jan 2019 16:33:09 -0800

Source Code Analysis of Vue Learning--Vue.js Asynchronous Update DOM Strategy and nextTick(8)

Operating DOM When using vue.js, sometimes you have to operate DOM because of some specific business scenarios, such as: <template> <div> <div ref="test">{{test}}</div> <button @click="handleClick">tet</button> </div> </template> export default { data () { return { ...

Posted by smerny on Sun, 06 Jan 2019 08:03:11 -0800

FE - The Way to Node and Webpack - Must Know Vue Router!

Recommended information vue-router 2 Some things in the data are not understood, which can be found in this paper. (No, comment or personal trust) 1. Installation and configuration Installation: npm install vue-router -D (-save-dev) To configure: For ease of use, a new router.js is created to register and configure VueRouter, such ...

Posted by shefali on Sat, 05 Jan 2019 18:12:09 -0800

Build and use K8s cluster < use ingress to expose spring cloud service >

Exposing Spring cloud services with ingress The k8s cluster has been successfully built and can be deployed, but it is impossible to check the running node and nodePort every time you visit the service. Even if you check the node and nodePort, you can't avoid restarting k8s or Replication Controller, node and nodeport will change again. K8s p ...

Posted by abigail on Thu, 03 Jan 2019 19:57:09 -0800

Using asp.net as the back end and combining Vue.js with axios and vue-infinite-scroll to realize rolling loading

Rolling load, or infinite load, is a very popular way to display lists nowadays. When the content of a list is too long, it usually needs to be displayed in the form of pagination, but it seems very inhumane to always need users to click on the next page, so the technology of rolling loading comes out. As long as the content scrolls to the bott ...

Posted by sinisake on Tue, 01 Jan 2019 10:24:08 -0800

Node+Express+Vue+Element+MySQL Simple Implementation of Front-end and Back-end Separation

Source code 1. Installing node environment Please refer to the specific installation tutorial. http://nodejs.cn/ 2. Tower Construction Vue Front End Project Using vue-cli scaffolding provided by Vue official website vue-cli command-line tool # Global Installation vue-cli $ npm install --global vue-cli # Create a new project based on Web pack te ...

Posted by lasse48 on Mon, 31 Dec 2018 12:03:08 -0800

Vue-SSR Series (1) vue2.0+node+express+webpack to realize vue-ssr server rendering of single-page Application small demo

First, what is server-side rendering (SSR)? Roughly speaking, the server splices the static pages requested by users and returns them directly to the client. The client activates these static pages to make them dynamic and responsive to subsequent data changes. Second, why use server-side rendering (SSR)? 1. Better SEO, because sea ...

Posted by kcomer on Wed, 26 Dec 2018 14:18:06 -0800

Front-end MVC Vue2 Learning Summary (6) - axios and cross-domain HTTP requests, Lodash Toolkit

I. axios When Vue is updated to 2.0, it is declared that it will no longer update vue-resource. It is recommended to use axios, a component for client-server communication, and axios, an HTTP client javaScript tool based on Promise for browsers and nodejs. Generally speaking, the client can request the service provided by the server to obtain ...

Posted by PhpxZ on Tue, 25 Dec 2018 20:36:08 -0800