A data display method and device

By initially displaying the highest-level data in the data display area and responding to user selections to remove or add the next level of sub-data, the problem of inconvenient hierarchical data display is solved, achieving clear data display and a user-friendly experience.

CN115935025BActive Publication Date: 2026-05-29BEIJING BAIDU NETCOM SCI & TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING BAIDU NETCOM SCI & TECH CO LTD
Filing Date
2022-12-30
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing technologies often display hierarchical data in a lengthy manner, making it difficult for users to view intuitively. This is especially true when users select multiple data items, as the display of sub-data becomes lengthy, negatively impacting the user experience.

Method used

In the data display area, the highest level of sub-data is initially displayed, and in response to user selection, redundant sub-data is removed, and the next level of sub-data of the target sub-data is added, or the next level of sub-data is added directly when there is no redundant sub-data, and sub-data of different levels is displayed in multiple rows.

Benefits of technology

It achieves clear data display and user-friendliness, allowing users to intuitively view hierarchical relationships, avoiding the problem of incomplete data display, and improving user experience and stickiness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115935025B_ABST
    Figure CN115935025B_ABST
Patent Text Reader

Abstract

The present disclosure provides a data display method and device, relates to the field of computers, and particularly relates to the field of data processing technology. The specific implementation scheme is as follows: display sub data in hierarchical data with a hierarchical relationship in a data display area; in response to a data selection operation of a user on the display sub data, determine target sub data selected by the user in the display sub data; in the case that there is redundant sub data in the display sub data, remove the redundant sub data from the display sub data and add sub data of a next level corresponding to the target sub data in the hierarchical data; in the case that there is no redundant sub data in the display sub data, add sub data of a next level corresponding to the target sub data in the hierarchical data in the display sub data; and return to the step of displaying the display sub data in the hierarchical data with the hierarchical relationship in the data display area. The data display scheme provided by the present disclosure can improve user stickiness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, particularly to the field of data processing technology, and especially to a data display method and apparatus. Background Technology

[0002] Multiple data sets with hierarchical relationships can be represented as a tree structure. In existing technologies, when displaying hierarchical data to users, the data is typically converted into a tree structure, and then a tree component is used to render the tree structure data, thus presenting the rendered data to the user. Summary of the Invention

[0003] This disclosure provides a data display method and apparatus.

[0004] According to one aspect of this disclosure, a data display method is provided, comprising:

[0005] The data display area displays sub-data in the hierarchical data that has a hierarchical relationship. The initial value of the sub-data is the highest level sub-data in the hierarchical data. Sub-data of different levels are displayed in different rows in the data display area.

[0006] In response to the user's data selection operation on the displayed sub-data, the target sub-data selected by the user in the displayed sub-data is determined;

[0007] If there is redundant sub-data in the displayed sub-data, the redundant sub-data is removed from the displayed sub-data, and the sub-data of the next level corresponding to the target sub-data in the hierarchical data is added. The redundant sub-data is: sub-data belonging to the level after the level where the target sub-data is located.

[0008] If the redundant sub-data does not exist in the displayed sub-data, add the sub-data of the next level corresponding to the target sub-data in the hierarchical data to the displayed sub-data;

[0009] Return to the step of displaying sub-data in the hierarchical data with hierarchical relationships in the data display area.

[0010] According to another aspect of this disclosure, a data display device is provided, comprising:

[0011] The data display module is used to display sub-data in hierarchical data with a hierarchical relationship in the data display area. The initial value of the display sub-data is the highest level sub-data in the hierarchical data, and the display sub-data of different levels are displayed in different rows in the data display area.

[0012] A data determination module is used to determine the target sub-data selected by the user in the displayed sub-data in response to the user's data selection operation on the displayed sub-data;

[0013] The first adjustment module is used to remove redundant sub-data from the displayed sub-data when there is redundant sub-data in the displayed sub-data, and add the sub-data of the next level corresponding to the target sub-data in the hierarchical data, and return to the step of displaying the displayed sub-data in the hierarchical data with hierarchical relationship in the data display area, wherein the redundant sub-data is: sub-data belonging to the level after the level where the target sub-data is located;

[0014] The second adjustment module is used to add the next level of sub-data corresponding to the target sub-data in the hierarchical data to the displayed sub-data when there is no redundant sub-data in the displayed sub-data, and return to the step of displaying the displayed sub-data in the hierarchical data with hierarchical relationship in the data display area.

[0015] According to another aspect of this disclosure, an electronic device is provided, comprising:

[0016] At least one processor; and

[0017] A memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the data display method described above.

[0019] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform the above-described data display method.

[0020] According to another aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the above-described data display method.

[0021] As can be seen from the above, when displaying data using the solution provided in this embodiment, the display sub-data in the hierarchical data is shown in the data display area. After the user selects data from the displayed sub-data, the system can respond to the user's data selection operation, determine the target sub-data selected by the user, and remove redundant sub-data if there is redundant sub-data in the displayed sub-data, adding the next level sub-data corresponding to the target sub-data. If there is no redundant sub-data in the displayed sub-data, the next level sub-data corresponding to the target sub-data can be added directly to the displayed sub-data. After adjusting the data contained in the displayed sub-data, the adjusted displayed sub-data can be displayed again in the data display area, thereby achieving data display. Furthermore, sub-data at different levels can be displayed in different rows of the data display area, allowing users to intuitively view the hierarchical relationship between the displayed data. Moreover, by dividing the data into multiple rows to display multiple levels of sub-data, the system can ensure that the entire displayed sub-data is displayed in the data display area as a whole, avoiding incomplete data display, improving user experience, and thus increasing user stickiness.

[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0023] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0024] Figure 1 This is a schematic diagram illustrating a tree-structured data method in existing technology.

[0025] Figure 2a A flowchart illustrating the first data display method provided in this embodiment of the disclosure;

[0026] Figure 2b This is a schematic diagram of a data display area provided in an embodiment of the present disclosure;

[0027] Figure 3 This is a comparative diagram of a tree structure and an array structure provided in an embodiment of the present disclosure;

[0028] Figure 4 A flowchart illustrating the second data display method provided in this embodiment of the disclosure;

[0029] Figure 5 A flowchart illustrating the third data display method provided in this embodiment of the disclosure;

[0030] Figure 6A flowchart illustrating the fourth data display method provided in this embodiment of the disclosure;

[0031] Figure 7 This is a schematic diagram of the structure of a first data display device provided in an embodiment of the present disclosure;

[0032] Figure 8 This is a schematic diagram of the structure of a second data display device provided in an embodiment of the present disclosure;

[0033] Figure 9 This is a schematic diagram of the structure of a third data display device provided in an embodiment of the present disclosure;

[0034] Figure 10 This is a block diagram of an electronic device used to implement the data display method of the embodiments of this disclosure. Detailed Implementation

[0035] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0036] See Figure 1 , Figure 1 This is a schematic diagram illustrating a tree-structured data structure. Figure 1 As can be seen, when displaying sub-data at multiple levels of a tree-structured data structure to users, the sub-data is arranged vertically, with each sub-data occupying one row of the data display area. After a user selects a sub-data, the next level of sub-data can be inserted starting from the next row after the selected sub-data. When the user selects a large amount of data, the displayed sub-data becomes lengthy and inconvenient for the user to view intuitively.

[0037] To address the aforementioned problems, this disclosure provides a data display method and apparatus, which will be described in detail below through specific embodiments.

[0038] In one embodiment of this disclosure, see [link to embodiment]. Figure 2a The present invention provides a flowchart of the first data display method. In this embodiment, the above method includes the following steps S201-S204.

[0039] Step S201: Display the sub-data in the hierarchical data that has a hierarchical relationship in the data display area.

[0040] The data display area mentioned above can be part or all of the interface area in the user interaction interface.

[0041] Different levels of sub-data are displayed in different rows of the data display area.

[0042] For example, if the above-mentioned sub-data includes two different levels of sub-data from the above-mentioned hierarchical data, then these two different levels of sub-data can be displayed in two rows of the data display area respectively.

[0043] The initial value for displaying sub-data is the highest-level sub-data in the hierarchical data. When displaying this initial value in the data display area, the highest-level sub-data in the hierarchical data can be displayed in a single row within the data display area.

[0044] Specifically, after obtaining hierarchical data with a hierarchical relationship, the highest-level sub-data in the hierarchical data can be determined as the initial display sub-data, and this initial display sub-data can be displayed in the data display area, that is, the highest-level sub-data in the hierarchical data.

[0045] Step S202: In response to the user's data selection operation for displaying sub-data, determine the target sub-data selected by the user in the display of sub-data.

[0046] Specifically, the data display area can be a region within the user interface. Users can view the sub-data displayed in this area and select sub-data based on their needs. Each time a user selects a sub-data, the system can respond to this selection and determine the target sub-data chosen by the user within the displayed data.

[0047] The methods for determining the target sub-data selected by the user can be achieved using existing technologies, which will not be detailed here.

[0048] Step S203: If there is redundant sub-data in the displayed sub-data, remove the redundant sub-data from the displayed sub-data, add the sub-data of the next level corresponding to the target sub-data in the hierarchical data, and return to step S201 above.

[0049] Among them, redundant sub-data refers to sub-data belonging to the level following the level of the target sub-data.

[0050] Specifically, after obtaining the aforementioned display sub-data, the level of each display sub-data can be recorded. After determining the aforementioned target sub-data, the level of the target sub-data can be searched in the aforementioned hierarchical data. This allows us to determine whether there are any levels in the hierarchy of each display sub-data that are lower than the level of the target sub-data. If such a level exists, it indicates that there are redundant sub-data in the display sub-data that belong to a level after the level of the target sub-data. At this point, we can identify the sub-data in the display sub-data that is at a level after the level of the target sub-data, remove the identified sub-data from the display sub-data, and then identify the next level sub-data corresponding to the target sub-data in the aforementioned hierarchical data. Finally, we add the identified next level sub-data to the display sub-data.

[0051] For example, if the above-mentioned display sub-data includes data A1, B1, B2, C1, C2, and D1, and in the hierarchical data, data A1 is at level one, data B1 and B2 are at level two, data C1 and C2 are at level three, and data D1 is at level four, with level one being the highest level. In this case, if the target sub-data is determined to be data B1, then data C1, C2, and D1 can be identified as redundant sub-data. After removing the redundant sub-data from the display sub-data, the display sub-data will only contain data A1, B1, and B2. If, in the hierarchical data, the next level down from data B1 is data C3, then after adding this data, the display sub-data will contain data A1, B1, B2, and C3.

[0052] After removing or adding sub-data in the display sub-data, you can get the adjusted display sub-data. The adjusted display sub-data includes the next level of sub-data corresponding to the sub-data selected by the user. In this way, when the adjusted display sub-data is displayed in the data display area, the user can see the next level of sub-data corresponding to the sub-data they selected.

[0053] like Figure 2b As shown, Figure 2b This is a schematic diagram of a data display area. The four rows of the data display area can respectively display four levels of sub-data. Figure 2b When the above-mentioned display sub-data is the initial value, the data display area can only display the display sub-data A2 and A3 in the first row; after the user selects data A2 in the display sub-data in the first row, the second row of the data display area can display the data B3, B4, and B5 corresponding to the next level of data A2. Subsequently, the user can successively select data from the display sub-data in the second and third rows.

[0054] In one embodiment of this disclosure, when determining the level of the target sub-data, different levels of sub-data can be displayed in different rows of the data display area. A correspondence between the number of rows and the level of the sub-data displayed in each row can be generated. In this way, after determining the target sub-data, the number of rows in which the target sub-data is located can be determined, and then the level of the target sub-data can be obtained based on the determined number of rows and the correspondence.

[0055] In addition to using the methods described above to determine whether redundant sub-data exists, in one embodiment of this disclosure, when displaying the aforementioned display sub-data in the data display area, display sub-data of different levels can be displayed sequentially in different rows according to the hierarchical order of each display sub-data. After determining the target sub-data, the existence of redundant sub-data can be detected by determining whether the row containing the target sub-data is the last row of all display sub-data rows.

[0056] If the row containing the target sub-data is the last row of all the rows containing the displayed sub-data, then it is determined that there is no redundant sub-data in the displayed sub-data; if the row containing the target sub-data is not the last row of all the rows containing the displayed sub-data, then it is determined that there is redundant sub-data in the displayed sub-data.

[0057] Step S204: If there is no redundant sub-data in the displayed sub-data, add the sub-data of the next level of the target sub-data in the hierarchical data to the displayed sub-data, and return to step S201 above.

[0058] For details on how to add sub-data in this step, please refer to step S204 above, which will not be repeated here.

[0059] As can be seen from the above, when displaying data using the solution provided in this embodiment, the display sub-data in the hierarchical data is shown in the data display area. This allows the system to respond to the user's data selection operation after the user selects data from the displayed sub-data, determining the target sub-data. If redundant sub-data exists in the displayed sub-data, it can be removed, and the next-level sub-data corresponding to the target sub-data can be added. If no redundant sub-data exists, the next-level sub-data corresponding to the target sub-data can be directly added. After adjusting the data contained in the displayed sub-data, the adjusted displayed sub-data can be displayed again in the data display area, thus achieving data display. Furthermore, sub-data at different levels can be displayed in different rows of the data display area, resulting in clear data display and allowing users to intuitively view the hierarchical relationship between the displayed data. Moreover, by dividing...

[0060] Displaying multiple levels of sub-data in multiple rows ensures that the entire sub-data is displayed in the data display area as much as possible, avoiding incomplete data display. This facilitates user operation, reduces usage costs, improves user experience, and ultimately increases user stickiness.

[0061] Furthermore, data exhibiting hierarchical relationships is commonly found in scenarios such as conditional filtering and classification. Data with hierarchical relationships can be considered as filtering conditions; for example, one can search for books from a question bank.

[0062] The test questions corresponding to Section 4 of Chapter 3 in Unit 1 of this book. Here, the units, chapters, and sections in the book form a hierarchical data structure, which can be used to filter test questions.

[0063] The solution provided in this embodiment displays sub-data at different levels in different rows of the data display area. This can be considered as a flat display of multiple data filtering conditions. Since other data without hierarchical relationships can also be presented to the user in a flat display manner as filtering conditions, for example, when...

[0064] While there is no hierarchical relationship between time and geographical location data, they can still be presented to users in a tiled display format. Therefore, the data display scheme provided by this embodiment can ensure the consistency of the user's selection of filtering conditions and simplify user operations.

[0065] The above-mentioned hierarchical data can be used as filtering conditions to filter data in a preset database.

[0066] In one embodiment of this disclosure, the user can select sub-data from the above-mentioned hierarchical data. After determining the sub-data selected by the user and determining new display sub-data based on the data selected by the user, the user can filter candidate data corresponding to the display sub-data in the preset database, and display sub-data in the hierarchical data with hierarchical relationship in the first display area of ​​the data display area, and display the filtered candidate data in the second display area of ​​the data display area.

[0067] 5. The first and second display areas do not overlap.

[0068] For example, the first display area and the second display area can be the upper half and the lower half of the data display area, respectively, or they can be non-overlapping areas within the data display area divided according to a preset ratio.

[0069] The aforementioned database can be a database for storing educational data, which can include test questions, teaching text content, and other similar data.

[0070] When the aforementioned database is used to store educational data, this solution enables the filtering of educational data in educational scenarios and displays the filtered data. This facilitates teachers' teaching work and makes it easier for students to query information.

[0071] Specifically, when the database is obtained, the correspondence between the data in the database and the sub-data in the hierarchical data can be obtained. After determining the display sub-data, the candidate data corresponding to the display sub-data can be filtered in the database according to the correspondence, so as to display the display sub-data in the first display area and the candidate data in the second display area.

[0072] As can be seen from the above, when using the solution provided in the embodiments of this disclosure for data display, the display sub-data in the hierarchical data can be displayed in the first display area, and the above-mentioned candidate data can be displayed in the second display area. Since the candidate data is the data in the database corresponding to the display sub-data, it is possible to display the data that the user expects to view in the database according to the user's selection. Therefore, the data display solution provided in the embodiments of this disclosure can improve the convenience of users viewing data, improve user experience, and strengthen user stickiness.

[0073] The aforementioned display sub-data can be represented as a one-dimensional array, for example, as a one-dimensional JavaScript array. Each element in the one-dimensional array corresponds to a level of the display sub-data, such as... Figure 3 As shown, Figure 3 This is a diagram comparing tree structures and array structures. Figure 3 As can be seen, there are relationships between the sub-data at adjacent levels in the tree structure data, while in the one-dimensional array structure, the data at each level is stored as an element in the array. Figure 3 In this context, level N represents the level after level three.

[0074] Each element in a one-dimensional array has a number attribute and a sub-data attribute. The number attribute identifies which element in the array it belongs to, and the sub-data attribute identifies which sub-data elements belong to the corresponding level of the array. Removing or adding sub-data elements in an array can be represented as removing or adding elements. If the one-dimensional array described above is a one-dimensional JavaScript array, the JavaScript array push and splice methods can be used to add and remove array elements.

[0075] Therefore, in one embodiment of this disclosure, after obtaining the aforementioned hierarchical data, a one-dimensional array containing one element can be generated. The number attribute of this element in the array is 1, used to identify that the element is the first element in the one-dimensional array. The sub-data attribute of this element is the label of the highest-level sub-data in the aforementioned hierarchical data. When displaying the sub-data, the first row of the data display area can be determined as the area to be displayed based on the number attribute of this element in the generated one-dimensional array. Based on the sub-data attribute of this element in the one-dimensional array, the highest-level sub-data in the hierarchical data is determined, thereby displaying the highest-level sub-data in the first row of the data display area.

[0076] After a user selects a sub-data item from the displayed sub-data, the system first determines the element corresponding to the selected sub-data. It then checks if an element following the selected element exists in the one-dimensional array. If so, the element following the selected element is removed, and the next element is generated. This next element's number attribute is configured as its permutation number. Furthermore, the sub-data attributes of the next element are configured according to the next level of sub-data in the hierarchical data, resulting in a configured element. When displaying sub-data, the system can determine the row corresponding to the next element's permutation number based on its number attribute, and determine and display the next level of sub-data in the hierarchical data based on its sub-data attributes. If no element following the selected element exists in the one-dimensional array, the next element can be generated directly.

[0077] When the aforementioned one-dimensional array is a one-dimensional JavaScript array, data display based on this array can be achieved by adding it to the user interface content. The user interface can then be rendered according to W3C standards. Furthermore, changes to elements within the one-dimensional JavaScript array can trigger a re-render of the user interface, allowing different sub-data corresponding to different elements in the one-dimensional JavaScript array to be displayed in different rows of the data display area. The framework of the user interface containing the data display area can be built using MVVM (Model-View-ViewModel) technologies such as Vue or React. This enables rapid rendering of the interface after the user selects sub-data, allowing the next level of sub-data to be quickly displayed to the user.

[0078] After viewing the data they want to see, users often want to hide some of the displayed sub-data in the data display area to keep the user interface clean.

[0079] Therefore, in one embodiment of this disclosure, see [link to relevant documentation]. Figure 4The flowchart of the second data display method is provided. In this embodiment, the above method includes the following steps S401-S406.

[0080] Step S401: Display the sub-data in the hierarchical data that has a hierarchical relationship in the data display area.

[0081] Step S402: In response to the user's data selection operation for displaying sub-data, determine the target sub-data selected by the user in the display of sub-data.

[0082] The steps S401-S402 described above are the same as those S201-S202 described above, and will not be repeated here.

[0083] Step S403: Determine whether the data selection operation belongs to the preset hidden data operation. If yes, proceed to step S404; if no, proceed to step S405 or S406.

[0084] The aforementioned data hiding operation is a manually set operation used to hide data.

[0085] Specifically, if the above data selection operation is a data hiding operation, it means that the user's intention is not to view the data, but to hide part of the data in the sub-data. In this case, step S404 can be executed. Conversely, if the above data selection operation is not a data hiding operation, it means that the user wants to view the data. In this case, step S405 can be executed.

[0086] Furthermore, one or more of the aforementioned data hiding operations can be performed. When multiple data hiding operations exist, the user only needs to perform any one of these operations to indicate that the user desires to hide data.

[0087] In one embodiment of this disclosure, the above-mentioned hidden data operation is: the user uses an external clicking device to click on the selected data for a duration that exceeds a preset duration threshold.

[0088] The external clicking device mentioned above can be a mouse, keyboard, or similar device. Additionally, the user interface can be a touchscreen, allowing users to manually click on displayed sub-data within the temporary data area.

[0089] The aforementioned preset duration threshold can be set manually. For example, 0.5 seconds, 1 second, etc.

[0090] In this solution, when users view the displayed sub-data, they can usually use an external clicking device to quickly click on the data. If the user wants to hide the displayed sub-data, they can select the displayed sub-data by clicking for a long time, that is, by long-pressing to select the displayed sub-data. In this way, the user's intention can be determined by the click duration. When it is detected that the user's click duration for selecting data using an external clicking device exceeds the preset duration threshold, the user's intention to hide the data can be accurately determined, and then the next step of data hiding processing can be accurately carried out.

[0091] In another embodiment of this disclosure, the above-mentioned hidden data operation is: the user uses an external clicking device to select data in a multi-click manner.

[0092] For example, the aforementioned hidden data operation could be a user double-clicking or triple-clicking the data using an external clicking device.

[0093] In this solution, when viewing displayed sub-data, users can typically use an external clicking device to quickly tap the data once. If a user wishes to hide the displayed sub-data, they can select to display it using a multi-tap method.

[0094] This data display allows us to determine the user's intent by tracking the number of clicks. When a user's consecutive click count is detected (e.g., 5 clicks), we can accurately determine the user's intention to hide data, thus enabling us to proceed to the next step precisely.

[0095] Hidden data processing.

[0096] Step S404: If there is redundant sub-data in the displayed sub-data, remove the redundant sub-data and return to step S401 above.

[0097] For details on how to remove redundant sub-data, please refer to step S204 above, which will not be repeated here.

[0098] Step S405: If there is redundant sub-data in the displayed sub-data, remove the redundant sub-data from the displayed sub-data, add the sub-data of the next level corresponding to the target sub-data in the hierarchical data, and return to step S401 above.

[0099] Step S406: If there is no redundant sub-data in the displayed sub-data, add the sub-data of the next level of the target sub-data in the hierarchical data in the displayed sub-data, and return to step S401 above.

[0100] The steps S405-S406 described above are the same as those S203-S204 described above, and will not be repeated here.

[0101] As can be seen from the above, when displaying data using the solution provided in the embodiments of this disclosure, it responds to the user.

[0102] The data selection operation can detect whether it belongs to the preset hidden data operation. If the user's data selection operation belongs to the hidden data operation, it means that the user expects the data to be hidden.

[0103] Since the data is not viewed directly, by applying the solution provided in this embodiment, users can control the sub-data displayed in the data display area by selecting different data operations according to their own needs. This can improve user operability and user experience, thereby increasing user stickiness.

[0104] 5. In addition to the methods mentioned above, when implementing data hiding, Figure 4 In addition to the methods provided in the illustrated embodiments, the following methods can also be used. Figure 5 In the illustrated embodiment, step S505 hides the data.

[0105] In one embodiment of this disclosure, see [link to embodiment]. Figure 5 The present invention provides a flowchart of a third data display method. In this embodiment, the above method includes the following steps S501-S506.

[0106] Step S501: Display the sub-data in the hierarchical data that has a hierarchical relationship in the data display area.

[0107] Step S502: In response to the user's data selection operation for displaying sub-data, determine the target sub-data selected by the user in the display of sub-data.

[0108] The steps S501-S502 described above are the same as steps S201-S202 described above, and will not be repeated here.

[0109] Step S503: Determine whether the number of times the target sub-data is selected is even. If yes, proceed to step S504; if no, proceed to step S505 or S506.

[0110] Specifically, for each sub-data item displayed in the data display area, the number of times that sub-data item is selected can be recorded. Each time a sub-data item is selected, its selection count is incremented by one. In this way, after determining the target sub-data item, the previously recorded selection count of the target sub-data item can be incremented by one, and it can be determined whether the selected count of the target sub-data item after incrementing by one is even.

[0111] Step S504: If there is redundant sub-data in the displayed sub-data, remove the redundant sub-data and return to step S501 above.

[0112] Step S505: If there is redundant sub-data in the displayed sub-data, remove the redundant sub-data from the displayed sub-data, add the sub-data of the next level corresponding to the target sub-data in the hierarchical data, and return to step S501 above.

[0113] Step S506: If there is no redundant sub-data in the displayed sub-data, add the sub-data of the next level of the target sub-data in the hierarchical data to the displayed sub-data, and return to step S501 above.

[0114] The steps S504-S506 above are the same as those S404-S406 above, and will not be repeated here.

[0115] As can be seen from the above, when displaying data using the solution provided in the embodiments of this disclosure, if there is redundant sub-data in the displayed sub-data, and the number of times the target sub-data is selected is even, then the redundant sub-data is removed; if the number of times the target sub-data is selected is odd, then after removing the redundant sub-data, the next level of sub-data corresponding to the target sub-data is added. In this way, by clicking on the target sub-data, the user can make the data display area show or hide the next level of data corresponding to the target sub-data. It is evident that the data display solution provided in the embodiments of this disclosure can improve the convenience of users viewing data.

[0116] In the data display area, in addition to displaying sub-data, other information can also be displayed.

[0117] In one embodiment of this disclosure, see [link to embodiment]. Figure 6 The present invention provides a flowchart of a fourth data display method. In this embodiment, the above method includes the following steps S601-S604.

[0118] Step S601: Display the sub-data in the hierarchical data with hierarchical relationship in the data display area, as well as the hierarchical information of the sub-data displayed in each row.

[0119] The aforementioned hierarchical information may include the level at which the sub-data is displayed, the sorting order of the levels, and so on.

[0120] For example, the hierarchical information mentioned above can be the level of a level such as first level, second level, third level, etc., or it can be the sorting order of the levels such as the highest level, the second highest level, the highest level, the middle level, the lowest level, etc.

[0121] Specifically, after obtaining multiple levels of display sub-data, data rows for display can be allocated for each level of display sub-data. This generates a correspondence between the number of rows and the level of sub-data. Thus, when displaying the obtained display sub-data, different levels of display sub-data can be displayed on different rows according to this correspondence, and the level information of the displayed sub-data can be displayed on different rows.

[0122] Step S602: In response to the user's data selection operation for displaying sub-data, determine the target sub-data selected by the user in the display of sub-data.

[0123] Step S603: If there is redundant sub-data in the displayed sub-data, remove the redundant sub-data from the displayed sub-data, add the sub-data of the next level corresponding to the target sub-data in the hierarchical data, and return to step S601 above.

[0124] Step S604: If there is no redundant sub-data in the displayed sub-data, add the sub-data of the next level of the target sub-data in the hierarchical data to the displayed sub-data, and return to step S601 above.

[0125] The steps S602-S604 above are the same as those S202-S204 above, and will not be repeated here.

[0126] As can be seen from the above, when displaying data using the solution provided in the embodiments of this disclosure, the hierarchical information of the sub-data displayed in each row can also be displayed in the data display area. In this way, users can directly know the hierarchical level of the sub-data displayed in each row based on the hierarchical information. Therefore, the data display solution provided in the embodiments of this disclosure can improve the convenience of users viewing data.

[0127] Corresponding to the above data display method, this disclosure also provides a data display device.

[0128] In one embodiment of this disclosure, see [link to embodiment]. Figure 7 A schematic diagram of the structure of a first type of data display device is provided. In this embodiment, the device includes:

[0129] The data display module 701 is used to display sub-data in hierarchical data with a hierarchical relationship in the data display area, wherein the initial value of the display sub-data is the highest level sub-data in the hierarchical data, and the display sub-data of different levels are displayed in different rows in the data display area.

[0130] Data determination module 702 is used to determine the target sub-data selected by the user in the displayed sub-data in response to the user's data selection operation on the displayed sub-data;

[0131] The first adjustment module 703 is used to remove redundant sub-data from the displayed sub-data when there is redundant sub-data in the displayed sub-data, add the sub-data of the next level corresponding to the target sub-data in the hierarchical data, and return to the step of displaying the displayed sub-data in the hierarchical data with hierarchical relationship in the data display area, wherein the redundant sub-data is: sub-data belonging to the level after the level where the target sub-data is located;

[0132] The second adjustment module 704 is used to add the next level of sub-data corresponding to the target sub-data in the hierarchical data to the display sub-data when there is no redundant sub-data in the display sub-data, and return to the step of displaying the display sub-data in the hierarchical data with hierarchical relationship in the data display area.

[0133] As can be seen from the above, when displaying data using the solution provided in this embodiment, the display sub-data in the hierarchical data is shown in the data display area. After the user selects data from the displayed sub-data, the system can respond to the user's data selection operation, determine the target sub-data selected by the user, and remove redundant sub-data if there is redundant sub-data in the displayed sub-data, adding the next level sub-data corresponding to the target sub-data. If there is no redundant sub-data in the displayed sub-data, the next level sub-data corresponding to the target sub-data can be added directly to the displayed sub-data. After adjusting the data contained in the displayed sub-data, the adjusted displayed sub-data can be displayed again in the data display area, thereby achieving data display. Furthermore, sub-data of different levels in the displayed sub-data can be displayed in different rows in the data display area, resulting in clear data display and allowing users to intuitively view the hierarchical relationship between the displayed data. Moreover, by dividing the data into multiple rows to display multiple levels of sub-data, the system can ensure that the entire displayed sub-data is displayed in the data display area as a whole, avoiding incomplete data display, thus facilitating user operation, reducing usage costs, improving user experience, and ultimately increasing user stickiness.

[0134] In one embodiment of this disclosure, see [link to embodiment]. Figure 8 A schematic diagram of a second data display device is provided. In this embodiment, the device includes:

[0135] The data display module 801 is used to display sub-data in the hierarchical data that has a hierarchical relationship in the data display area;

[0136] Data determination module 802 is used to determine the target sub-data selected by the user in the displayed sub-data in response to the user's data selection operation on the displayed sub-data;

[0137] The data detection module 803 is used to detect whether there is any redundant sub-data in the displayed sub-data that belongs to a level after the level of the target sub-data when the data selection operation is a preset hidden data operation.

[0138] The first adjustment module 804 is used to remove redundant sub-data from the displayed sub-data when there is redundant sub-data in the displayed sub-data, and add the sub-data of the next level corresponding to the target sub-data in the hierarchical data, and return to the step of displaying the displayed sub-data in the hierarchical data with hierarchical relationship in the data display area, wherein the redundant sub-data is: sub-data belonging to the level after the level where the target sub-data is located;

[0139] The second adjustment module 805 is used to add the sub-data of the next level of the target sub-data in the hierarchical data to the display sub-data when there is no redundant sub-data in the display sub-data, and return to the step of displaying the display sub-data in the hierarchical data with hierarchical relationship in the data display area;

[0140] The third adjustment module 806 is used to remove the redundant sub-data and return to the step of displaying the sub-data in the data display area after determining the target sub-data selected by the user in response to the user's data selection operation on the display sub-data and the case where the data selection operation does not belong to the preset hidden data operation and there is redundant sub-data in the display sub-data.

[0141] As can be seen from the above, when displaying data using the solution provided in the embodiments of this disclosure, in response to the user's data selection operation, it is possible to detect whether the data selection operation belongs to a preset hidden data operation. If the user's data selection operation belongs to a hidden data operation, it means that the user expects to hide the data rather than view the data. Therefore, by applying the solution provided in the embodiments of this disclosure, the user can control the sub-data displayed in the data display area according to their own needs by selecting different data operations. This can improve the user's operability and user experience, thereby increasing user stickiness.

[0142] In one embodiment of this disclosure, the hidden data operation is: the user clicks on the selected data using an external clicking device for a duration longer than a preset duration threshold.

[0143] In this solution, when users view the displayed sub-data, they can usually use an external clicking device to quickly click on the data. If the user wants to hide the displayed sub-data, they can select the displayed sub-data by clicking for a long time, that is, by long-pressing to select the displayed sub-data. In this way, the user's intention can be determined by the click duration. When it is detected that the user's click duration for selecting data using an external clicking device exceeds the preset duration threshold, the user's intention to hide the data can be accurately determined, and then the next step of data hiding processing can be accurately carried out.

[0144] In one embodiment of this disclosure, the hidden data operation is: the user uses the external clicking device to select data in a multi-click manner.

[0145] In this solution, when users view the displayed sub-data, they can usually use an external clicking device to quickly click the data once. If the user wants to hide the displayed sub-data, they can select the displayed sub-data in a multi-click manner. In this way, the user's intention can be determined by the number of clicks. When the user's multi-click is detected, the user's intention to hide the data can be accurately determined, and then the next step of data hiding processing can be carried out accurately.

[0146] In one embodiment of this disclosure, see [link to embodiment]. Figure 9 A structural schematic diagram of a third type of data display device is provided. In this embodiment, the device includes:

[0147] The data display module 901 is used to display sub-data in the hierarchical data that has a hierarchical relationship in the data display area;

[0148] Data determination module 902 is used to determine the target sub-data selected by the user in the displayed sub-data in response to the user's data selection operation on the displayed sub-data;

[0149] The data detection module 903 is used to detect whether there is any redundant sub-data in the displayed sub-data that belongs to the level after the level of the target sub-data when the data selection operation is a preset hidden data operation.

[0150] The first adjustment module 904 is used to remove redundant sub-data from the displayed sub-data when there is redundant sub-data in the displayed sub-data, and add the sub-data of the next level corresponding to the target sub-data in the hierarchical data, and return to the step of displaying the displayed sub-data in the hierarchical data with hierarchical relationship in the data display area, wherein the redundant sub-data is: sub-data belonging to the level after the level where the target sub-data is located;

[0151] The second adjustment module 905 is used to add the sub-data of the next level of the target sub-data in the hierarchical data to the display sub-data when there is no redundant sub-data in the display sub-data, and return to the step of displaying the display sub-data in the hierarchical data with hierarchical relationship in the data display area.

[0152] The third adjustment module 906 is used to, after determining the target sub-data selected by the user in the display sub-data in response to the user's data selection operation on the display sub-data, remove the redundant sub-data and return to the step of displaying the display sub-data in the hierarchical data with a hierarchical relationship in the data display area when the number of times the target sub-data is selected is odd, the data selection operation does not belong to the preset hidden data operation, and there is redundant sub-data in the display sub-data.

[0153] The fourth adjustment module 907 is used to remove the redundant sub-data and return to the step of displaying the display sub-data in the hierarchical data with a hierarchical relationship in the data display area when the number of times the target sub-data is selected is even and there is redundant sub-data in the display sub-data.

[0154] As can be seen from the above, when displaying data using the solution provided in the embodiments of this disclosure, if there is redundant sub-data in the displayed sub-data, and the number of times the target sub-data is selected is even, then the redundant sub-data is removed; if the number of times the target sub-data is selected is odd, then after removing the redundant sub-data, the next level of sub-data corresponding to the target sub-data is added. In this way, by clicking on the target sub-data, the user can make the data display area show or hide the next level of data corresponding to the target sub-data. It is evident that the data display solution provided in the embodiments of this disclosure can improve the convenience of users viewing data.

[0155] In one embodiment of this disclosure, the data display module 701 is specifically used for:

[0156] The data display area shows the sub-data in the hierarchical data that has a hierarchical relationship, as well as the hierarchical information of the sub-data displayed in each row.

[0157] As can be seen from the above, when displaying data using the solution provided in the embodiments of this disclosure, the hierarchical information of the sub-data displayed in each row can also be displayed in the data display area. In this way, users can directly know the hierarchical level of the sub-data displayed in each row based on the hierarchical information. Therefore, the data display solution provided in the embodiments of this disclosure can improve the convenience of users viewing data.

[0158] In one embodiment of this disclosure, the data display module 701 is specifically used for:

[0159] In the preset database, candidate data corresponding to the displayed sub-data is filtered;

[0160] In the first display area of ​​the data display area, the display sub-data of the hierarchical data with hierarchical relationship is displayed;

[0161] In the second display area of ​​the data display area, the filtered candidate data is displayed, wherein the first display area and the second display area do not overlap.

[0162] As can be seen from the above, when using the solution provided in the embodiments of this disclosure for data display, the display sub-data in the hierarchical data can be displayed in the first display area, and the above-mentioned candidate data can be displayed in the second display area. Since the candidate data is the data in the database corresponding to the display sub-data, it is possible to display the data that the user expects to view in the database according to the user's selection. Therefore, the data display solution provided in the embodiments of this disclosure can improve the convenience of users viewing data, improve user experience, and strengthen user stickiness.

[0163] In one embodiment of this disclosure, the preset database is a database for storing educational data.

[0164] When the aforementioned database is used to store educational data, this solution enables the filtering of educational data in educational scenarios and displays the filtered data. This facilitates teachers' teaching work and makes it easier for students to query information.

[0165] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0166] In one embodiment of this disclosure, an electronic device is provided, comprising:

[0167] At least one processor; and

[0168] A memory communicatively connected to the at least one processor; wherein,

[0169] The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform any of the data display methods described in the foregoing method embodiments.

[0170] In one embodiment of this disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute any of the data display methods in the foregoing method embodiments.

[0171] In one embodiment of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements any of the data display methods described in the foregoing method embodiments.

[0172] Figure 10 A schematic block diagram of an example electronic device 1000 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0173] like Figure 10 As shown, device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in read-only memory (ROM) 1002 or a computer program loaded from storage unit 1008 into random access memory (RAM) 1003. The RAM 1003 may also store various programs and data required for the operation of device 1000. The computing unit 1001, ROM 1002, and RAM 1003 are interconnected via bus 1004. Input / output (I / O) interface 1005 is also connected to bus 1004.

[0174] Multiple components in device 1000 are connected to I / O interface 1005, including: input unit 1006, such as keyboard, mouse, etc.; output unit 1007, such as various types of monitors, speakers, etc.; storage unit 1008, such as disk, optical disk, etc.; and communication unit 1009, such as network card, modem, wireless transceiver, etc. Communication unit 1009 allows device 1000 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0175] The computing unit 1001 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1001 performs the various methods and processes described above, such as data presentation methods. For example, in some embodiments, the data presentation method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 1008. In some embodiments, part or all of the computer program may be loaded and / or installed on device 1000 via ROM 1002 and / or communication unit 1009. When the computer program is loaded into RAM 1003 and executed by the computing unit 1001, one or more steps of the data presentation method described above may be performed. Alternatively, in other embodiments, the computing unit 1001 may be configured to perform the data presentation method by any other suitable means (e.g., by means of firmware).

[0176] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0177] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0178] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0179] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0180] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0181] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0182] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0183] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A data display method, comprising: The data display area displays sub-data within a hierarchical data structure. The initial value of each sub-data is the highest-level sub-data within the hierarchical data. Sub-data at different levels are displayed in different rows within the data display area. Each sub-data is represented as a one-dimensional array, where each element has a number attribute and a sub-data attribute. The number attribute identifies which element in the one-dimensional array the element belongs to, and the sub-data attribute identifies which level of sub-data within the hierarchical data the element corresponds to. In response to the user's data selection operation for the displayed sub-data, the target sub-data selected by the user in the displayed sub-data is determined, and the element in the one-dimensional array corresponding to the target sub-data is determined. If there are elements in the one-dimensional array that are arranged after the determined element, the elements after the determined element are removed. If there is redundant sub-data in the displayed sub-data, the redundant sub-data is removed from the displayed sub-data, and the next element of the determined element is generated in the one-dimensional array. The sub-data of the next level corresponding to the target sub-data in the hierarchical data is added to the displayed sub-data. The next element corresponds to the sub-data of the next level corresponding to the target sub-data in the hierarchical data. The redundant sub-data is: sub-data belonging to the level after the level where the target sub-data is located. If the redundant sub-data does not exist in the displayed sub-data, generate the next element of the determined element in the one-dimensional array, and add the sub-data of the next level corresponding to the target sub-data in the hierarchical data to the displayed sub-data. Return to the step of displaying sub-data in the hierarchical data with hierarchical relationships in the data display area.

2. The method according to claim 1, wherein, After determining the target sub-data selected by the user in response to the user's data selection operation on the displayed sub-data, the method further includes: If the data selection operation is a preset hidden data operation, detect whether there is any redundant sub-data in the displayed sub-data that belongs to a level after the level of the target sub-data; If the data selection operation does not belong to the preset hidden data operation and there is redundant sub-data in the displayed sub-data, remove the redundant sub-data and return to the step of displaying the displayed sub-data in the hierarchical data with hierarchical relationship in the data display area.

3. The method according to claim 2, wherein, The hidden data operation is as follows: the user clicks on the selected data using an external clicking device for a duration that exceeds a preset duration threshold. or The hidden data operation is as follows: the user uses the external clicking device to select data in a multi-click manner.

4. The method according to claim 2, wherein, After determining the target sub-data selected by the user in the displayed sub-data, the method further includes: If the number of times the target sub-data is selected is odd, perform the step of detecting whether there are redundant sub-data in the displayed sub-data that belong to the level after the level of the target sub-data; If the number of times the target sub-data is selected is even and there is redundant sub-data in the displayed sub-data, remove the redundant sub-data and return to the step of displaying the displayed sub-data in the hierarchical data with hierarchical relationship in the data display area.

5. The method according to any one of claims 1-4, wherein, The display of sub-data within hierarchical data that has a hierarchical relationship in the data display area includes: The data display area shows the sub-data in the hierarchical data that has a hierarchical relationship, as well as the hierarchical information of the sub-data displayed in each row.

6. The method according to any one of claims 1-4, wherein, The display of sub-data within hierarchical data that has a hierarchical relationship in the data display area includes: In the preset database, candidate data corresponding to the displayed sub-data is filtered; In the first display area of ​​the data display area, the display sub-data of the hierarchical data with hierarchical relationship is displayed; In the second display area of ​​the data display area, the filtered candidate data is displayed, wherein the first display area and the second display area do not overlap.

7. The method according to claim 6, wherein, The preset database is a database for storing educational data.

8. A data display device, comprising: The data display module is used to display sub-data in hierarchical data with a hierarchical relationship in the data display area. The initial value of the display sub-data is the highest level sub-data in the hierarchical data. Display sub-data of different levels are displayed in different rows of the data display area. The display sub-data is represented in the form of a one-dimensional array. Each element in the one-dimensional array has a number attribute and a sub-data attribute. The number attribute is used to identify which element in the one-dimensional array the element is, and the sub-data attribute is used to identify which level of sub-data in the hierarchical data the element corresponds to. The data determination module is used to respond to the user's data selection operation on the displayed sub-data, determine the target sub-data selected by the user in the displayed sub-data, and determine the element in the one-dimensional array corresponding to the target sub-data. If there are elements in the one-dimensional array that are arranged after the determined element, then remove the elements after the determined element. The first adjustment module is used to remove redundant sub-data from the displayed sub-data when there is redundant sub-data in the displayed sub-data, generate the next element of the determined element in the one-dimensional array, add the sub-data of the next level of the target sub-data in the hierarchical data to the displayed sub-data, and return to the step of displaying the displayed sub-data in the hierarchical data with hierarchical relationship in the data display area, wherein the next element corresponds to the sub-data of the next level of the target sub-data in the hierarchical data, and the redundant sub-data is: sub-data belonging to the level after the level where the target sub-data is located; The second adjustment module is used to generate the next element of the determined element in a one-dimensional array when there is no redundant sub-data in the displayed sub-data, add the sub-data of the next level of the target sub-data in the hierarchical data to the displayed sub-data, and return to the step of displaying the displayed sub-data in the hierarchical data with hierarchical relationship in the data display area.

9. The apparatus according to claim 8, wherein, Also includes: The data detection module is used to detect whether there is any redundant sub-data in the displayed sub-data that belongs to a level after the level of the target sub-data when the data selection operation is a preset hidden data operation. The third adjustment module is used to, after determining the target sub-data selected by the user in response to the user's data selection operation on the displayed sub-data, remove the redundant sub-data and return to the step of displaying the displayed sub-data in the hierarchical data with a hierarchical relationship in the data display area when the data selection operation does not belong to the preset hidden data operation and there is redundant sub-data in the displayed sub-data.

10. The apparatus according to claim 9, wherein, The hidden data operation is as follows: the user clicks on the selected data using an external clicking device for a duration that exceeds a preset duration threshold. or The hidden data operation is as follows: the user uses the external clicking device to select data in a multi-click manner.

11. The apparatus according to claim 9, wherein, If the number of times the target sub-data is selected is odd, the data detection module or the third adjustment module is triggered. The device further includes: The fourth adjustment module is used to remove the redundant sub-data and return to the step of displaying the hierarchical data with a hierarchical relationship in the data display area when the number of times the target sub-data is selected is even and there is redundant sub-data in the display sub-data.

12. The apparatus according to any one of claims 8-11, wherein, The data display module is specifically used for: The data display area shows the sub-data in the hierarchical data that has a hierarchical relationship, as well as the hierarchical information of the sub-data displayed in each row.

13. The apparatus according to any one of claims 8-11, wherein, The data display module is specifically used for: In the preset database, candidate data corresponding to the displayed sub-data is filtered; In the first display area of ​​the data display area, the display sub-data of the hierarchical data with hierarchical relationship is displayed; In the second display area of ​​the data display area, the filtered candidate data is displayed, wherein the first display area and the second display area do not overlap.

14. The apparatus according to claim 13, wherein, The preset database is a database for storing educational data.

15. An electronic device comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.

16. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-7.

17. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-7.