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
[Python] de duplication and addition of dictionary list
[TOC]
target
List of existing dictionaries
#
A = [ {dict1}, {dict2} ]
B = [ {dict3}, {dict2} ]
C = [ {dict3}, {dict4} ]
M = [A,B,C]
X = []
Put M's de duplicated dictionary into list X, and get X = [{dict1}, {dict2},{dict3}, {dict4}]
difficulty
Dictionary list
At the beginning, you may think of using set() function to ...
Posted by eldee on Sun, 01 Dec 2019 10:18:04 +0100
python crawler - basic module, you must understand!
Prefacepython crawler, web spider. Crawls the website to obtain the web page data, and carries on the analysis extraction.
The basic modules are urllib, urllib2, re, etc
(I) basic usage, examples
(1) make a basic GET request to GET the html of the web page
#!coding=utf-8
import urllib
import urllib2
url = 'http://www.baidu.com/'
# Get request
...
Posted by mcatalf0221 on Sat, 30 Nov 2019 15:05:25 +0100
Wechat sharing circle of friends, sharing to friends jssdk
Wechat page sharing function jssdk
1, first of all, there must be a certified public number, subscription number or service number.
2. Bind JS interface security domain name
3. Introduce the js file provided by wechat
<script type="text/javascript" src="./js/jquery.min.js" ></script>
<script src="http://res.w ...
Posted by Pha on Fri, 29 Nov 2019 19:32:23 +0100
Common indicators of Apache druid calculation
Druid supports SQL
[ EXPLAIN PLAN FOR ]
[ WITH tableName [ ( column1, column2, ... ) ] AS ( query ) ]
SELECT [ ALL | DISTINCT ] { * | exprs }
FROM table
[ WHERE expr ]
[ GROUP BY exprs ]
[ HAVING expr ]
[ ORDER BY expr [ ASC | DESC ], expr [ ASC | DESC ], ... ]
[ LIMIT limit ]
[ UNION ALL <another query> ]
Duration data type
The duration ...
Posted by naveenbj on Thu, 28 Nov 2019 17:12:13 +0100
Sentinel - source related error customization
1. Error redirection: add build and general exception capture (increase the number of sentinel exceptions - Tracer.trace(e))
(1). Error redirection
@Component
public class MyUrlBlockHandler implements UrlBlockHandler {
@Override
public void blocked(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, BlockE ...
Posted by healy787 on Wed, 27 Nov 2019 16:00:29 +0100
Python crawls the data of 6271 dead companies to see the history of the demise of start-ups in the past decade
Preface
The text and pictures of the article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time for handling.
Author: Zhu Xiaowu's play data
PS: if you need Python learning materials, you can click the ...
Posted by rupertbj on Wed, 27 Nov 2019 09:47:03 +0100
Sell wechat machines on the Internet for hundreds of months, and Python can handle dozens of lines of code
Preface
The text and pictures of the article are from the Internet, only for learning and communication, and do not have any commercial use. The copyright belongs to the original author. If you have any questions, please contact us in time for handling.
Author: Story Film
PS: if you need Python learning materials, you can click the link below t ...
Posted by rajbal on Wed, 27 Nov 2019 07:52:40 +0100
The use of JSON string by alibaba fastjson
Fastjson source address: https://github.com/alibaba/fastjson
Fastjson Chinese Wiki: https://github.com/alibaba/fastjson/wiki/Quick-Start-CN
I. introduce dependency
1) FastJson is a toolkit for java background processing json format data
2) FastJson mainly uses the following three classes for parsing json format strings ...
Posted by howler on Tue, 26 Nov 2019 17:53:54 +0100
Spring boot (11) - exception handling and custom error page
1. Abnormal source
To handle an exception that occurs in a program, you first need to know where the exception comes from?
1. The front-end wrong request path will cause 4xx errors in the program, the most common is 404. By default, when this error occurs in the spring boot request path, the pc response page is as follows
If it is mobile termi ...
Posted by scott_ttocs46 on Tue, 26 Nov 2019 08:39:14 +0100