Unlock instant, AI-driven research and patent intelligence for your innovation.

Request state management method and device, electronic equipment and readable storage medium

A technology of request status and management methods, applied in the computer field, can solve problems such as high code redundancy and complex logic

Active Publication Date: 2018-09-07
BEIJING KNOWNSEC INFORMATION TECH
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to overcome the above-mentioned deficiencies in the prior art, the object of the present invention is to provide a request state management method, device, electronic device and readable storage medium, which can solve the problem that the user frequently needs to manually change the state of the component or page loading state, Causes problems of high code redundancy and complex logic

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Request state management method and device, electronic equipment and readable storage medium
  • Request state management method and device, electronic equipment and readable storage medium
  • Request state management method and device, electronic equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations.

[0051] Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0052] It should be not...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a request state management method and device, electronic equipment and a readable storage medium. The electronic equipment is configured with a request function and a monitoring function. The method includes: generating a first request status change event through the request function when a network request is received; responding to the first request statuschange event through the monitoring function, and changing request status of the network request to first request status; when the request status of the network request is the first request status, sending the network request to a server to enable the server to return corresponding network resources after responding to the network request; generating a second request status change event through the request function when the corresponding network resources are received; and responding to the second request status change event through the monitoring function, and changing the request status ofthe network request to second request status. Therefore, problems of high code redundancy and complex logic due to that for component or page loading status, users need to frequently and manually change the status can be solved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a request state management method, device, electronic equipment and readable storage medium. Background technique [0002] In daily work, the problem of component loading status is often dealt with. Every time a request is made to a network resource, the request status of the component will be set to true, and the request status will be set to false after the request ends, and then Use this state to determine whether the control page displays loading animations, etc. However, for pages with many loading states, the user often needs to manually process the state multiple times, because each request needs to process the requested state change in the callback function, resulting in high code redundancy. In addition, if this state change is nested into multiple callback functions, the logic will be very complicated and confusing. Therefore, there is an urgent need for a m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54
CPCG06F9/542G06F9/547
Inventor 谢鑫
Owner BEIJING KNOWNSEC INFORMATION TECH