Method and system for reducing front-end white screen

A white screen, front-end interface technology, applied in the computer field, can solve the problems of high code quality requirements and high open costs for front-end developers

Pending Publication Date: 2022-05-31
杭州每刻科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The first method cannot fundamentally solve the problem of white screen
The second type has higher requirements for the code quality of front-end developers, which makes the cost of opening the project higher

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
  • Method and system for reducing front-end white screen
  • Method and system for reducing front-end white screen
  • Method and system for reducing front-end white screen

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The following description serves to disclose the invention to enable those skilled in the art to practice the invention. The preferred embodiments described below are given by way of example only, and other obvious modifications will occur to those skilled in the art. The basic principles of the invention defined in the following description may be applied to other embodiments, variations, improvements, equivalents, and other technical solutions without departing from the spirit and scope of the invention.

[0024] It should be understood that the term "a" should be understood as "at least one" or "one or more", that is, in one embodiment, the number of an element may be one, and in another embodiment, the number of the element may be one. The number may be plural, and the term "one" should not be understood as a limitation on the number.

[0025] please combine figure 1 and figure 2 , the present invention discloses a method and system for reducing front-end white ...

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 invention discloses a method and a system for reducing a front-end white screen. The method comprises the following steps: generating an empty message configuration component corresponding to an array and an object; receiving original data of the front-end interface, and identifying the structure and the type of the original data; judging whether a null field or an underfield field exists in the original data or not; if the null field or the underfield field exists, performing configuration according to the type to which the null field or the underfield field belongs and an empty message configuration component; and the null fields or the underfield fields of different types are converted into the fields of the same type. According to the method and the system, by designing a data configuration rule and a data formatting algorithm, an access invalid object which is transmitted by a front end and causes a white screen is converted into an expected format, so that even if null judgment processing is forgotten to be carried out, a wrong white screen result cannot be obtained.

Description

technical field [0001] The invention relates to the field of computer technology, and in particular, to a method and system for reducing front-end white screen. Background technique [0002] In the current mainstream front-end frameworks, for code execution errors that occur during component rendering, the framework will avoid rendering incorrect data and unload the entire component tree, resulting in a blank page, which is very unfriendly to users. The existing methods for reducing the front-end white screen mainly include the following two methods: one is to avoid the appearance of the white screen, that is, when an error occurs in the program, an error interface is rendered to tell the user that the program has an error; The quality of the code, the white screen of the page is basically caused by "TypeError occurs when the front end accesses the attributes above the null object due to the uncertainty of the data returned by the back end", so a large number of null operati...

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/451G06F8/71G06F8/30
CPCG06F9/451G06F8/71G06F8/315
Inventor 方宇驰王森元孙勤魏美钟
Owner 杭州每刻科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products