CN105512141B - Data loading method and device - Google Patents

Data loading method and device Download PDF

Info

Publication number
CN105512141B
CN105512141B CN201410504693.8A CN201410504693A CN105512141B CN 105512141 B CN105512141 B CN 105512141B CN 201410504693 A CN201410504693 A CN 201410504693A CN 105512141 B CN105512141 B CN 105512141B
Authority
CN
China
Prior art keywords
node
sub
loading
layer
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410504693.8A
Other languages
Chinese (zh)
Other versions
CN105512141A (en
Inventor
尚子峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410504693.8A priority Critical patent/CN105512141B/en
Publication of CN105512141A publication Critical patent/CN105512141A/en
Application granted granted Critical
Publication of CN105512141B publication Critical patent/CN105512141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data loading method and device, and belongs to the technical field of computers. The method comprises the following steps: acquiring a data loading indication corresponding to a node in the tree structure; loading a sub-node related to a target operation in each sub-node of the node, wherein the sub-node related to the target operation is all sub-nodes or part of sub-nodes of the node; and executing the target operation according to the loaded sub-nodes. After a data loading instruction corresponding to a node in a tree structure is acquired, only sub-nodes related to target operation are loaded in each sub-node of the node; the problems of low loading efficiency and long delay time in the background technology are solved; the loading efficiency is improved, and the delay time in the loading process is shortened.

Description

Data loading method and device
Technical Field
The invention relates to the technical field of computers, in particular to a data loading method and device.
Background
Tree controls are widely used in data loading, and are often used to display Tree structured data.
Taking the example that the browser loads the bookmark through the Tree control, after the browser obtains a data loading instruction triggered by a user, the browser loads data corresponding to each node in the Tree structure. For example, when the tree structure is shown in fig. 1, the tree structure contains 9 nodes belonging to 3 hierarchies. And after acquiring the data loading instruction corresponding to the root node 11, the browser loads the data corresponding to all the 9 nodes.
In the process of implementing the invention, the inventor finds that the technology at least has the following problems: when the volume of data needing to be loaded by the Tree control is large, the loading time needed to be consumed is long, and sometimes even the browser is jammed. Therefore, the above-described technique has problems of low loading efficiency and long delay time.
Disclosure of Invention
In order to solve the problems of low loading efficiency and long delay time in the prior art, embodiments of the present invention provide a data loading method and apparatus. The technical scheme is as follows:
in a first aspect, a data loading method is provided, where the method includes:
acquiring a data loading indication corresponding to a node in the tree structure;
when the target operation is to display the sub-nodes of the next layer of the node and identify whether each sub-node of the next layer also comprises the sub-node, loading the sub-nodes of the next layer of the node;
for each sub-node of the next layer, tentatively loading a first sub-node of the sub-nodes of the next layer;
when the first sub-node of the next-layer sub-node can be loaded, determining that the next-layer sub-node also comprises the sub-node;
displaying each sub-node of the next layer of the nodes;
and for each displayed next-layer sub-node, when the loaded node comprises the sub-node of the next-layer sub-node, displaying a preset identifier at a preset position of the next-layer sub-node, wherein the preset identifier is used for identifying the next-layer sub-node and also comprises the sub-node.
In a second aspect, there is provided a data loading apparatus, the apparatus comprising:
the instruction acquisition module is used for acquiring a data loading instruction corresponding to a node in the tree structure;
a node loading module, configured to load, in each sub-node of the node, a sub-node related to a target operation, where the sub-node related to the target operation is all or part of the sub-nodes of the node;
the operation execution module is used for executing the target operation according to the loaded sub-nodes;
wherein, the node loading module comprises: the system comprises a node loading unit, a loading detection unit and a node determination unit;
the node loading unit is used for loading a sub-node of the next layer of the node;
the loading detection unit is used for tentatively loading a first sub-node of the next-layer sub-node for each next-layer sub-node;
the node determining unit is configured to determine that the next-layer sub-node further includes a sub-node when the first sub-node can be loaded to the next-layer sub-node;
the operation execution module comprises: a node display unit and an identification display unit;
the node display unit is used for displaying each sub-node of the next layer of the node;
and the identifier display unit is used for displaying a preset identifier at a preset position of the next-layer sub node when the loaded node comprises the sub node of the next-layer sub node for each displayed next-layer sub node, wherein the preset identifier is used for indicating that the next-layer sub node also comprises the sub node.
In a third aspect, a computer-readable storage medium is provided, in which a computer program is stored, the computer program being used for implementing the data loading method according to the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
after a data loading instruction corresponding to a node in the tree structure is acquired, only sub-nodes related to target operation are loaded in each sub-node of the node; the problems of low loading efficiency and long delay time in the background technology are solved; the loading efficiency is improved, and the delay time in the loading process is shortened.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a tree structure according to the background art;
FIG. 2 is a flowchart of a method of loading data according to an embodiment of the present invention;
FIG. 3A is a flowchart of a method for loading data according to another embodiment of the present invention;
FIG. 3B is a schematic diagram of a tree structure according to an embodiment of the present invention;
FIG. 3C is a diagram illustrating bookmark loading according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating a structure of a data loading apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating a structure of a data loading apparatus according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 2, a flowchart of a method for loading data according to an embodiment of the present invention is shown, where the embodiment is exemplified by applying the data loading method to electronic devices such as a mobile phone, a tablet computer, an e-book reader, a personal digital assistant, and a computer. The data loading method can comprise the following steps:
step 202, a data loading indication corresponding to a node in the tree structure is obtained.
And step 204, loading the sub-nodes related to the target operation in each sub-node of the node, wherein the sub-nodes related to the target operation are all sub-nodes or part of sub-nodes of the node.
And step 206, executing target operation according to the loaded sub-nodes.
In summary, in the data loading method provided in this embodiment, after the data loading instruction corresponding to one node in the tree structure is acquired, only the sub-node related to the target operation is loaded in each sub-node of the node; the problems of low loading efficiency and long delay time in the background technology are solved; the loading efficiency is improved, and the delay time in the loading process is shortened.
Referring to fig. 3A, a flowchart of a method for loading data according to another embodiment of the present invention is shown, where the present embodiment is illustrated by applying the data loading method to an electronic device such as a mobile phone, a tablet computer, an e-book reader, a personal digital assistant, and a computer. The data loading method can comprise the following steps:
step 301, a data loading indication corresponding to a node in the tree structure is obtained.
The data loading indicates that the corresponding node has at least one sub-node. In the tree structure shown in fig. 3B, the data load indication may be triggered for any one of the node 31, the sub-node 32 of the node 31, or the sub-node 33 of the node 31. In the present embodiment, it is assumed that the data load indication corresponds to the node 31.
And after acquiring the data loading instruction corresponding to one node in the tree structure, the electronic equipment loads all sub-nodes or part of sub-nodes of the node. The specific steps 302 are as follows:
in step 302, the child nodes associated with the target operation are loaded into each child node of the node.
The sub-node associated with the target operation is all or part of the sub-node of the node. Different from the data loading mode provided by the background technology, the method comprises the following steps: after acquiring a data loading instruction corresponding to a node in a tree structure, the background technology loads all sub-nodes of the node under any condition; in the technical scheme provided by the embodiment of the invention, after the data loading instruction corresponding to one node in the tree structure is acquired, the target operation needs to be determined firstly, and then only the sub-nodes related to the target operation in each sub-node of the node are loaded, namely the sub-nodes unrelated to the target operation do not need to be loaded.
Wherein the target operation is an operation configured for the node in advance. For example, the target operation may be a part or all of a sub-node of a display node, or the target operation may also be a part or all of a sub-node of a computation/processing node, and so on.
In one possible embodiment, this step may include several sub-steps as follows:
first, when the target operation is to display the sub-nodes of the next layer of the node and identify whether each sub-node of the next layer also includes sub-nodes, the sub-nodes of the next layer of the node are loaded.
Firstly, only the sub-node to be displayed is loaded, and the sub-node to be displayed is the sub-node at the next layer of the node. In addition, considering that it is also necessary to identify whether each sub-node of the next layer further includes a sub-node, the following second and third sub-steps need to be performed for each sub-node of the next layer.
Second, for each next-level sub-node, it is detected whether a sub-node that can be loaded into the next-level sub-node is present.
Third, when the child node of the next-level child node can be loaded, it is determined that the next-level child node further includes a child node.
The electronic equipment tentatively loads the sub-node of each sub-node of the next layer, and if the sub-node of the next layer can be loaded, the sub-node of the next layer is indicated to also comprise the sub-node; otherwise, if the child node of the next-level child node cannot be loaded, it indicates that no child node exists under the next-level child node.
Optionally, the electronic device heuristically loads the first sub-node of the next level of sub-nodes. The electronic equipment only needs to test and load the first sub-node, so that the detection efficiency can be improved, and whether the sub-node is included under each next-layer sub-node can be quickly determined.
For example, referring to fig. 3B in combination, assuming that the data loading indication corresponds to a node 31, the electronic device first loads a sub-node 32 of the node 31, and then detects whether a sub-node loaded into the sub-node 32 is available, such as a first sub-node 34 of the sub-node 32, and when the sub-node 34 is available, it is determined that the sub-node 32 further includes a sub-node, but the number of sub-nodes specifically included does not need to be determined. Thereafter, the electronic device loads sub-node 33 of node 31, and then detects whether a sub-node loaded into sub-node 33 is available, such as first sub-node 35 of sub-node 33, and determines that sub-node 33 also includes a sub-node when the sub-node 35 is available.
The points to be explained are: if the target operation is only to display the sub-node of the next layer of the node, the step 302 only needs to include the first sub-step, and loads the sub-node of the next layer of the node without executing the second and third sub-steps.
What needs to be further explained is that: the second and third substeps may be performed after the first substep or simultaneously with the first substep, which is not particularly limited in this embodiment. For example, if the second and third substeps are performed after the first substep, the electronic device first loads the sub-nodes of the next layer of nodes, and then detects whether the sub-nodes can be loaded to the sub-nodes of the next layer of sub-nodes one by one for each sub-node of the next layer. For another example, if the second and third sub-steps are performed simultaneously with the first sub-step, the first next-layer sub-node of the node is loaded first, then whether the sub-node can be loaded to the first next-layer sub-node is detected, the second next-layer sub-node of the node is loaded after the detection is completed, then the sub-node which can be loaded to the second next-layer sub-node is detected, and so on.
In one possible application scenario, when the tree structure is a data structure for managing bookmarks, the sub-nodes associated with the target operation comprise: folder titles associated with the target operation; and/or, a bookmark title and a Uniform Resource Locator (URL) associated with the target operation. When the tree structure is a data structure for managing bookmarks, nodes in the tree structure may be referred to as folder nodes or bookmark nodes, and each folder node generally includes a plurality of sub-folder nodes and/or a plurality of bookmark nodes. The data corresponding to the folder node is usually a folder title, the data corresponding to the bookmark node is usually a bookmark title and a URL, and the URL is also called a web page address.
Step 303, executing the target operation according to the loaded child node.
And after the electronic equipment loads the sub-nodes related to the target operation, executing the target operation according to the loaded sub-nodes. When the target operation is to display the next level sub-nodes of the node and identify whether each next level sub-node also includes sub-nodes, this step may include the following two sub-steps:
first, each next level sub-node of the node is displayed.
Still referring to FIG. 3B, if the data load indication corresponds to node 31, then the 2 next level sub-nodes of node 31, namely sub-node 32 and sub-node 33, are displayed.
Secondly, for each displayed next-layer sub-node, when the loaded node comprises the sub-node of the next-layer sub-node, displaying a preset identifier at a preset position of the next-layer sub-node.
The preset mark is used for indicating that the sub-node of the next layer also comprises the sub-node, so that a user can know whether the sub-node further comprises the sub-node of the lower layer according to the preset mark. For example, the predetermined identifier may be a stow-and-expand icon. In addition, the predetermined position can be preset according to actual conditions, for example, a predetermined mark is displayed on the left side of the sub-node of the next layer.
Still referring to FIG. 3B in conjunction, because both sub-node 32 and sub-node 33 include sub-nodes, the predetermined identifier is displayed next to both sub-node 32 and sub-node 33. In other possible cases, the predetermined identifier may be displayed next to sub-node 32 without displaying the predetermined identifier next to sub-node 33, assuming that sub-node 32 includes sub-nodes and sub-node 33 does not include sub-nodes.
Referring to fig. 3C, in a specific example, a browser is taken as an example for loading a bookmark. The user clicks the "bookmark" node 36 to trigger data loading indication, and when the target operation is to display the sub-nodes of the next layer of the "bookmark" node 36 and identify whether each sub-node of the next layer also comprises sub-nodes, the browser loads each sub-node of the next layer of the "bookmark" node 36, wherein each sub-node comprises 5 folder nodes and 3 bookmark nodes. As shown in fig. 3C, each next-layer sub-node of the "bookmark" node 36 specifically includes: "learn" sub-node 37, "work" sub-node 38, "company" sub-node 39, "website" sub-node 40, "training" sub-node 41, "business mailbox" sub-node 42, "translate" sub-node 43, and "blog of the West" sub-node 44. For each next level sub-node of "bookmark" node 36, the browser checks whether the first sub-node of the next level sub-node can be loaded, and when the first sub-node of the next level sub-node can be loaded, displays the corresponding collapse and expansion icon 45.
It should be noted that: the browser loads the sub-nodes of the next layer of the bookmark node 36 and the first sub-node possibly included in each sub-node of the next layer only according to the target operation, and the sub-nodes included in each sub-node of the next layer are not completely loaded, so that the loading efficiency is improved, and unnecessary data loading is avoided.
Further, when the user knows that the sub-node is included under the "learning" sub-node 37, if the user clicks the "learning" sub-node 37 to trigger the data loading instruction for the "learning" sub-node 37, the browser executes the loading for the next-layer sub-node of the "learning" sub-node 37, including loading 3 folder nodes and 2 bookmark nodes.
In summary, in the data loading method provided in this embodiment, after the data loading instruction corresponding to one node in the tree structure is acquired, only the sub-node related to the target operation is loaded in each sub-node of the node; the problems of low loading efficiency and long delay time in the background technology are solved; the loading efficiency is improved, and the delay time in the loading process is shortened.
In addition, when the target operation for the node is to display the sub-nodes of the next layer of the node and identify whether each sub-node of the next layer further includes a sub-node, the data loading method provided by this embodiment loads only each sub-node of the next layer of the node and the first sub-node that each sub-node of the next layer may include, and loads the minimum number of sub-nodes under the condition that each sub-node and the predetermined identifier indicating whether the sub-node is included can be normally displayed, thereby sufficiently improving the loading efficiency and avoiding unnecessary data loading.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 4, a block diagram of a data loading apparatus according to an embodiment of the present invention is shown, where the data loading apparatus may be implemented as part of or all of an electronic device through software, hardware, or a combination of the software and the hardware. The data loading apparatus may include: an indication acquisition module 410, a node loading module 420 and an operation execution module 430.
An indication obtaining module 410, configured to obtain a data loading indication corresponding to a node in the tree structure.
A node loading module 420, configured to load, in each sub-node of the node, a sub-node related to the target operation, where the sub-node related to the target operation is all or part of the sub-nodes of the node.
An operation executing module 430, configured to execute the target operation according to the loaded sub-node.
In summary, the data loading apparatus provided in this embodiment loads only the sub-node related to the target operation in each sub-node of the node after acquiring the data loading instruction corresponding to the node in the tree structure; the problems of low loading efficiency and long delay time in the background technology are solved; the loading efficiency is improved, and the delay time in the loading process is shortened.
Referring to fig. 5, a block diagram of a data loading apparatus according to another embodiment of the present invention is shown, where the data loading apparatus may be implemented as part of or all of an electronic device through software, hardware, or a combination of the software and the hardware. The data loading apparatus may include: an indication acquisition module 410, a node loading module 420 and an operation execution module 430.
An indication obtaining module 410, configured to obtain a data loading indication corresponding to a node in the tree structure.
A node loading module 420, configured to load, in each sub-node of the node, a sub-node related to the target operation, where the sub-node related to the target operation is all or part of the sub-nodes of the node.
When the tree structure is a data structure for managing bookmarks, the child nodes related to the target operation include:
a folder title related to the target operation;
and/or the presence of a gas in the gas,
a bookmark title and a Uniform Resource Locator (URL) associated with the target operation.
Wherein, the node loading module 420 includes: a node loading unit 420a, a load detection unit 420b, and a node determination unit 420 c.
The node loading unit 420a is configured to load a next-layer child node of the node when the target operation is to display a next-layer child node of the node and identify whether each next-layer child node further includes a child node.
The load detection unit 420b is configured to detect, for each of the sub-nodes in the next layer, whether the sub-node can be loaded to the sub-node in the next layer.
Optionally, the load detection unit 420b is further configured to tentatively load a first sub-node of the next-layer sub-node.
The node determining unit 420c is configured to determine that the sub-node of the next layer further includes a sub-node when the sub-node of the next layer can be loaded.
An operation executing module 430, configured to execute the target operation according to the loaded sub-node.
Wherein the operation executing module 430 includes: a node display unit 430a and an identification display unit 430 b.
The node display unit 430a is configured to display each sub-node of the next layer of the node.
The identifier displaying unit 430b is configured to, for each displayed next-layer sub-node, display a predetermined identifier at a predetermined position of the next-layer sub-node when the loaded node includes a sub-node of the next-layer sub-node, where the predetermined identifier is used to indicate that the next-layer sub-node further includes a sub-node.
In summary, the data loading apparatus provided in this embodiment loads only the sub-node related to the target operation in each sub-node of the node after acquiring the data loading instruction corresponding to the node in the tree structure; the problems of low loading efficiency and long delay time in the background technology are solved; the loading efficiency is improved, and the delay time in the loading process is shortened.
In addition, when the target operation for the node is to display the sub-nodes of the next layer of the node and identify whether each sub-node of the next layer further includes a sub-node, the data loading apparatus provided in this embodiment loads only each sub-node of the next layer of the node and the first sub-node that each sub-node of the next layer may include, and loads the minimum number of sub-nodes under the condition that each sub-node and the predetermined identifier indicating whether the sub-node is included can be normally displayed, so that the loading efficiency is sufficiently improved, and unnecessary data loading is avoided.
It should be noted that: the data loading apparatus provided in the above embodiment and when loading data are illustrated by only dividing the functional modules, in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the data loading device and the method embodiment of the data loading method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
Referring to fig. 6, a schematic structural diagram of an electronic device according to an embodiment of the invention is shown. The electronic device is used for implementing the data loading method provided in the above embodiment. Specifically, the method comprises the following steps:
electronic device 600 may include RF (Radio Frequency) circuitry 610, memory 620 including one or more computer-readable storage media, input unit 630, display unit 640, sensor 650, audio circuitry 660, WiFi (wireless fidelity) module 670, processor 680 including one or more processing cores, and power supply 690. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by the one or more processors 680; in addition, data relating to uplink is transmitted to the base station. In general, RF circuitry 610 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 610 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (short messaging Service), etc.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device 600, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 620 may also include a memory controller to provide the processor 680 and the input unit 630 access to the memory 620.
The input unit 630 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. Specifically, the input unit 630 may include an image input device 631 and other input devices 632. The image input device 631 may be a camera or a photo scanning device. The input unit 630 may include other input devices 632 in addition to the image input device 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
The electronic device 600 may also include at least one sensor 650, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 641 and/or the backlight when the electronic device 600 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the electronic device 600, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and electronic device 600. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signals into electrical signals, which are received by the audio circuit 660 and converted into audio data, which are processed by the audio data output processor 680 and then passed through the RF circuit 610 for transmission to, for example, another electronic device, or output to the memory 620 for further processing. The audio circuit 660 may also include an earbud jack to provide communication of peripheral headphones with the electronic device 600.
WiFi belongs to short-range wireless transmission technology, and the electronic device 600 can help the user send and receive e-mails, browse web pages, access streaming media, etc. through the WiFi module 670, and it provides wireless broadband internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the electronic device 600, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the electronic device 600, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the electronic device 600 and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby monitoring the mobile phone as a whole. Optionally, processor 680 may include one or more processing cores; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The electronic device 600 also includes a power supply 690 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 680 via a power management system to manage charging, discharging, and power consumption via the power management system. The power supply 690 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device 600 may further include a bluetooth module or the like, which is not described in detail herein.
In particular, in this embodiment, the electronic device 600 further includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for:
acquiring a data loading indication corresponding to a node in the tree structure;
loading a sub-node related to a target operation in each sub-node of the nodes, wherein the sub-node related to the target operation is all sub-nodes or part of sub-nodes of the nodes;
and executing the target operation according to the loaded sub-nodes.
Assuming that the foregoing is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the electronic device 600 further includes instructions for performing the following operations:
loading a next-level sub-node of the node when the target operation is to display the next-level sub-node of the node and identify whether each next-level sub-node further comprises a sub-node;
for each sub-node of the next layer, detecting whether the sub-node can be loaded to the sub-node of the next layer;
and when the child nodes of the next-layer child node can be loaded, determining that the child nodes of the next layer also comprise child nodes.
In a third possible implementation manner provided as the basis for the second possible implementation manner, the memory of the electronic device 600 further includes instructions for performing the following operations:
and tentatively loading the first sub-node of the next-layer sub-node.
In a fourth possible implementation manner provided as the basis of the second possible implementation manner, the memory of the electronic device 600 further includes instructions for performing the following operations:
displaying each sub-node of the next layer of the nodes;
and for each displayed next-layer sub-node, when the loaded node comprises the sub-node of the next-layer sub-node, displaying a preset identifier at a preset position of the next-layer sub-node, wherein the preset identifier is used for indicating that the next-layer sub-node also comprises the sub-node.
Wherein, when the tree structure is a data structure for managing bookmarks, the child nodes related to the target operation include:
a folder title related to the target operation;
and/or the presence of a gas in the gas,
a bookmark title and a Uniform Resource Locator (URL) associated with the target operation.
It should be understood that, as used herein, the singular forms "a," "an," "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (5)

1. A method for loading data, the method comprising:
acquiring a data loading indication corresponding to a node in the tree structure;
loading a sub-node of a next layer of the node;
for each sub-node of the next layer, tentatively loading a first sub-node of the sub-nodes of the next layer;
when the first sub-node of the next-layer sub-node can be loaded, determining that the next-layer sub-node also comprises the sub-node;
displaying each sub-node of the next layer of the nodes;
and for each displayed next-layer sub-node, when the loaded node comprises the sub-node of the next-layer sub-node, displaying a preset identifier at a preset position of the next-layer sub-node, wherein the preset identifier is used for identifying the next-layer sub-node and also comprises the sub-node.
2. The method according to claim 1, wherein when the tree structure is a data structure for managing bookmarks, the loading a next-level sub-node of the node comprises:
loading the folder titles of the nodes;
and/or the presence of a gas in the gas,
and loading the bookmark title and the uniform resource locator URL of the node.
3. A data loading apparatus, characterized in that the apparatus comprises:
the instruction acquisition module is used for acquiring a data loading instruction corresponding to a node in the tree structure;
a node loading module, configured to load, in each sub-node of the node, a sub-node related to a target operation, where the sub-node related to the target operation is all or part of the sub-nodes of the node;
the operation execution module is used for executing the target operation according to the loaded sub-nodes;
wherein, the node loading module comprises: the system comprises a node loading unit, a loading detection unit and a node determination unit;
the node loading unit is used for loading a sub-node of the next layer of the node;
the loading detection unit is used for tentatively loading a first sub-node of the next-layer sub-node for each next-layer sub-node;
the node determining unit is configured to determine that the next-layer sub-node further includes a sub-node when the first sub-node can be loaded to the next-layer sub-node;
the operation execution module comprises: a node display unit and an identification display unit;
the node display unit is used for displaying each sub-node of the next layer of the node;
and the identifier display unit is used for displaying a preset identifier at a preset position of the next-layer sub node when the loaded node comprises the sub node of the next-layer sub node for each displayed next-layer sub node, wherein the preset identifier is used for indicating that the next-layer sub node also comprises the sub node.
4. The apparatus of claim 3, wherein when the tree structure is a data structure for managing bookmarks, the node loading unit is configured to:
loading the folder titles of the nodes;
and/or the presence of a gas in the gas,
and loading the bookmark title and the uniform resource locator URL of the node.
5. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, the computer program being for implementing the data loading method according to any one of claims 1 to 2.
CN201410504693.8A 2014-09-26 2014-09-26 Data loading method and device Active CN105512141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410504693.8A CN105512141B (en) 2014-09-26 2014-09-26 Data loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410504693.8A CN105512141B (en) 2014-09-26 2014-09-26 Data loading method and device

Publications (2)

Publication Number Publication Date
CN105512141A CN105512141A (en) 2016-04-20
CN105512141B true CN105512141B (en) 2020-03-03

Family

ID=55720126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410504693.8A Active CN105512141B (en) 2014-09-26 2014-09-26 Data loading method and device

Country Status (1)

Country Link
CN (1) CN105512141B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999608A (en) * 2012-11-21 2013-03-27 用友软件股份有限公司 System and method for tree table demonstration of large data
CN103970770A (en) * 2013-01-29 2014-08-06 腾讯科技(深圳)有限公司 Optimization processing method and device for web page and client

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7487168B2 (en) * 2001-11-01 2009-02-03 Microsoft Corporation System and method for loading hierarchical data into relational database systems

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999608A (en) * 2012-11-21 2013-03-27 用友软件股份有限公司 System and method for tree table demonstration of large data
CN103970770A (en) * 2013-01-29 2014-08-06 腾讯科技(深圳)有限公司 Optimization processing method and device for web page and client

Also Published As

Publication number Publication date
CN105512141A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN104518953B (en) Method for deleting message, instant communication terminal and system
CN105786878B (en) Display method and device of browsing object
CN104852885B (en) Method, device and system for verifying verification code
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN106371964B (en) Method and device for prompting message
CN103942113A (en) System restarting reason detection method, device and terminal equipment
CN107040610B (en) Method of data synchronization, device, storage medium, terminal and server
CN104809055B (en) Application program testing method and device based on cloud platform
CN112749074B (en) Test case recommending method and device
CN106202422B (en) The treating method and apparatus of Web page icon
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN103399706A (en) Page interaction method, device and terminal
CN105095161B (en) Method and device for displaying rich text information
CN105631059B (en) Data processing method, data processing device and data processing system
CN105320858B (en) Method and device for rapidly displaying application icons
CN105703808A (en) Method and device for transmitting data
CN104965825A (en) Method and terminal for processing data
CN104954231B (en) Method and device for sending and displaying recommendation information
CN106933626B (en) Application association method and device
CN106775745B (en) Method and device for merging program codes
CN105354067A (en) Interface configuration method and device
CN106817370B (en) Method and device for transmitting network data
CN106230919B (en) File uploading method and device
CN110908586A (en) Keyboard display method and device and terminal equipment
CN105302846B (en) Method and device for restoring webpage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant