Single page application page communication method and device

A single-page application and communication method technology, applied in the direction of inter-program communication, multi-program device, instrument, etc., can solve the problem of low page performance, achieve the effect of improving event capability, improving communication efficiency, and simplifying the communication process

Active Publication Date: 2017-01-04
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF1 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the traditional technology, the communication method used to realize the above-mentioned relationship between pages is: the method of interface callback is adopted, that is, an interface method is implemented in subpage A, and then registered in B, and subpage B satisfies a certain page operation. When calling the method in ...

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
  • Single page application page communication method and device
  • Single page application page communication method and device
  • Single page application page communication method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0044] In one embodiment, such as figure 1 As shown, a single page application page communication method is provided, and the method includes the following steps:

[0045] Step S102: Receive the event registration request of the subpage.

[0046] Step S104: Register the event corresponding to the event registration request according to the event registration request.

[0047] Specifically, a single-page application includes multiple subpages. Since all operations and state management in a single-page application occur on one page, the page where operations and management occur is called the main ...

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 relates to a single page application page communication method. The method includes the steps that an event register request of a subpage is received; according to the event register request, an event corresponding to the event register request is registered; event broadcast of the registered event is sent to all sub-pages, an event method is injected to the sub-page responding to the event broadcast so that the sub-page can monitor the injected event method, the page communication process can be simplified, and page event processing capacity is improved.

Description

technical field [0001] The present invention relates to the technical field of single-page applications, in particular to a single-page application page communication method and device. Background technique [0002] Single-page application refers to web-based systems and applications. In a single-page application, one page controls the display form of all sub-pages. All sub-pages have an association relationship. When an event status changes in a single-page application, the events related to the event All child pages should be updated with event status. [0003] In the traditional technology, the communication method used to realize the above-mentioned association relationship between pages is: adopt the method of interface callback, that is, implement an interface method in subpage A, and then register it in B, and subpage B satisfies a certain page operation , call the method in subpage A to achieve the function of updating the state or data in subpage A, complete the me...

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
IPC IPC(8): G06F9/54
CPCG06F9/542G06F2209/545
Inventor 梁洪波李菲高诗杰刘梦琪
Owner KINGDEE SOFTWARE(CHINA) CO LTD
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