Design of api request duration and request data type
Preface
In our business requests, there are times when we have strategic settings for different lengths of demand.This requirement is detailed here.
In this case, our timout is usually based on the request address, so the core processing technique is how to set different timeout for different request addresses.
The request time we set up earlie ...
Posted by MastahUK on Mon, 02 Dec 2019 07:20:21 -0800
12. pytest -- Cache: Record the status of execution
Catalog
1. cacheprovider plug-in
1.1. --lf, --last-failed: Execute only the last failed use case
1.2. --ff, --failed-first: execute the last failed use case before the others
1.3. --nf, --new-first: execute new or modified use cases before others
1.4. --cache-clear: Clear all caches before executing u ...
Posted by mem0ri on Mon, 02 Dec 2019 05:33:26 -0800
scrollView to browse and zoom
I. application scenarios
Similar to wechat sending friends circle to add pictures (photo album or photo taking), click the picture to browse, when browsing, you can zoom the current picture, and the zoom does not affect the normal display of other pictures; when browsing, you can delete pictures
II. Key codes
//The main problem here is: if y ...
Posted by jonker on Mon, 02 Dec 2019 03:46:34 -0800
How to create an animation of a small ball going up a step with pure CSS
Effect preview
Online demoPress the "click preview" button on the right to preview on the current page, and click the link to preview in full screen.
https://codepen.io/comehope/pen/PBGJwL
Interactive video
This video is interactive. You can pause the video at any time and edit the code in the video.
Please use chrome, safari, edge t ...
Posted by masson on Sun, 01 Dec 2019 20:10:18 -0800
Simple demo case of hand written spring MVC
1.springmvc is essentially the encapsulation of servlet s. When a user sends a request, the working principle of springmvc is as shown in the figure:
The process is as follows:
1. The user sends the request to the front-end controller dispatcher servlet.
2. The dispatcher servlet receives the request to call the HandlerMappin ...
Posted by david4ie on Sun, 01 Dec 2019 09:05:53 -0800
Page popup toast and loading
create-at 2019-04-04
All adopt single instance mode and are implemented by native js
Compatible with the old version of browser kernel, please modify the place where es6 syntax is used
loading
Code: all styles are created by js and injected into the head. If you need to modify, please modify the values of loadingstyle and loadingchildstyle imme ...
Posted by tony_l on Sun, 01 Dec 2019 08:51:15 -0800
A small example of use of react refetch
Source: react design patterns and best practices By Michelle Bertolli Publication time: the first edition in August 2018 (still new)
Use react refetch to simplify the api's code for getting data
const List = ({data: gists}) => {
return (
<ul>
{gists.map(gist => (
<li key={gist.id}>{gist.description}</li& ...
Posted by Norsk.Firefox on Sun, 01 Dec 2019 00:56:29 -0800
java bean object property replication framework beanmapping release [0.0.2-annotation support
BeanMapping
In order to specify the mapping method more flexibly, the @ BeanMapping annotation was introduced in version 0.0.2.
Definition of annotation
Annotation is defined in the bean mapping API module, which is introduced by default by bean mapping core.
package com.github.houbb.bean.mapping.api.annotation;
import com.github.houbb.bean.ma ...
Posted by tigger on Sun, 01 Dec 2019 00:09:08 -0800
[5+App] third party sharing ideas
Hello everyone
On December 25, 2016, Christmas day, I was lovelorn
reality
1) App can share an article, an activity, etc. to a third-party platform2) display the corresponding title, content and links3) enter the corresponding link to wake up the App, and display the App download page when there is no client4) after being woken up, display the ...
Posted by portrower8 on Sat, 30 Nov 2019 19:53:43 -0800
Basic knowledge of ES6
demo on github
let&const
let does not support variable promotion
console.log(a); // Report here
let a = "a";
let cannot repeat declaration
let a = "a";
let a = "abc"; // Report errors
let supports block level scope
if (true) {
let a = "a";
}
console.log(a) // Report errors
for (let i = 0; i < 5; i++) {
setTimeout(( ...
Posted by robertf on Sat, 30 Nov 2019 16:24:38 -0800