axios in vue

axios in vue 1.install axios npm: $ npm install axios -S cdn: <script src="https://unpkg.com/axios/dist/axios.min.js"></script> 2. Configure axios //Create a new api/index.js file in the project to configure axios api/index.js //Copy code import axios from 'axios'; let http = axios.create({ baseURL: ...

Posted by neerav on Thu, 26 Mar 2020 10:04:12 -0700

Go language introduction structure & Practice

Structure & Practice structural morphology Definition The object-oriented in Go is realized by struct, which is a user-defined type //Define structure /Define structure type User struct { Name string Gender string Age int AvatarUrl string } func useStruct() { //Initialize structure 1 var user1 User u ...

Posted by godwisam on Thu, 26 Mar 2020 09:09:21 -0700

Wechat service number silent authorization calling procedure record

Wechat silent authorization process related problem process record Related tools Intranet penetration tool Peanut hull There is free 1G traffic per month, but I need to hold my ID card to take photos and upload. It's too troublesome to use. natapp Easy to use, you need to scan the real name with Alipay. other... Other friends also ...

Posted by farkewie on Wed, 25 Mar 2020 21:04:12 -0700

VSCode configures C + + development environment

Catalog Install VSCode application Install related plug-ins Chinese plug-in C + + editor plug in Write profile tasks.json launch.json c_cpp_properties.json Step 1: install VSCode application Open up VSCode official website , download the corresponding installation package and install by default (note here: the installation path can ...

Posted by apw on Wed, 25 Mar 2020 10:52:38 -0700

Zabbix Download Pictures via Graphid - 2nd Edition

Read the above before reading this article: https://blog.51cto.com/181647568/2480079 After downloading the script from the last Powershell version of the picture, I received some feedback.1. The last script accesses the database through dll and gets graphid through sql statement, which means there is a dll in addition to the script.And the dat ...

Posted by Protato on Wed, 25 Mar 2020 09:42:18 -0700

Use of extreme validation (nodejs deployment)

Add some verification codes to the page to avoid malicious external damage.The following is a summary of my work validating deployments with nodejs pairs. 1. Verify ideas with nodejs deployment poles: Installation dependencies: request, express, body-parser, supervisor, express-session. Install the SDK using npm install gt3 ...

Posted by djdog.us on Tue, 24 Mar 2020 09:35:48 -0700

k8s ~ add sidecar sidebucket for service

The word sidecar generally refers to motorcycles with straddles. In the Second World War, small Japan drove many of these motorcycles. It added a straddle on the original basis, and then it could carry an extra person. It had no impact on the original two wheeled motorcycles. It was also OK to dismantle the straddle. It had no essential damage ...

Posted by Azarian on Tue, 24 Mar 2020 00:49:01 -0700

In a few thousand times, I used SpringBoot+Redis to handle the repeated submissions

Yunqi information:[ Click to see more industry information]Here you can find the first-hand cloud information of different industries. What are you waiting for? Come on! In a real development project, an exposed interface is often faced with a large number of repeated requests submitted in an instant. If you want to filter out the repeated requ ...

Posted by kevinn on Tue, 24 Mar 2020 00:19:18 -0700

How should JWT be used?

I. overview JWT, which is called JSON Web Token in full, is an open-source standard protocol. It defines a JSON based, lightweight and secure data transmission method. Two, details Each JWT is composed of three parts: Header, Payload and signature. At the same time, the JWT is spliced with dots in the form of: Header.Payload.Signature Header Th ...

Posted by Dale_G on Mon, 23 Mar 2020 20:35:25 -0700

Android SharedPreferences tool class to set cache time

Using ACache also sets the cache time, but ACache is emptied when the cache is cleared. SharedPreferences storage is time-free by default. The general idea is to record the current time when you store it and how long to store it.When you fetch the data, determine how long it has been stored, and if it exceeds the set storage ...

Posted by damic on Mon, 23 Mar 2020 09:49:35 -0700