A page display method and device

By setting and binding the tag tag according to the business event type, and retrieving the user request to obtain business data from the server and rendering it into the tag tag, the page display errors and confusion caused by the unclear sign of business events in the prior art are solved. , achieving better page display effect and user experience.

CN113761415BActive Publication Date: 2025-02-21BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011331489.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-24
Publication Date
2025-02-21
Estimated Expiration
2040-11-24

AI Technical Summary

Technical Problem

In the existing page display method, due to the unclear business events indicated by the tag label, data display errors are prone to occur during the page display process, resulting in confusion in the page display and poor user experience.

Method used

By setting tag tags according to the business event type and binding tags with different types of business events; in response to the user-initiated business event trigger request, the business data corresponding to the business event is retrieved from the server; the business data is rendered to In the tag label bound to business events, to achieve page display.

Benefits of technology

Improve page display effect, improve page display efficiency, improve user experience, and avoid data display errors and page display chaos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113761415B_ABST
    Figure CN113761415B_ABST
Patent Text Reader

Abstract

The present invention discloses a page display method and device, and relates to the field of computer technology. A specific implementation of the method includes: setting a mark tag according to the business event type, and binding the mark tag with different types of business events; in response to a business event trigger request initiated by a user, retrieving business data corresponding to the business event from a server; rendering the business data into the mark tag bound to the business event to realize page display. This implementation improves the page display effect, improves the page display efficiency, and improves the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a page display method and device. Background Art

[0002] With the diversification and complexity of front-end applications, more and more files are needed to manage pages. In the front-end implementation of traditional websites, there are a lot of data acquisition and non-semantic tag parameters. How to bind tags (such as html tags, html5 tags, Hyper Text Markup Language tags) with business events and business data corresponding to business events to better display pages and improve user experience is an urgent problem to be solved.

[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0004] In the existing page display method, the business events indicated by the marking tags are not clear, which often leads to data display errors in the page display process, resulting in confusing page display and poor user experience. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a page display method and device, which can improve the page display effect, increase the page display efficiency, and enhance the user experience.

[0006] To achieve the above object, according to a first aspect of an embodiment of the present invention, a page display method is provided, comprising:

[0007] Set tag labels according to business event types and bind tag labels to different types of business events;

[0008] In response to a business event trigger request initiated by a user, retrieve business data corresponding to the business event from the server;

[0009] Render business data into the markup tags bound to business events to achieve page display.

[0010] Furthermore, the business event types are divided into at least one level; for the business event types divided into multiple levels, a marking tag is set according to the business event type, and the marking tag is bound to different types of business events, further comprising:

[0011] Multi-level marking tags are set according to the classification levels of business event types, and marking tags at the same level are bound to different types of business events.

[0012] Furthermore, it also includes:

[0013] The business event is updated according to the update request of the business event, and the set mark label is updated according to the updated business event.

[0014] Furthermore, in response to a business event trigger request initiated by a user, business data corresponding to the business event is retrieved from the server, including:

[0015] Determine the business event corresponding to the business event trigger request, and use the remote call interface to retrieve the business data corresponding to the business event from the server.

[0016] According to a second aspect of an embodiment of the present invention, a page display device is provided, including:

[0017] A tag setting module is used to set tag according to the business event type and bind the tag with different types of business events;

[0018] A business data acquisition module is used to retrieve business data corresponding to a business event from a server in response to a business event trigger request initiated by a user;

[0019] The page display module is used to render business data into the markup tags bound to the business events to achieve page display.

[0020] Furthermore, the business event types are divided into at least one level; for business event types divided into multiple levels, the marking label setting module is further used to:

[0021] Multi-level marking tags are set according to the classification levels of business event types, and marking tags at the same level are bound to different types of business events.

[0022] Furthermore, the page display device also includes an updating module, which is used to:

[0023] The business event is updated according to the update request of the business event, and the set mark label is updated according to the updated business event.

[0024] Furthermore, the business data acquisition module is also used to:

[0025] Determine the business event corresponding to the business event trigger request, and use the remote call interface to retrieve the business data corresponding to the business event from the server.

[0026] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0027] one or more processors;

[0028] a storage device for storing one or more programs,

[0029] When one or more programs are executed by one or more processors, the one or more processors implement any of the above-mentioned page display methods.

[0030] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, any of the above-mentioned page display methods is implemented.

[0031] An embodiment of the above invention has the following advantages or beneficial effects: because a mark tag is set according to the business event type, and the mark tag is bound to different types of business events; in response to a business event trigger request initiated by a user, the business data corresponding to the business event is retrieved from the server; the business data is rendered into the mark tag bound to the business event to achieve a technical means of page display, thereby overcoming the technical problem that in the existing page display method, the business event indicated by the mark tag is unclear, which leads to data display errors during the page display process, resulting in confusing page display and poor user experience, thereby achieving the technical effect of improving page display effect, improving page display efficiency and improving user experience.

[0032] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0034] Figure 1 is a schematic diagram of the main process of the page display method provided according to the first embodiment of the present invention;

[0035] Figure 2 is a schematic diagram of the main process of the page display method provided according to the second embodiment of the present invention;

[0036] Figure 3 is a schematic diagram of main modules of a page display device provided according to an embodiment of the present invention;

[0037] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0038] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0040] Figure 1 is a schematic diagram of the main process of the page display method provided according to the first embodiment of the present invention; Figure 1 As shown, the page display method provided by the embodiment of the present invention mainly includes:

[0041] Step S101, setting a marking tag according to the business event type, and binding the marking tag with different types of business events.

[0042] Among them, the markup tags include html tags and html5 tags, which are used to describe the content of the web page, including title, character format, language, compatibility, keywords, description and other information.

[0043] Specifically, according to the embodiment of the present invention, in the traditional native HTML tags, such as p, div, nav, header, fooder and other tag names, are only officially recommended to define the content of a specific area. With the diversified development of front-end applications, more and more content needs to be displayed, and the officially recommended tag names can no longer meet the existing business needs. Through the above settings, on the basis of retaining the above officially recommended tag names, the tag names are set according to the actual business event type, thereby realizing the expansion of the tag names, so that the tag names retain the original coverage and add more coverage related to the actual business, such as <skulist>< / skulist> To define the content of the product list, thereby achieving the flexibility of the mark tag, increasing the neatness and readability of the code corresponding to the mark tag, and also helping to improve the subsequent page display effect corresponding to the mark tag.

[0044] Further, according to an embodiment of the present invention, the above-mentioned business event types are divided into at least one level.

[0045] According to an embodiment of the present invention, for a situation where the business event types are divided into multiple levels, the above-mentioned setting of marking tags according to the business event types and binding the marking tags with different types of business events also includes:

[0046] Multi-level marking tags are set according to the classification levels of business event types, and marking tags at the same level are bound to different types of business events.

[0047] Through the above settings, the mark tags are hierarchically set according to the multi-level division of business event types, so that subsequent more detailed business data is rendered into the identification tags, further improving the page display efficiency and enhancing the user experience.

[0048] Preferably, according to an embodiment of the present invention, the method further includes:

[0049] The business event is updated according to the update request of the business event, and the set mark label is updated according to the updated business event.

[0050] Through the above settings, the set mark labels can also be updated according to changes in actual business needs and adjustments to business events. While ensuring the standardization and customization of identification labels, dynamic updates of mark labels are also achieved, which are applicable to a wider range of scenarios.

[0051] Step S102: In response to a business event trigger request initiated by a user, business data corresponding to the business event is retrieved from a server.

[0052] Specifically, according to an embodiment of the present invention, a business event triggering request may be initiated when a page is initialized, or may be initiated in response to a user's click behavior on a page.

[0053] Further, according to an embodiment of the present invention, in response to a business event trigger request initiated by a user, retrieving business data corresponding to the business event from the server includes:

[0054] Determine the business event corresponding to the business event trigger request, and use the remote call interface to retrieve the business data corresponding to the business event from the server.

[0055] Specifically, according to an embodiment of the present invention, after a business event is bound to a marking tag, a corresponding callback method can be registered for each business event according to the name of the marking tag. After receiving a business event trigger request initiated by a user, the business data corresponding to the business event can be obtained from the server by calling the interface according to the callback method corresponding to the business event. Through the above settings, the situation of chaotic business data display is avoided and the page display effect is improved.

[0056] Step S103, rendering the business data into a markup tag bound to the business event to achieve page display.

[0057] Through the above settings, we can avoid data rendering errors caused by unclear content indicated by the mark tag, and avoid the problem of repeated execution of code logic caused by multiple triggering of business events, thereby achieving page code update maintenance efficiency and business event triggering fault tolerance.

[0058] According to the technical solution of the embodiment of the present invention, a marking tag is set according to the business event type, and the marking tag is bound to different types of business events; in response to a business event trigger request initiated by a user, the business data corresponding to the business event is retrieved from the server; the business data is rendered into the marking tag bound to the business event to achieve the technical means of page display. Therefore, the technical problem that the business event indicated by the marking tag is unclear in the existing page display method, which leads to data display errors in the page display process, resulting in chaotic page display and poor user experience, is overcome, thereby achieving the technical effect of improving page display effect, improving page display efficiency and improving user experience.

[0059] Figure 2 is a schematic diagram of the main process of the page display method provided according to the second embodiment of the present invention; Figure 2 As shown, the page display method provided by the embodiment of the present invention mainly includes:

[0060] Step S201 , classifying the types of business events into multiple levels according to business requirements.

[0061] Through the above settings, the marking tags are hierarchically set according to the multi-level classification of business event types, so that subsequent more detailed business data is rendered into the identification tags, further improving the page display efficiency and enhancing the user experience. According to an embodiment of the present invention, for business events related to item orders, they can be further divided into secondary classifications such as item order number skuid, item order list skulist, etc.

[0062] Step S202: setting multiple levels of marking tags according to the classification levels of the business event types, and binding the marking tags at the same level with different types of business events.

[0063] Specifically, according to the embodiment of the present invention, in the traditional native HTML tags, such as p, div, nav, header, fooder and other tag names, are only officially recommended to define the content of a specific area. With the diversified development of front-end applications, more and more content needs to be displayed, and the officially recommended tag names can no longer meet the existing business needs. Through the above settings, on the basis of retaining the above officially recommended tag names, the tag names are set according to the actual business event type, thereby realizing the expansion of the tag names, so that the tag names retain the original coverage and add more coverage related to the actual business, such as <skulist>< / skulist> To define the content of the item list, thereby achieving the flexibility of the mark tag, increasing the neatness and readability of the code corresponding to the mark tag, and also helping to improve the subsequent page display effect corresponding to the mark tag.

[0064] According to an embodiment of the present invention, a primary identification tag may be set for a business event related to an order. <sku>(used to define item order related content); secondary marking tag <skuid>< / skuid> (used to define the content of the item order number) and <skulist>< / skulist> (Used to define the item order list content).

[0065] Step S203: updating the business event according to the update request of the business event, and updating the set mark tag according to the updated business event.

[0066] Through the above settings, the set mark labels can also be updated according to changes in actual business needs and adjustments to business events. While ensuring the standardization and customization of identification labels, dynamic updates of mark labels are also achieved, which are applicable to a wider range of scenarios.

[0067] Specifically, since business events are bound to marking tags, they can be managed in a unified manner. By adding or deleting business events, marking tags can be added or deleted, thereby achieving dynamic update of marking tags.

[0068] Step S204: register a corresponding callback method for each business event according to the name of the marking tag.

[0069] Specifically, according to an embodiment of the present invention, the callback method corresponding to each business event can be registered through standardized naming, such as using the on+name format. According to an embodiment of the present invention, the callback method name related to the item order list can be registered in the form of on(`skuList`, onskuList). After the business event is triggered later, the corresponding interface can be directly called according to the registered callback method to obtain the business event, so as to avoid the situation where the obtained business data is wrong.

[0070] Step S205 , in response to the business event triggering request initiated by the user, determining the business event corresponding to the business event triggering request.

[0071] Specifically, according to an embodiment of the present invention, a business event triggering request may be initiated when a page is initialized, or may be initiated in response to a user's click behavior on a page.

[0072] Step S206: Call an interface according to the callback method corresponding to the business event to obtain business data corresponding to the business event from the server.

[0073] Specifically, according to an embodiment of the present invention, after a business event is bound to a marking tag, a corresponding callback method can be registered for each business event according to the name of the marking tag. After receiving a business event trigger request initiated by a user, the business data corresponding to the business event can be obtained from the server by calling the interface according to the callback method corresponding to the business event. Through the above settings, the situation of chaotic business data display is avoided and the page display effect is improved.

[0074] Step S207, rendering the business data into a markup tag bound to the business event to achieve page display.

[0075] Through the above settings, we can avoid data rendering errors caused by unclear content indicated by the mark tag, and avoid the problem of repeated execution of code logic caused by multiple triggering of business events, thereby achieving page code update maintenance efficiency and business event triggering fault tolerance.

[0076] According to the technical solution of the embodiment of the present invention, a marking tag is set according to the business event type, and the marking tag is bound to different types of business events; in response to a business event trigger request initiated by a user, the business data corresponding to the business event is retrieved from the server; the business data is rendered into the marking tag bound to the business event to achieve the technical means of page display. Therefore, the technical problem that the business event indicated by the marking tag is unclear in the existing page display method, which leads to data display errors in the page display process, resulting in chaotic page display and poor user experience, is overcome, thereby achieving the technical effect of improving page display effect, improving page display efficiency and improving user experience.

[0077] Figure 3 is a schematic diagram of the main modules of the page display device provided according to an embodiment of the present invention; Figure 3 As shown, the page display device 300 provided in the embodiment of the present invention mainly includes:

[0078] The marking label setting module 301 is used to set the marking label according to the business event type and bind the marking label with different types of business events.

[0079] Specifically, according to the embodiment of the present invention, the traditional native HTML tags are only officially recommended for defining the content of a specific area. With the diversified development of front-end applications, more and more content needs to be displayed, and the officially recommended tag names can no longer meet the existing business needs. Through the above settings, on the basis of retaining the above officially recommended tag names, the tag names are set according to the actual business event type, thereby realizing the expansion of the tag names, so that the tag names retain the original coverage and add more coverage related to the actual business, such as <skulist>< / skulist> To define the content of the product list, thereby achieving the flexibility of the mark tag, increasing the neatness and readability of the code corresponding to the mark tag, and also helping to improve the subsequent page display effect corresponding to the mark tag.

[0080] Further, according to an embodiment of the present invention, the above-mentioned business event types are divided into at least one level.

[0081] According to an embodiment of the present invention, for a situation where the business event types are divided into multiple levels, the marking label setting module 301 is further used to:

[0082] Multi-level marking tags are set according to the classification levels of business event types, and marking tags at the same level are bound to different types of business events.

[0083] Through the above settings, the mark tags are hierarchically set according to the multi-level division of business event types, so that subsequent more detailed business data is rendered into the identification tags, further improving the page display efficiency and enhancing the user experience.

[0084] Preferably, according to an embodiment of the present invention, the page display device 300 further includes an updating module, which is used to:

[0085] The business event is updated according to the update request of the business event, and the set mark label is updated according to the updated business event.

[0086] Through the above settings, the set mark labels can also be updated according to changes in actual business needs and adjustments to business events. While ensuring the standardization and customization of identification labels, dynamic updates of mark labels are also achieved, which are applicable to a wider range of scenarios.

[0087] The business data acquisition module 302 is used to retrieve business data corresponding to the business event from the server in response to a business event trigger request initiated by the user.

[0088] Specifically, according to an embodiment of the present invention, a business event triggering request may be initiated when a page is initialized, or may be initiated in response to a user's click behavior on a page.

[0089] Further, according to an embodiment of the present invention, the business data acquisition module 302 is further used to:

[0090] Determine the business event corresponding to the business event trigger request, and use the remote call interface to retrieve the business data corresponding to the business event from the server.

[0091] Specifically, according to an embodiment of the present invention, after a business event is bound to a marking tag, a corresponding callback method can be registered for each business event according to the name of the marking tag. After receiving a business event trigger request initiated by a user, the business data corresponding to the business event can be obtained from the server by calling the interface according to the callback method corresponding to the business event. Through the above settings, the situation of chaotic business data display is avoided and the page display effect is improved.

[0092] The page display module 303 is used to render the business data into a markup tag bound to the business event to achieve page display.

[0093] Through the above settings, we can avoid data rendering errors caused by unclear content indicated by the mark tag, and avoid the problem of repeated execution of code logic caused by multiple triggering of business events, thereby achieving page code update maintenance efficiency and business event triggering fault tolerance.

[0094] According to the technical solution of the embodiment of the present invention, a marking tag is set according to the business event type, and the marking tag is bound to different types of business events; in response to a business event trigger request initiated by a user, the business data corresponding to the business event is retrieved from the server; the business data is rendered into the marking tag bound to the business event to achieve the technical means of page display. Therefore, the technical problem that the business event indicated by the marking tag is unclear in the existing page display method, which leads to data display errors in the page display process, resulting in chaotic page display and poor user experience, is overcome, thereby achieving the technical effect of improving page display effect, improving page display efficiency and improving user experience.

[0095] Figure 4 An exemplary system architecture 400 is shown to which the page display method or page display device according to the embodiment of the present invention can be applied.

[0096] like Figure 4 As shown, the system architecture 400 may include terminal devices 401, 402, 403, a network 404 and a server 405 (this architecture is only an example, and the components included in the specific architecture may be adjusted according to the specific application). The network 404 is used to provide a medium for a communication link between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0097] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as page display applications, data processing applications, etc. (only for example).

[0098] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0099] The server 405 may be a server that provides various services, such as a server that (performs page display / data processing) for users using the terminal devices 401, 402, and 403 (only as an example). The server may analyze and process the received data such as the business event type, and feed back the processing results (such as marking tags, business data - only as an example) to the terminal device.

[0100] It should be noted that the page display method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the page display device is generally arranged in the server 405 .

[0101] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0102] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device or a server suitable for implementing an embodiment of the present invention. Figure 5 The terminal device or server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0103] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0104] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.

[0105] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.

[0106] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0107] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0108] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor, for example, they may be described as: a processor including a tag setting module, a business data acquisition module, and a page display module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the tag setting module may also be described as "a module for setting tag according to the business event type and binding the tag with different types of business events".

[0109] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: setting a mark tag according to the business event type, and binding the mark tag with different types of business events; in response to a business event trigger request initiated by a user, retrieving business data corresponding to the business event from the server; rendering the business data into the mark tag bound to the business event to realize page display.

[0110] According to the technical solution of the embodiment of the present invention, a marking tag is set according to the business event type, and the marking tag is bound to different types of business events; in response to a business event trigger request initiated by a user, the business data corresponding to the business event is retrieved from the server; the business data is rendered into the marking tag bound to the business event to achieve the technical means of page display. Therefore, the technical problem that the business event indicated by the marking tag is unclear in the existing page display method, which leads to data display errors in the page display process, resulting in chaotic page display and poor user experience, is overcome, thereby achieving the technical effect of improving page display effect, improving page display efficiency and improving user experience.

[0111] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.< / sku>

Claims

1. A page display method, characterized in that: include: Setting a marking tag according to the business event type, binding the marking tag to different types of business events, and registering a corresponding callback method for each business event according to the name of the marking tag; In response to a business event trigger request initiated by a user, determining a business event corresponding to the business event trigger request, calling a remote call interface according to a callback method corresponding to the business event, so as to retrieve business data corresponding to the business event from a server by using the remote call interface; The business data is rendered into a markup tag bound to the business event to achieve page display.

2. The page display method according to claim 1, characterized in that: The business event types are divided into at least one level; for business event types divided into multiple levels, setting a marking tag according to the business event type and binding the marking tag with different types of business events also includes: Multi-level marking tags are set according to the classification levels of the business event types, and marking tags at the same level are bound to different types of business events.

3. The page display method according to claim 1, characterized in that: Also includes: The business event is updated according to the update request of the business event, and the set mark label is updated according to the updated business event.

4. A page display device, characterized in that: include: A tag setting module is used to set a tag according to the business event type, bind the tag to different types of business events, and register a corresponding callback method for each business event according to the name of the tag; A business data acquisition module, used to respond to a business event trigger request initiated by a user, determine the business event corresponding to the business event trigger request, call the remote call interface according to the callback method corresponding to the business event, and use the remote call interface to retrieve the business data corresponding to the business event from the server; The page display module is used to render the business data into a markup tag bound to the business event to achieve page display.

5. The page display device according to claim 4, characterized in that: The business event types are divided into at least one level; for business event types divided into multiple levels, the marking label setting module is further used to: Multi-level marking tags are set according to the classification levels of the business event types, and marking tags at the same level are bound to different types of business events.

6. The page display device according to claim 4, characterized in that: The page display device also includes an updating module, which is used to: The business event is updated according to the update request of the business event, and the set mark label is updated according to the updated business event.

7. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.

8. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Application development method, response method of page requests and device based on tags

    CN105094754A