Tab page data loading method, terminal device and readable storage medium

By detecting triggered identification actions in the Tab page and loading corresponding data, the problem of low data loading efficiency on the Tab page is solved, and efficient data loading and user experience improvement is achieved.

CN118606592BActive Publication Date: 2024-11-01SHENZHEN SMARTCITY TECH DEV GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411096419.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-01
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

In the Tab page, when the user only selects a single or several tabs, the data of all tabs needs to be loaded, resulting in low data loading efficiency.

Method used

By detecting the trigger identification action in the Tab page, obtaining the unique identification and calling the corresponding data loading request address, loading and displaying the corresponding display data without loading all page data, achieving efficient data loading.

Benefits of technology

Improves the data loading efficiency of Tab pages, reduces unnecessary data loading, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606592B_ABST
    Figure CN118606592B_ABST
Patent Text Reader

Abstract

The present invention discloses a data loading method for a Tab page, a terminal device, and a readable storage medium, wherein the data loading method for a Tab page comprises: when a trigger action of a trigger identifier corresponding to a tab in a Tab page is detected, a unique identifier corresponding to the trigger action is obtained; a request address of a data loading method corresponding to the unique identifier is determined in a storage pool; the request address is called to load display data corresponding to the trigger identifier; and the display data corresponding to the trigger identifier is displayed on the Tab page. Thus, the display data of all tabs in the Tab page does not need to be loaded, thereby achieving the effect of improving data loading efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a data loading method for a Tab page, a terminal device and a readable storage medium. Background Art

[0002] Through the Tab (label or tab) component, you can achieve the effect of displaying different resource data in different tabs on the same page, and provide different display methods for resource data. The Tab component includes three different display methods: Tab, Marquee, and Drill Down. The Tab page created based on the Tab component can set multiple tabs and set the display method of the resource data corresponding to each tab. Then, when the user clicks the corresponding tab button on the Tab page, the resource data corresponding to the tab will be rendered, and the resource data will be displayed on the Tab page in the corresponding display method, thereby achieving the effect of displaying different resource data on the same page.

[0003] In the related art, as long as a tab of a Tab page is selected by a user during the life cycle of the Tab page, the data of all the tabs in the Tab page needs to be loaded, and then the data corresponding to the tab selected by the user is rendered and displayed in a corresponding display mode. This results in low data loading efficiency when the user only selects a single or several tabs.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The present invention aims to solve the technical problem of low efficiency in loading data for a Tab page by providing a data loading method for a Tab page, a terminal device and a computer-readable storage medium.

[0006] To achieve the above object, an embodiment of the present invention provides a method for loading data on a Tab page, and the method for loading data on a Tab page includes the following steps:

[0007] When a trigger action of a trigger identifier of a corresponding tab in a Tab page is detected, a unique identifier corresponding to the trigger action is obtained;

[0008] Determining in the storage pool a request address of the data loading method corresponding to the unique identifier;

[0009] Calling the request address to load display data corresponding to the trigger identifier;

[0010] The display data corresponding to the trigger identifier is displayed on the Tab page.

[0011] Optionally, when a triggering action of a triggering identifier corresponding to a tab in a Tab page is detected, before the step of obtaining a unique identifier corresponding to the triggering action, the step includes:

[0012] Receive display data bound to the trigger identifier corresponding to each tab in the Tab page and the unique identifier of the trigger identifier;

[0013] Determine the request address of the data loading method of the trigger identifier according to the display data bound to the trigger identifier;

[0014] The unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method are associated and stored in the storage pool.

[0015] Optionally, after the step of determining the request address of the data loading method of the trigger identifier according to the display data bound to the trigger identifier, the method further comprises:

[0016] Determining the data association relationship between the trigger identifiers according to the request address of the data loading method of the trigger identifier;

[0017] After the step of associating and storing the unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method in the storage pool, the method further includes:

[0018] The unique identifier of the trigger identifier with the data association relationship is marked, and the unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method and the data association relationship are associated and stored in the storage pool.

[0019] Optionally, after the step of calling the request address and loading the display data corresponding to the trigger identifier, the method further includes:

[0020] Determine whether the unique identifier has the tag;

[0021] If the tag exists, obtaining the data association relationship of the unique identifier;

[0022] If the data association relationship is a first type relationship, cache the display data;

[0023] If the data association relationship is a second type of relationship, obtaining a request address of a brother data loading method corresponding to the second type of relationship;

[0024] The request address is called to update and cache the display data of the brother data loading method.

[0025] Optionally, after the step of displaying the display data corresponding to the trigger identifier on the Tab page, the method further includes:

[0026] Acquire the trigger time when the trigger action of the trigger mark is detected;

[0027] Cache the display data and the trigger time corresponding to the trigger identifier;

[0028] When the trigger action of the trigger identifier is detected again, obtaining the current trigger time of the trigger action;

[0029] When the difference between the current trigger time and the trigger time is less than a set threshold, acquiring the display data corresponding to the trigger identifier in the cache;

[0030] When the difference between the current trigger time and the trigger time is greater than or equal to a set threshold, the step of obtaining the unique identifier corresponding to the trigger action is performed.

[0031] Optionally, the step of displaying the display data corresponding to the trigger identifier on the Tab page includes:

[0032] Obtaining the size of the display area corresponding to the trigger mark;

[0033] Determine the font format of the display data in the display area according to the size, the amount of the display data, and the display mode;

[0034] The display data corresponding to the trigger identifier is displayed in the display area of ​​the Tab page in the font format.

[0035] Optionally, the step of determining the font format of the display data in the display area according to the size and the amount of the display data and the display mode includes:

[0036] determining, when each type of display data is displayed in the display mode, the length of the sub-display area of ​​each type of display data in the display area and the data length of each type of display data;

[0037] If the length of the sub-display area is smaller than the data length of the display data, the font format of the display data is adjusted according to the length of the sub-display area.

[0038] Optionally, the step of calling the request address and loading the display data corresponding to the trigger identifier includes:

[0039] The request address is transmitted to a corresponding fetch function, so that the fetch function loads display data corresponding to the trigger identifier based on the request address.

[0040] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a data loading program for a Tab page stored in the memory and executable on the processor, and when the data loading program for the Tab page is executed by the processor, the steps of the data loading method for the Tab page as described above are implemented.

[0041] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a data loading program for a Tab page is stored. When the data loading program for a Tab page is executed by a processor, the steps of the data loading method for a Tab page as described above are implemented.

[0042] The first embodiment of the present invention proposes a data loading method for a Tab page, a terminal device and a computer-readable storage medium, which, when detecting a trigger action of a trigger identifier of a corresponding tab in a Tab page, obtains a unique identifier corresponding to the trigger action, determines a request address of a data loading method corresponding to the unique identifier in a storage pool, and then loads display data corresponding to the trigger identifier by calling the request address, and displays the display data corresponding to the trigger identifier on the Tab page without loading the display data of all tabs in the Tab page, thereby achieving the effect of improving data loading efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a flowchart of a first embodiment of a method for loading data on a Tab page of the present invention;

[0044] Figure 2 This is a schematic diagram of the Tab page of the present invention;

[0045] Figure 3 It is a flowchart of a second embodiment of the method for loading data on a Tab page of the present invention;

[0046] Figure 4 It is a flow chart of the data loading method of the Tab page of the present invention;

[0047] Figure 5 It is a flowchart of a third embodiment of the method for loading data on a Tab page of the present invention;

[0048] Figure 6 It is a flowchart of a fourth embodiment of a method for loading data on a Tab page of the present invention;

[0049] Figure 7 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.

[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0052] In the related art, as long as a tab on a Tab page is selected by a user during the life cycle of the Tab page, the data of all the tabs in the Tab page needs to be loaded, and then the data corresponding to the tab selected by the user is rendered and displayed in a corresponding display mode. This leads to a technical problem of low data loading efficiency when the user only selects a single or several tabs.

[0053] In order to solve the above defects in the related art, the present invention proposes a data loading method for a Tab page, and its main solution steps include the following:

[0054] When a trigger action of a trigger identifier of a corresponding tab in a Tab page is detected, a unique identifier corresponding to the trigger action is obtained, and a request address of a data loading method corresponding to the unique identifier is determined in a storage pool. Then, by calling the request address, display data corresponding to the trigger identifier is loaded, and the display data corresponding to the trigger identifier is displayed on the Tab page without loading display data of all tabs in the Tab page, thereby achieving the effect of improving data loading efficiency.

[0055] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0056] Reference Figure 1 In a first embodiment of a method for loading data on a Tab page proposed by the present invention, the method for loading data on a Tab page comprises the following steps:

[0057] Step S10: when a trigger action of a trigger identifier corresponding to a tab in a Tab page is detected, a unique identifier corresponding to the trigger action is obtained;

[0058] The Tab page created based on the Tab component can set a corresponding number of tabs. When the trigger mark of the corresponding tab is triggered, the display data of the current Tab page will be switched to the display data corresponding to the current trigger mark. For example, refer to Figure 2 , Figure 2The Tab page of the present invention is schematically shown. The Tab page is provided with tabs such as Tab1, Tab2, Tab3, Tab4, etc., and the display area corresponding to each tab is consistent. When the trigger mark of the corresponding tab is triggered, the display data loaded into the trigger mark will be displayed in the display area.

[0059] In this embodiment, the trigger identifier can be a button, a link, a gesture operation, etc. The gesture operation can be drawing a corresponding text or shape in the Tab page. When the user clicks the trigger identifier of the corresponding tab in the Tab page or makes a gesture operation consistent with the trigger identifier in the Tab page, it is determined that the trigger action of the trigger identifier of the corresponding tab in the Tab page is detected, and then the unique identifier carried by the trigger action is obtained.

[0060] Optionally, a tab in a Tab page may correspond to one or more trigger identifiers, but the unique identifier corresponding to each trigger identifier of the same tab is consistent.

[0061] Optionally, when or after creating the trigger identifier, a unique identifier key can be generated for the trigger identifier and bound to the trigger identifier. When a trigger action of the trigger identifier is detected, the trigger action carries the unique identifier key, and the unique identifier key is obtained from the trigger action.

[0062] Optionally, when the trigger action of the trigger identifier of the corresponding tab in the Tab page is detected, before the step of obtaining the unique identifier corresponding to the trigger action, it includes: receiving the display data bound to the trigger identifier corresponding to each tab in the Tab page and the unique identifier of the trigger identifier, determining the request address of the data loading method of the trigger identifier according to the display data bound to the trigger identifier, and then associating the unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method and storing them in the storage pool.

[0063] In this embodiment, the request address of the data loading method corresponding to the display data is obtained by receiving the display data bound to the trigger identifier corresponding to each tab in the Tab page.

[0064] Step S20: determining a request address of a data loading method corresponding to the unique identifier in a storage pool;

[0065] In this embodiment, the storage pool stores the unique identifier of the trigger identifier associated with each tab and the request address of the data loading method. The storage pool can be traversed according to the unique identifier to find the request address of the data loading method associated with the unique identifier.

[0066] Step S30: calling the request address and loading the display data corresponding to the trigger identifier;

[0067] Step S40: displaying the display data corresponding to the trigger identifier on the Tab page.

[0068] In this embodiment, the display data corresponding to the trigger action is loaded by calling the request address, thereby eliminating the need to load the display data of all tabs in the Tab page, thereby achieving the effect of improving data loading efficiency.

[0069] In the related art, when the trigger action of the trigger mark of the tab corresponding to the Tab page is detected, the fetch function is called to execute a network request to load resource data. And through the pre-defined callback function onFetch, the resource data returned by the fetch function executing the network request is received, and then the resource data is processed in the onFetch function to display the display data corresponding to the tab in the Tab page. However, during the life cycle of the Tab page, as long as the corresponding tab in the Tab page is selected by the user, the fetch function will load the resource data of all tabs, which results in low data loading efficiency when the user only selects a single or several tabs.

[0070] As you can understand, the fetch function is a built-in JavaScript method for making network requests and fetching resources. It is a modern standard way to make asynchronous network requests and provides a concise way to handle HTTP requests and responses. The fetch function returns a Promise, which can use the .then() and .catch() methods to handle the results and errors of the request.

[0071] Optionally, the present invention associates and stores the unique identifier of the trigger identifier associated with each tab and the request address of the data loading method in the storage pool. Then, when the trigger action of the trigger identifier of the corresponding tab is detected, the unique identifier corresponding to the trigger action is obtained, and then after finding the request address of the data loading method corresponding to the unique identifier in the storage pool, the request address is input into the fetch function, so that the fetch function only calls the request address and loads the display data of the request address. When the callback function onFetch receives the display data, the display data is directly displayed in the Tab page, and then in the callback function onFetch, there is no need to perform excessive processing on the display data, thereby improving data loading efficiency.

[0072] Optionally, since a fetch function can only call one request address at the same time. Through the data loading method of the Tab page provided by the present invention, only a few fetch functions need to be created, which are sufficient for the data loading methods of all tabs. When the request address of the data loading method corresponding to the unique identifier is found, each request address is dynamically inserted into the corresponding fetch function respectively, so that the display data of the tab can be loaded separately, and there is no need to create multiple fetch functions, thereby reducing the redundancy of the code.

[0073] It can be understood that the request address of the created fetch function is the independent variable. Only after the trigger action of the trigger identifier is detected and the request address of the trigger identifier is determined, the request address is transmitted to the fetch function as the target value of the independent variable, and the fetch function can be called successfully. The initial value of the independent variable can be set to a request address with no return data to avoid alarms or errors when no real request address is transmitted.

[0074] Optionally, the quantity values ​​of the data loading methods associated with each trigger identifier corresponding to each tab may be obtained, and the maximum quantity value among all quantity values ​​may be determined, and the maximum quantity value may be determined as the creation quantity of the fetch function.

[0075] Optionally, in another optional implementation, when the trigger action of the trigger identifier of the corresponding tab in the Tab page is detected, before the step of obtaining the unique identifier corresponding to the trigger action, it includes: receiving the display data bound to the trigger identifier corresponding to each tab in the Tab page and the unique identifier and name of the trigger identifier, determining the request address of the data loading method of the trigger identifier according to the display data bound to the trigger identifier, and then associating and storing the unique identifier and name of each trigger identifier corresponding to the tab and the request address of the data loading method in the storage pool. Furthermore, when the trigger action of the trigger identifier of the corresponding tab in the Tab page is detected, before the step of obtaining the unique identifier corresponding to the trigger action, it includes: when receiving an access request for the Tab page, traversing the storage pool of the Tab page, obtaining the name of the trigger identifier corresponding to each tab in the Tab page, and displaying the name at the corresponding position of the trigger identifier of the tab.

[0076] In this embodiment, the acquisition of the data displayed in the Tab page needs to be obtained from the database or data file by calling the data loading method of the backend. The developer can determine the request address of the corresponding data loading method according to the displayed data.

[0077] In the technical solution provided in this embodiment, when a trigger action of a trigger identifier of a corresponding tab in a Tab page is detected, a unique identifier corresponding to the trigger action is obtained, and a request address of a data loading method corresponding to the unique identifier is determined in a storage pool, and then the display data corresponding to the trigger identifier is loaded by calling the request address, and the display data corresponding to the trigger identifier is displayed on the Tab page without loading the display data of all tabs in the Tab page, thereby achieving the effect of improving data loading efficiency.

[0078] Reference Figure 3 In the second embodiment, based on the first embodiment, after step S30, the following further includes:

[0079] Step S50: Determine whether the unique identifier has a mark;

[0080] In this embodiment, the mark is used to identify whether the trigger identifier has a data association relationship with other trigger identifiers. The mark can be represented by corresponding characters or numbers, and can be added at a set position in the unique identifier corresponding to the trigger identifier.

[0081] It can be understood that since there is a lot of data in the data association relationship, the present invention uses a mark to identify whether the unique identifier of the current trigger identifier has a data association relationship, and thus there is no need to directly obtain the data association relationship of the unique identifier. It is possible to reduce the loss of memory resources by judging whether the trigger identifier has a data association relationship.

[0082] Optionally, after the present invention determines the request address of the data loading method of the trigger identifier based on the display data bound to the trigger identifier, the data association relationship between each trigger identifier is determined based on the request address of the data loading method of the trigger identifier, and then after the step of associating and storing the unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method in the storage pool, the unique identifier of the trigger identifier with the data association relationship is marked, and the unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method and the data association relationship are associated and stored in the storage pool. In this way, after the step of calling the request address of the current trigger action and loading the display data corresponding to the current trigger action, it can be determined from the storage pool whether the unique identifier is marked.

[0083] Step S60: If the tag exists, obtain the data association relationship of the unique identifier;

[0084] In this embodiment, the data association relationship refers to whether each trigger identifier is bound to the same display data or whether there is a parent-child relationship between the display data bound to each trigger identifier. The parent-child relationship means that when one data is modified, the other data must also be modified accordingly.

[0085] Step S70: If the data association relationship is a first type relationship, cache the display data;

[0086] In this embodiment, the first type of relationship means that the display data corresponding to the current trigger identifier has the same part as the display data corresponding to another trigger identifier. When the present invention determines that the data association relationship of the trigger identifier is the first type of relationship, the display data is cached, and then when the trigger action of another trigger identifier is detected, the display data can be directly obtained from the cache without requiring or reducing the number of call request addresses, thereby improving the acquisition efficiency of display data and reducing network resource consumption.

[0087] Step S80: if the data association relationship is a second type relationship, obtaining a request address of a brother data loading method corresponding to the second type relationship;

[0088] Step S90: calling the request address, updating and caching the display data of the brother data loading method.

[0089] In this embodiment, the second type of relationship refers to the parent-child relationship between the display data corresponding to the current trigger identifier and the display data corresponding to another trigger identifier. The request address of the brother data loading method refers to the request address of the data loading method of the target display data in another trigger identifier that has a parent-child relationship with the display data of the current trigger identifier. When the present invention determines that the data association relationship of the current trigger identifier is a second type of relationship, it will call the request address of the brother data loading method, and then call the request address to update the target display data of another trigger identifier in the database that has a parent-child relationship with the display data of the current trigger identifier, so as to maintain data consistency. The updated target display data is cached, and then when the trigger action of another trigger identifier is detected, the display data can be directly obtained from the cache without or reducing the number of calls to the request address, thereby improving the efficiency of obtaining display data and reducing network resource consumption.

[0090] It should be noted that when the data association relationship is a second type relationship, the request address of the brother data loading method corresponding to the second type relationship will be associated with the unique identifier of the current trigger identifier and stored.

[0091] For example, refer to Figure 4 , Figure 4 The flowchart of the data loading method of the Tab page of the present invention is as follows. When the trigger action of the trigger mark corresponding to the Tab1 tab is detected, the request address corresponding to the trigger mark is called, and after or at the same time as the display data of the trigger mark is loaded, the request address of the brother data loading method of the trigger mark corresponding to the Tab2 tab is called to maintain data consistency.

[0092] In the technical solution provided in this embodiment, after calling the request address associated with the unique identifier of the current trigger identifier and loading the display data corresponding to the trigger action, by determining whether the unique identifier is associated with a tag, if there is a tag, the data association relationship of the unique identifier is obtained, and if the data association relationship is a first-class relationship, the display data is cached. If the data association relationship is a second-class relationship, the request address of the brother data loading method corresponding to the second-class relationship is obtained, and then the request address is called to update and cache the display data of the brother data loading method, so that when the trigger action of other trigger identifiers is detected later, the display data can be directly obtained from the cache without having to or reducing the number of calling the request address, thereby improving the efficiency of obtaining display data and reducing network resource consumption.

[0093] Reference Figure 5 In a third embodiment, based on any of the above embodiments, after step S30, the method further includes:

[0094] Step S100: obtaining a trigger time when a trigger action of the trigger mark is detected;

[0095] Step S110: caching the display data and the trigger time corresponding to the trigger identifier;

[0096] In this embodiment, when a trigger action of a trigger mark corresponding to a tab in a Tab page is detected, the current time of the system is synchronously acquired, and the acquired current time is used as the trigger time of the trigger action. Then, when the display data corresponding to the trigger action is loaded, the display data of the trigger action and the trigger time are cached together.

[0097] Step S120: when the trigger action of the trigger mark is detected again, obtaining the current trigger time of the trigger action;

[0098] In this embodiment, when the trigger action is detected again, the current time of the system is synchronously acquired as the current trigger time of the trigger action.

[0099] Step S130: when the difference between the current trigger time and the trigger time is less than a set threshold, obtaining the display data corresponding to the trigger identifier in the cache;

[0100] Step S140: When the difference between the current trigger time and the trigger time is greater than or equal to a set threshold, executing the step of obtaining the unique identifier corresponding to the trigger action.

[0101] In this embodiment, when the difference between the current trigger time and the cached trigger time is less than the set threshold, the display data corresponding to the trigger action is obtained from the cache for display, without having to obtain the display data by calling the request address of the trigger action, thereby improving the efficiency of obtaining the display data and reducing the consumption of network resources. When the difference between the current trigger time and the cached trigger time is greater than or equal to the set threshold, the display data is loaded by calling the request address of the data loading method corresponding to the trigger action again, thereby maintaining the timeliness of the display data in the Tab page.

[0102] In the technical solution provided in this embodiment, by obtaining the trigger time of the trigger action, the display data corresponding to the trigger action and the trigger time are cached, and then when the trigger action is detected again, the current trigger time of the trigger action is obtained, and when the difference between the current trigger time and the trigger time is less than the set threshold, the display data corresponding to the trigger action is obtained in the cache, thereby improving the efficiency of obtaining the display data. When the difference between the current trigger time and the trigger time is greater than or equal to the set threshold, the step of obtaining the unique identifier corresponding to the trigger action is performed, so as to load the display data by calling the request address of the trigger action, thereby improving the timeliness of the display data of the Tab page.

[0103] Reference Figure 6 In a fourth embodiment, based on any of the above embodiments, step S40 includes:

[0104] Step S41: obtaining the size of the display area corresponding to the trigger mark;

[0105] Step S42: determining the font format of the display data in the display area according to the size, the amount of the display data and the display mode;

[0106] The display mode of the display data in the display area is set by the user in advance. With the increase of the amount of display data and the change of the display data format, for example, the increase of the data length of the display data of a certain data type, it is easy to cause the display data to be incomplete when it is displayed in the display area in the display mode.

[0107] In this embodiment, the font format includes but is not limited to character spacing and / or font size. After acquiring the display data, the present invention acquires the size of the display area corresponding to the trigger identifier, determines the length of the sub-display area of ​​each type of display data in the display area and the data length of each type of display data when each type of display data is displayed in this display mode, and if the length of the sub-display area is less than the data length of the display data, it indicates that the display data is incomplete. Then, the font format of the dynamic display data is adjusted according to the length of the sub-display area, so that the data length of the display data is less than the length of the sub-display area, thereby improving the display integrity of the display data on the Tab page.

[0108] Step S43: displaying the display data corresponding to the trigger identifier in the display area of ​​the Tab page in the font format.

[0109] In this embodiment, after the font format of the display data in the display area is adjusted, the data is directly displayed in the display area of ​​the Tab page in the font format, so that the user can see the complete display data.

[0110] In the technical solution provided in this embodiment, by obtaining the size of the display area corresponding to the trigger identifier, the font format of the display data in the display area is determined according to the size, the amount of display data, and the display mode, and then the display data of the trigger identifier is displayed in the display area of ​​the Tab page with this font format, thereby improving the display integrity of the display data on the Tab page and improving the user's viewing experience.

[0111] Reference Figure 7 , Figure 7 The figure is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.

[0112] like Figure 7 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), a mouse, etc., and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0113] Those skilled in the art will understand that Figure 7The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0114] like Figure 7 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a data loading program for a Tab page.

[0115] exist Figure 7 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the processor 1001 can be used to call the data loading program of the Tab page stored in the memory 1005 and perform the following operations:

[0116] When a trigger action of a trigger identifier of a corresponding tab in a Tab page is detected, a unique identifier corresponding to the trigger action is obtained;

[0117] Determining in the storage pool a request address of the data loading method corresponding to the unique identifier;

[0118] Calling the request address to load display data corresponding to the trigger identifier;

[0119] The display data corresponding to the trigger identifier is displayed on the Tab page.

[0120] Further, the processor 1001 may call the data loading program of the Tab page stored in the memory 1005, and further perform the following operations:

[0121] Receive display data bound to the trigger identifier corresponding to each tab in the Tab page and the unique identifier of the trigger identifier;

[0122] Determine the request address of the data loading method of the trigger identifier according to the display data bound to the trigger identifier;

[0123] The unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method are associated and stored in the storage pool.

[0124] Further, the processor 1001 may call the data loading program of the Tab page stored in the memory 1005, and further perform the following operations:

[0125] Determining the data association relationship between the trigger identifiers according to the request address of the data loading method of the trigger identifier;

[0126] After the step of associating and storing the unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method in the storage pool, the method further includes:

[0127] The unique identifier of the trigger identifier with the data association relationship is marked, and the unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method and the data association relationship are associated and stored in the storage pool.

[0128] Further, the processor 1001 may call the data loading program of the Tab page stored in the memory 1005, and further perform the following operations:

[0129] Determine whether the unique identifier has the tag;

[0130] If the tag exists, obtaining the data association relationship of the unique identifier;

[0131] If the data association relationship is a first type relationship, cache the display data;

[0132] If the data association relationship is a second type of relationship, obtaining a request address of a brother data loading method corresponding to the second type of relationship;

[0133] The request address is called to update and cache the display data of the brother data loading method.

[0134] Further, the processor 1001 may call the data loading program of the Tab page stored in the memory 1005, and further perform the following operations:

[0135] Acquire the trigger time when the trigger action of the trigger mark is detected;

[0136] Cache the display data and the trigger time corresponding to the trigger identifier;

[0137] When the trigger action of the trigger identifier is detected again, obtaining the current trigger time of the trigger action;

[0138] When the difference between the current trigger time and the trigger time is less than a set threshold, acquiring the display data corresponding to the trigger identifier in the cache;

[0139] When the difference between the current trigger time and the trigger time is greater than or equal to a set threshold, the step of obtaining the unique identifier corresponding to the trigger action is performed.

[0140] Further, the processor 1001 may call the data loading program of the Tab page stored in the memory 1005, and further perform the following operations:

[0141] Obtaining the size of the display area corresponding to the trigger mark;

[0142] Determine the font format of the display data in the display area according to the size, the amount of the display data, and the display mode;

[0143] The display data corresponding to the trigger identifier is displayed in the display area of ​​the Tab page in the font format.

[0144] Further, the processor 1001 may call the data loading program of the Tab page stored in the memory 1005, and further perform the following operations:

[0145] determining, when each type of display data is displayed in the display mode, the length of the sub-display area of ​​each type of display data in the display area and the data length of each type of display data;

[0146] If the length of the sub-display area is smaller than the data length of the display data, the font format of the display data is adjusted according to the length of the sub-display area.

[0147] Further, the processor 1001 may call the data loading program of the Tab page stored in the memory 1005, and further perform the following operations:

[0148] The request address is transmitted to a corresponding fetch function, so that the fetch function loads display data corresponding to the trigger identifier based on the request address.

[0149] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a data loading program for a Tab page stored in the memory and executable on the processor, and when the data loading program for the Tab page is executed by the processor, the steps of the data loading method for the Tab page as described above are implemented.

[0150] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a data loading program for a Tab page is stored. When the data loading program for a Tab page is executed by a processor, the steps of the data loading method for a Tab page as described above are implemented.

[0151] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0152] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0153] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer) to execute the methods described in each embodiment of the present invention.

[0154] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for loading data on a Tab page, characterized in that: The data loading method of the Tab page includes: When a trigger action of a trigger identifier of a corresponding tab in a Tab page is detected, a unique identifier corresponding to the trigger action is obtained; Determining in the storage pool a request address of the data loading method corresponding to the unique identifier; Calling the request address to load display data corresponding to the trigger identifier; Displaying the display data corresponding to the trigger identifier on the Tab page; Wherein, when a triggering action of a triggering identifier of a corresponding tab in a Tab page is detected, before the step of obtaining a unique identifier corresponding to the triggering action, the step includes: Receive display data bound to the trigger identifier corresponding to each tab in the Tab page and the unique identifier of the trigger identifier; Determine the request address of the data loading method of the trigger identifier according to the display data bound to the trigger identifier; Associating and storing the unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method in the storage pool; Wherein, after the step of determining the request address of the data loading method of the trigger identifier according to the display data bound to the trigger identifier, the method further comprises: Determining the data association relationship between the trigger identifiers according to the request address of the data loading method of the trigger identifier; After the step of associating and storing the unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method in the storage pool, the method further includes: Marking the unique identifier of the trigger identifier with the data association relationship, and storing the unique identifier of each trigger identifier corresponding to the tab and the request address of the data loading method and the data association relationship in the storage pool in association with each other; Wherein, after the step of calling the request address and loading the display data corresponding to the trigger identifier, the method further includes: Determine whether the unique identifier has the tag; If the tag exists, obtaining the data association relationship of the unique identifier; If the data association relationship is a first type relationship, cache the display data, wherein the first type relationship means that the display data corresponding to the current trigger identifier and the display data corresponding to another trigger identifier have the same part; If the data association relationship is a second type of relationship, obtaining a request address of a sibling data loading method corresponding to the second type of relationship, wherein the second type of relationship means that the display data corresponding to the current trigger identifier and the display data corresponding to another trigger identifier are in a parent-child relationship, and the parent-child relationship means that when one data is modified, the other data must also be modified accordingly; The request address is called to update and cache the display data of the brother data loading method.

2. The method according to claim 1, characterized in that After the step of displaying the display data corresponding to the trigger identifier on the Tab page, the method further includes: Acquire the trigger time when the trigger action of the trigger mark is detected; Cache the display data and the trigger time corresponding to the trigger identifier; When the trigger action of the trigger identifier is detected again, obtaining the current trigger time of the trigger action; When the difference between the current trigger time and the trigger time is less than a set threshold, acquiring the display data corresponding to the trigger identifier in the cache; When the difference between the current trigger time and the trigger time is greater than or equal to a set threshold, the step of obtaining the unique identifier corresponding to the trigger action is performed.

3. The method according to claim 1, characterized in that The step of displaying the display data corresponding to the trigger identifier on the Tab page includes: Obtaining the size of the display area corresponding to the trigger mark; Determine the font format of the display data in the display area according to the size, the amount of the display data, and the display mode; The display data corresponding to the trigger identifier is displayed in the display area of ​​the Tab page in the font format.

4. The method according to claim 3, characterized in that The step of determining the font format of the display data in the display area according to the size, the amount of the display data, and the display mode comprises: determining, when each type of display data is displayed in the display mode, the length of the sub-display area of ​​each type of display data in the display area and the data length of each type of display data; If the length of the sub-display area is smaller than the data length of the display data, the font format of the display data is adjusted according to the length of the sub-display area.

5. The method according to claim 1, characterized in that The step of calling the request address and loading the display data corresponding to the trigger identifier includes: The request address is transmitted to a corresponding fetch function, so that the fetch function loads display data corresponding to the trigger identifier based on the request address.

6. A terminal device, characterized in that: The terminal device includes: a memory, a processor, and a data loading program for the Tab page of the terminal device stored in the memory and executable on the processor. When the data loading program for the Tab page of the terminal device is executed by the processor, the steps of the data loading method for the Tab page as described in any one of claims 1 to 5 are implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data loading program for the Tab page of the terminal device, and when the data loading program for the Tab page of the terminal device is executed by the processor, the steps of the data loading method for the Tab page according to any one of claims 1 to 5 are implemented.