Vue cli installation and basic use of axios

Vue cli installation and basic use of axios   Vue cli is a very convenient scaffold, which can be installed according to the rookie tutorial Address: http://www.runoob.com/vue2/vue-install.html Just follow the rookie tutorial all the way. If there is no npm or cnpm (Taobao image), please go to the node official website to d ...

Posted by MasksMaster on Thu, 02 Jan 2020 15:08:33 +0100

Vuejs2.0 vscode router front and back end separation permission background basic template of vueAdmin

I think it's a good open source project, so I'll collect data to analyze it carefully and help more people to step into the development of background system as soon as possible. I don't give too much explanation about VSCode, which is a popular editor recently. The following reference materials have a detailed explanation T ...

Posted by gruzaw on Wed, 01 Jan 2020 23:43:35 +0100

vue server rendering add cache

cache Although the server-side rendering (SSR) of Vue is quite fast, due to the overhead of creating component instances and virtual DOM nodes, it cannot match the performance of pure string based templates. When SSR performance is critical, using cache strategy wisely can greatly improve response time and reduce server load.   vue service area ...

Posted by Gabriel_Haukness on Tue, 31 Dec 2019 08:48:38 +0100

Application of axios in vue.js

introduce Axios is a promise based HTTP library that can be used in browsers and node.js. It is also the library recommended by the author of vue.js Realization function Create from browser XMLHttpRequests Create from node.js http request Support Promise API Intercept requests and responses Transform request data and response dat ...

Posted by vocoder on Mon, 02 Dec 2019 01:39:05 +0100

vue-02: common attributes of vue

vue-02: vue common properties I. vue attribute set 1. Attribute set: v-bind,v-if,v-else-if,v-else,v-for,v-html,v-model,v-on,v-once,v-pre,v-show,v-text 2. V-bind / html/text: - any Picture introduction:         Introduction to use: // dom attribute assignment <li v-for="(item,key) in nameList" v-bind:key="key"> {{ ...

Posted by Rabea on Sat, 30 Nov 2019 07:09:39 +0100

How to use protobuf in front end

A while ago, I shared an article: How to use protobuf in front end Has been a lazy cancer attack and has dragged the node page to the present day.In the last share, many students had some discussions about why Protobuf should be used in front-end, indicating that the front-end is not suitable for protobuf.Our company uses protobuf together on ...

Posted by Branden Wagner on Thu, 21 Nov 2019 01:08:33 +0100

Vue cli project template file description asynchronous request

This article is the http part of src directory under vue/cli, with project structure reference Description of Vue cli project template file (I) overall structure Reference to this catalog Here If you have any questions about this directory, you can adjust it by reference. The following is the contents of a single file (1) con ...

Posted by sheen4him on Tue, 19 Nov 2019 20:25:04 +0100

Read Hooks Numbers - swr Source

1 Introduction Pickups are an important part of the front-end business and have evolved several times: fetch Compatibility with $.post is good enough to replace all kinds of decimal encapsulations. I've been using it for a long time, and it's good to find a more scalable, ssr-enabled isomorphic number scheme, such as isomorphic-fetch,axios. ...

Posted by Danaldinho on Mon, 11 Nov 2019 05:01:20 +0100

Reasons for slow loading of vue for the first time / slow loading after refresh and Solutions

Recently, a problem was found in the project. The loading speed of the page is very slow after each refresh, about 20s. In the development environment, it is very smooth, almost imperceptible. This article refers to the optimization of various schemes of Wangshan. 1. Close the map file generated during packaging In the config/index.js file, it ...

Posted by ragtek on Wed, 06 Nov 2019 03:31:21 +0100

Multiplayer blog development project - front end

I. development environment settings 1 installation package environment The package is as followsLinks: https://pan.baidu.com/s/1C-ZY9rWU-8ZugE4EwVveWwExtraction code: 744p Related react introduction links are as follows https://blog.51cto.com/11233559/2443713 Unzip and modify the directory to blog without special instructions. js files are ...

Posted by Chrisj on Tue, 29 Oct 2019 05:10:21 +0100