Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Page display method and device

A page display and page technology, applied in the computer field, can solve problems such as increasing the difficulty of front-end application operation and maintenance and serious coupling between components

Active Publication Date: 2022-05-31
CHINA UNIONPAY
View PDF14 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this management method causes multiple component parameters to be passed through props level by level among multi-level components. Subcomponents rely heavily on the parameters passed by parent components, which can easily lead to severe coupling between components and increase the difficulty of front-end application operation and maintenance.
[0004] Therefore, there is an urgent need for a page display method and device for eliminating the serious coupling of multi-level components of each page in the prior art and the problem of cumbersome nested components in the page display scheme

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
  • Page display method and device
  • Page display method and device
  • Page display method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] The page module is used to define the logic of each page.

[0056] Each page initial state component is used to define the initial state parameter of the corresponding page in the front-end application;

[0057] That is, the page display system is provided with an initial state component corresponding to the page for each page to provide the

[0058] The global state component is used to define the public state parameters of each page in the front-end application;

[0060] The data warehouse is used to provide the page with a state component corresponding to the page, so that the page can be displayed normally.

[0066] Based on the above-mentioned system framework, a system architecture of a page display provided by an embodiment of the present application, as shown in Figure 2,

[0070] Here, the front-end application may be various applications including page display functions. For example, X letter, X chat, Q chat, JE browsing

[0071] Correspondingly, the first page ma...

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 page display method and device, and the method comprises the steps: receiving a page conversion instruction during the display of a first page; the page conversion instruction is used for indicating to convert the display page from a first page to a second page; generating a second state component according to the context object of the first page, the global state component and the initial state component of the second page; the context object of the first page is created for a first state component of the first page through a context management module in the front-end application; the first state component is generated according to the global state component and an initial state component of the first page; the global state component is used for defining public state parameters of all pages of the front-end application; initial state components of the initial state parameters of the pages are defined in the front-end application; and displaying the second page according to the second state component. The method is used for eliminating the problems that in the prior art, multi-level components of all pages are seriously coupled, and components are tedious to nest in a page display scheme.

Description

A page display method and device technical field [0001] The present application relates to the field of computer technology, and in particular, to a page display method and device. Background technique [0002] React is a JAVASCRIPT library for building user interfaces, and is one of the current mainstream front-end frameworks. To support unidirectional data flow. When using React to develop pages, you can manage each page with the help of the state management tool Redux The parameters of the component of the face. If there is parameter multiplexing of components between the pages developed by React in the prior art, then Redux needs to convert the page to The corresponding components are nested to ensure the flow of parameters. For example, if the parent page and the child page share the parameters of the same component, then the parent page and the child page share the same component parameters. The corresponding components of the child pages are nested. And thi...

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): H04L67/02H04L67/51G06F16/957
CPCH04L67/02G06F16/957Y02D10/00
Inventor 孙炜程周健王培林
Owner CHINA UNIONPAY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products