This article helps you to solve the problems encountered in using axios data request in vue.js

Words written in the front: In the development process of using vue environment, using axios to request data interface has become the first choice, and it is also an officially recommended scheme of vuejs. This article mainly introduces the use of axios from the following two examples, in order to let you understand how to use a ...

Posted by shareaweb on Fri, 20 Dec 2019 06:36:56 -0800

[Object Object] Solution JSON.stringify()

[Object Object] Description [object Object] is the string form of the object because the toString() method of the Object object is implicitly called in the form: "[object Object]". [object Object object] represents only one object, the current object toString() is not parsed correctly, and JSON.stringify() can be used to avoid this pr ...

Posted by Mikell on Thu, 19 Dec 2019 20:09:22 -0800

[The Way of Xiuxian] Golden Dan by React-Redux

Author: Shui TaoPursue technology, but not lose the fun of life, live the life you want Introduction to React-Redux React-Redux enables your React project to have global data, allows multiple React components to read global data, and allows them to modify it. React-Redux can be interpreted as Vuex in a Vue, but it is also a global state ...

Posted by IanMartins on Thu, 19 Dec 2019 18:43:27 -0800

From the beginning of web front end to practice: HTML to PDF graphic report practice

Export PDF graphic report practice Method 1: jsPDF When using jsPDF, it should be noted that its default unit is mm, and configuration needs to be passed in when new jsPDF() const doc = new jsPDF({ unit: 'px', format: 'a4' }) This method is useless. This ghost has multiple lines of text and multiple pictures. It's killing! Method 2: w ...

Posted by fireant on Wed, 18 Dec 2019 02:19:20 -0800

WEB-WORKER advanced learning

Because of the JS single threaded model, though, requests can be processed asynchronously. But in the end, it needs to be handled by the main line In order to decouple rendering (request, calculation), the api request layer built by axios is modified, and all data requests are submitted to web work. Separate rendering from request problem H ...

Posted by microthick on Tue, 17 Dec 2019 23:55:05 -0800

Two projects one webpack package

File dependency is complex, static resource request efficiency is low, modularization support is not friendly, browser compatibility with advanced JS is low? That's the time to learn about webback I. a brief understanding of webpack (1) concept Webpack is a static module packaging builder for JavaScript applications. When processing an app ...

Posted by kubis on Tue, 17 Dec 2019 20:36:34 -0800

Taro realizes chatting, taro imitates wechat chat interface, taro+redux multi terminal instance

Recently, we have been exploring and developing multiple terminals, which has been used before uniapp+vue develops the project of multi terminal imitative buffeting / Momo live studio Today, I want to share the TaroChat project based on the taro+react multi terminal wechat like interface chat room, which also supports compiling to H5, applet an ...

Posted by bobbinsbro on Tue, 17 Dec 2019 05:06:23 -0800

Nuxt.js learning - nuxt.js error page, Meta tag of personalized specific page

[TOC] 1. Error page 1.1 official documents: You can customize the error page by editing the layouts/error.vue file Warning: Although this file is in the layouts folder, it should be treated as a page This layout file does not need to contain < nuxt / > tags. You can think of this layout file as a component for displaying application error ...

Posted by suncore on Sun, 15 Dec 2019 11:29:12 -0800

vue application without scaffold

There are not only many modular projects in the work, but also only one or two activity pages similar to filling in information to participate in activities. At this time, you can return to the previous three swordsman mode, and reference vue.js in index.html for development. Key points: Babel Polyfill needs to be introduced to transform the c ...

Posted by Threepwood on Fri, 13 Dec 2019 07:54:04 -0800

GridManager format data

GridManager When processing data, it is necessary to use the specified data format. In the actual scene, there are some format differences more or less. How to deal with these differences will be explained here 1. Only return field name is inconsistent Data and totals in the primary data can be adjusted by using dataKey and totalsKey. The back- ...

Posted by xray_griff on Thu, 12 Dec 2019 06:16:29 -0800