Method and device for adjusting browser page information
By using the scroll bar component in the Element UI framework to determine the target container and adding automatic jump instructions, the problem that the Element UI framework does not support seamless scrolling display is solved, the browser page information is automatically updated and the display efficiency is improved, and the User experience.
Patent Information
- Application Number
- CN202410620758.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-17
- Publication Date
- 2024-08-30
AI Technical Summary
The Element UI framework does not support seamless scrolling of the display interface, causing users to manually click directory labels to switch information in the display interface, resulting in cumbersome scroll bar operations and poor user experience.
By using the scroll bar component in the Element UI framework to determine multiple target containers and adding instructions to each target container, the scroll bar automatically jumps to the next target container to achieve seamless scrolling display.
It improves the efficiency of automatic updating and display of browser page information, reduces user manual operations, and improves user experience.
Smart Images

Figure CN118568370A
Abstract
Description
Background Art
[0002] With the continuous development of terminal device technology, different applications in terminal devices can usually display more information through seamless scrolling display interfaces. However, for web browsers in terminal devices, the Element UI framework does not support seamless scrolling display interfaces, and users need to manually click on the directory label to switch the display information in the display interface.
[0003] When there is too much information to be displayed, the user needs to keep clicking on the directory label manually to view all the information to be displayed. This makes the scroll bar operation cumbersome, and the user needs to keep manually adjusting the scroll bar position to continue viewing the information to be displayed. This method is not only inconvenient for user operation, but also easily leads to poor user experience. Summary of the invention
[0004] The embodiments of the present application provide a method and device for adjusting browser page information, which can realize automatic updating of browser page information and avoid users manually clicking on target tags.
[0005] In a first aspect, an embodiment of the present application provides a method for adjusting browser page information, which is applied to a terminal device of an Element UI framework, and the method includes:
[0006] Determining the page information to be displayed on the terminal device, and dividing the page information to be displayed;
[0007] Based on the division result, determine the first page information contained in each of the multiple target containers; wherein the target container is determined according to the scroll bar component in the Element UI framework; the first page information contained in each of the target containers is part of the page information to be displayed;
[0008] Adding a first instruction to a designated container position of each target container; the first instruction instructs to load first page information contained in a target container next to the current target container;
[0009] For each of the target containers, when it is detected that the scroll bar in the scroll bar component scrolls to the designated container position of the target container, the first instruction is responded to until the terminal device completes displaying the page information to be displayed.
[0010] Compared with the prior art, this application uses the scroll bar component in the Element UI framework to determine multiple target containers, and adds a first instruction to each target container, so that when the scroll bar scrolls to the specified position of the current target container, it can automatically jump to display the information contained in the next target container.
[0011] In a possible implementation manner, when the sum of the heights of the plurality of target containers is positively correlated with the total height of the scroll bar scrolling, and the designated container position of the target container is the bottom of the target container, monitoring that the scroll bar in the scroll bar component scrolls to the designated container position of the target container includes:
[0012] When the sum of the first height and the height of the terminal device display area is equal to the height of the target container, it is determined that the scroll bar has scrolled to the bottom of the target container; wherein the first height is the height of the area covered by the scroll bar after scrolling in the target container.
[0013] The present application defines multiple target containers and a designated container position of each target container. During the scrolling of the scroll bar, it can be accurately determined whether the scroll bar has scrolled to the designated position, thereby realizing automatic jump of the current target container to display the information contained in the next target container.
[0014] In a possible implementation manner, before dividing the to-be-displayed page information, the method further includes:
[0015] It is determined that no search instruction of the user is detected; the search instruction instructs to filter the to-be-displayed page information according to the target search condition.
[0016] Before displaying the page information to be displayed in the display area of the terminal device, the application detects whether the user triggers a search instruction, thereby accurately displaying the user's required information.
[0017] In a possible implementation manner, the method further includes:
[0018] After detecting a search instruction of the user, re-determining the page information to be displayed of the terminal device according to the search instruction, and dividing the re-determined page information to be displayed;
[0019] Based on the re-determined division result of the to-be-displayed page information, re-determine the first page information respectively included in the plurality of target containers;
[0020] For each of the re-determined target containers, when it is detected that the scroll bar scrolls to the designated container position of the target container, the first instruction is responded to until the terminal device displays the re-determined page information to be displayed.
[0021] This application can accurately display the user's required information by detecting whether the user triggers the search instruction before displaying the page information to be displayed in the terminal device display area. After detecting that the user triggers the search instruction, the terminal device display area is re-displayed according to the search instruction.
[0022] In a possible implementation manner, re-determining the to-be-displayed page information of the terminal device according to the search instruction includes:
[0023] The search instruction is input into the multi-container component in the Element UI framework to obtain the re-determined page information to be displayed on the terminal device; the multi-container component is a component with a screening function after encapsulating the page information to be displayed on the terminal device.
[0024] This application defines a multi-container component, which can be used to quickly obtain the re-determined page information to be displayed, saving the user's search time.
[0025] In a possible implementation, the first instruction is generated according to the custom instruction function of vue. This application uses the custom instruction function attribute of vue to define the first instruction, and then after adding the first instruction in each target container, the current target container can automatically jump to display the information contained in the next target container.
[0026] In a second aspect, an embodiment of the present application provides a device for adjusting browser page information, which is applied to a terminal device of an Element UI framework, and the device includes:
[0027] A page information division module, used to determine the page information to be displayed on the terminal device and divide the page information to be displayed;
[0028] A container determination module, used to determine the first page information contained in each of the plurality of target containers based on the division result; wherein the target container is determined according to the scroll bar component in the Element UI framework; and the first page information contained in each of the target containers is part of the page information to be displayed;
[0029] An instruction adding module, used for adding a first instruction to a designated container position of each target container; the first instruction instructs to load the first page information contained in the next target container of the current target container;
[0030] The page information display module is used to monitor for each of the target containers that the scroll bar in the scroll bar component scrolls to the designated container position of the target container, and then respond to the first instruction until the terminal device completes displaying the page information to be displayed.
[0031] In a possible implementation manner, when the sum of the heights of the plurality of target containers is positively correlated with the total height of the scroll bar, and the designated container position of the target container is the bottom of the target container, the page information display module is specifically configured to:
[0032] When the sum of the first height and the height of the terminal device display area is equal to the height of the target container, it is determined that the scroll bar has scrolled to the bottom of the target container; wherein the first height is the height of the area covered by the scroll bar after scrolling in the target container.
[0033] In a possible implementation manner, the page information division module is further used to:
[0034] It is determined that no search instruction of the user is detected; the search instruction instructs to filter the to-be-displayed page information according to the target search condition.
[0035] In a possible implementation manner, the device further includes:
[0036] After detecting a search instruction of the user, re-determining the page information to be displayed of the terminal device according to the search instruction, and dividing the re-determined page information to be displayed;
[0037] Based on the re-determined division result of the to-be-displayed page information, re-determine the first page information respectively included in the plurality of target containers;
[0038] For each of the re-determined target containers, when it is detected that the scroll bar scrolls to the designated container position of the target container, the first instruction is responded to until the terminal device displays the re-determined page information to be displayed.
[0039] In a possible implementation manner, the device is specifically used for:
[0040] The search instruction is input into the multi-container component in the Element UI framework to obtain the re-determined page information to be displayed on the terminal device; the multi-container component is a component with a screening function after encapsulating the page information to be displayed on the terminal device.
[0041] In a possible implementation, the first instruction is generated according to a custom instruction function of Vue.
[0042] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a transceiver, wherein:
[0043] The transceiver is used to send and receive the page information to be displayed of the terminal device;
[0044] The processor is coupled to the memory, and is used to call the program in the memory so that the electronic device executes the method described in any possible embodiment of the first aspect above.
[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising: computer program instructions. When the computer program instructions are executed by a computer, a processor executes a method as described in any possible embodiment of the first aspect above.
[0046] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes: computer instructions (also referred to as codes, or instructions), which, when executed, execute the method described in any possible embodiment of the first aspect above.
[0047] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0049] Figure 1 A flowchart of a method for adjusting browser page information provided in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of the height of the target container and the terminal device display area provided in one embodiment of the present application;
[0051] Figure 3a A schematic diagram of a process of scrolling a scroll bar in a target container provided by an embodiment of the present application;
[0052] Figure 3b A schematic diagram of a process of scrolling a scroll bar in a target container provided by an embodiment of the present application;
[0053] Figure 3c A data loading comparison diagram provided in an embodiment of the present application;
[0054] Figure 4 A flowchart of a method for adjusting browser page information after a search instruction is triggered provided by an embodiment of the present application;
[0055] Figure 5 A schematic diagram of the structure of a device for adjusting browser page information provided in an embodiment of the present application;
[0056] Figure 6 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0057] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0058] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0059] With the continuous development of terminal device technology, different applications in terminal devices can usually display more information through seamless scrolling display interfaces. However, for web browsers in terminal devices, the Element UI framework does not support seamless scrolling display interfaces, and users need to manually click on the directory label to switch the display information in the display interface.
[0060] When there is too much information to be displayed, the user needs to keep clicking on the directory label manually to view all the information to be displayed. This makes the scroll bar operation cumbersome, and the user needs to keep manually adjusting the scroll bar position to continue viewing the information to be displayed. This method is not only inconvenient for user operation, but also easily leads to poor user experience.
[0061] To this end, the present application provides a method and device for adjusting browser page information, which uses the scroll bar component in the ElementUI framework to determine multiple target containers, and adds a first instruction to each target container, so that when the scroll bar scrolls to the specified position of the current target container, it can automatically jump to display the information contained in the next target container.
[0062] After introducing the design concept of the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided in the embodiment of the present application.
[0063] like Figure 1As shown, an embodiment of the present application provides a method for adjusting browser page information, which is applied to a terminal device of an Element UI framework, and the method includes the following steps:
[0064] S101, determining the page information to be displayed on the terminal device, and dividing the page information to be displayed.
[0065] Exemplarily, the page information to be displayed may be multiple data entries in a database, or may be link information of multiple commodities. This is only an example, and the present application does not limit the specific page information to be displayed. When the page information to be displayed is multiple data entries, the multiple data entries may be evenly divided according to a fixed number, or the multiple data entries may be divided according to multiple different fixed numbers. Similarly, the present application does not limit the specific division rules, and may be adjusted according to actual conditions.
[0066] In a possible embodiment, before the page information to be displayed is divided, it can also be determined that no user search instruction is detected. If the user's search instruction is detected, the page information to be displayed is directly filtered according to the target search condition indicated by the search instruction, and then the terminal device displays the filtered information. If the user's search instruction is not detected, the page information to be displayed is not processed, and the terminal device directly displays the page information to be displayed. Here, the page information to be displayed can be obtained by the terminal device from the server at one time.
[0067] S102, based on the division result, determine the first page information contained in each of the multiple target containers; wherein the target container is determined according to the scroll bar component in the Element UI framework; the first page information contained in each target container is part of the page information to be displayed.
[0068] Optional, such as Figure 2 As shown, assuming that multiple data entries are divided evenly according to a fixed number, the total height of each target container is H1, the height of the terminal device display area is H2, and the height before the terminal device display area in the total height of the target container is H3, then the page information in the area corresponding to H3 is invisible content, and the page information in the area corresponding to H2 is visible content.
[0069] Furthermore, the sum of the heights of the multiple target containers is positively correlated with the total height of the scroll bar scrolling. For example, the sum of the heights of the multiple target containers is the same as the total height of the scroll bar scrolling.
[0070] S103, adding a first instruction to a designated container position of each target container; the first instruction instructs to load first page information contained in a target container next to the current target container.
[0071] Optionally, the first instruction is generated according to the custom instruction function of vue. The first instruction can be bound to a predefined data loading function, and the data loading function can be used to implement the display page extension and data rendering functions. For example, the first instruction is Vue.directive(), and the data loading function can be a bind function, which can monitor page scrolling events and determine whether the scroll bar has bottomed out. The function parameter passing method specifies the first page information contained in the next target container of the current target container to be displayed.
[0072] In a possible embodiment, the code corresponding to step S103 is as follows:
[0073]
[0074] Among them, the third line indicates the use of the bind function for initialization settings. el is the data bound by the first instruction, which can be used to directly operate the document object model (DOM). Binding is an object with properties such as name and value. The Bind() function can monitor page scrolling events (fifth line) and determine whether the scroll bar has bottomed out (sixth line). scrollHeight is the total height H1 of the target container, scrollTop is the height H3 before the terminal device display area in the total height of the target container, that is, the height of the part covered by the scroll bar scrolling down, and clientHeight is the height H2 of the terminal device display area. Since clientHeight is automatically rounded to an integer, it can be judged as bottoming out when the difference between scrollHeight and scrollTop is less than or equal to clientHeight after retaining the integer.
[0075] S104: for each target container, if it is detected that the scroll bar in the scroll bar component scrolls to the designated container position of the target container, respond to the first instruction until the terminal device completes displaying the page information to be displayed.
[0076] In a possible embodiment, if the designated container position of the target container is the bottom of the target container, when the sum of the first height and the height of the display area of the terminal device is equal to the height of the target container, it is determined that the scroll bar is scrolled to the bottom of the target container; wherein the first height is the height of the area covered by the scroll bar in the target container after scrolling.
[0077] For example, Figure 3a As shown, when H2+H3=H1 and the scroll bar scrolls to the lowest end of the target container, the first instruction in the current target container is triggered, and then Figure 3b As shown, the first instruction response result of the current target container is that the first page information contained in the next target container is loaded.
[0078] like Figure 3c As shown, for 20,000 data items, in 10 comparative experiments on data loading time between the prior art and this application, it takes an average of 4693ms before performance optimization to load all the data in the page information to be displayed, and after performance optimization, this application only takes an average of 595ms to load all the data in the page information to be displayed, and the data loading speed is increased by nearly 8 times. In addition, the loading time variances before and after performance optimization are 468 and 95 respectively, which means that the running speed after performance optimization is more stable and has stronger anti-interference ability.
[0079] Next, it will be introduced how the terminal device displays page information after detecting the user's search command. It should be known here that the user's search command can be monitored in real time. The search command can be monitored before the terminal device displays the page information to be displayed, or during the process of the terminal device displaying the page information to be displayed, or after the terminal device displays the page information to be displayed. This application does not limit the specific timing of the search command.
[0080] Figure 4 The schematic diagram shows a flow chart of displaying page information in a display area of a terminal device after a search instruction is detected, including the following steps:
[0081] S401, after monitoring the user's search instruction, redetermine the page information to be displayed of the terminal device according to the search instruction, and divide the redetermined page information to be displayed.
[0082] Optionally, the search instruction is input into the multi-container component in the Element UI framework to obtain the re-determined information of the page to be displayed of the terminal device, wherein the multi-container component is a component having a screening function after encapsulating the information of the page to be displayed of the terminal device.
[0083] S402: re-determine the first page information contained in each of the plurality of target containers based on the re-determined division result of the to-be-displayed page information.
[0084] Here, the process description in step S102 may be referred to for re-determining the first page information respectively included in the plurality of target containers, which will not be described in detail here.
[0085] S403: for each re-determined target container, if it is detected that the scroll bar scrolls to the designated container position of the target container, respond to the first instruction until the terminal device displays the re-determined page information to be displayed.
[0086] In a possible embodiment, the code corresponding to step S401 is as follows:
[0087]
[0088] The loadMore() function in the second and third lines can be used to calculate the start and end numbers of the data contained in the next target container of the current target container, and the calculated data is continuously displayed in the display area of the terminal device. The fifth line indicates that the target container identifier is increased by 1, which can also indicate the next target container of the current target container. The search() function in the ninth line first determines whether the user has entered the search condition. If there is an input value, the first page information contained in the current target container is updated to the search result (the tenth and twelfth lines); if there is no input value, all data is displayed (the fourteenth line).
[0089] When the search instruction is a fuzzy search, the indexOf function of Javascript can be used to determine whether the search result data contains the text input by the user (line 11).
[0090] This application can avoid page freezes after adding or deleting search content in the prior art by dividing the search results of the search command into multiple target containers. After the performance of this application is optimized, after the user initiates the search command, the search results can be displayed without page freezes. Therefore, batch rendering can reduce the white screen time and first interaction time of the terminal device, and also reduce the total time consumed for data loading. It also improves the user experience.
[0091] like Figure 5 As shown, an embodiment of the present application provides a device for adjusting browser page information, which is applied to a terminal device of an Element UI framework, and the device includes:
[0092] The page information division module 501 is used to determine the page information to be displayed on the terminal device and divide the page information to be displayed;
[0093] The container determination module 502 is used to determine the first page information contained in each of the multiple target containers based on the division result; wherein the target container is determined according to the scroll bar component in the Element UI framework; the first page information contained in each target container is part of the page information to be displayed;
[0094] The instruction adding module 503 is used to add a first instruction to a designated container position of each target container; the first instruction indicates to load the first page information contained in the next target container of the current target container;
[0095] The page information display module 504 is used to monitor for each target container that the scroll bar in the scroll bar component scrolls to the designated container position of the target container, and then respond to the first instruction until the terminal device completes displaying the page information to be displayed.
[0096] In a possible implementation manner, when the sum of the heights of the multiple target containers is positively correlated with the total height of the scroll bar, and the designated container position of the target container is the bottom of the target container, the page information display module 504 is specifically configured to:
[0097] When the sum of the first height and the height of the display area of the terminal device is equal to the height of the target container, it is determined that the scroll bar is scrolled to the bottom of the target container; wherein the first height is the height of the area covered by the scroll bar after scrolling in the target container.
[0098] In a possible implementation manner, the page information division module 501 is further used for:
[0099] It is determined that the user's search instruction is not detected; the search instruction indicates that the information of the page to be displayed is filtered according to the target search condition.
[0100] In a possible implementation manner, the device further includes:
[0101] After detecting the user's search command, re-determine the page information to be displayed on the terminal device according to the search command, and divide the re-determined page information to be displayed;
[0102] Based on the re-determined division result of the to-be-displayed page information, re-determine the first page information contained in each of the plurality of target containers;
[0103] For each re-determined target container, when it is detected that the scroll bar scrolls to the designated container position of the target container, the first instruction is responded to until the terminal device displays the re-determined page information to be displayed.
[0104] In a possible implementation manner, the device is specifically used for:
[0105] The search command is input into the multi-container component in the Element UI framework to obtain the re-determined terminal device's to-be-displayed page information; the multi-container component is a component that has a filtering function after encapsulating the terminal device's to-be-displayed page information.
[0106] In a possible implementation, the first instruction is generated according to a custom instruction function of Vue.
[0107] After introducing the engine speed control method and device according to an exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.
[0108] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.
[0109] In some possible implementations, the electronic device according to the present application may include at least one processor and at least one memory. The memory stores program code, and when the program code is executed by the processor, the processor executes the steps in the method for adjusting the browser page information according to various exemplary implementations of the present application described above in this specification. For example, the processor may execute the steps in the method for adjusting the browser page information.
[0110] Refer to the following Figure 6 The electronic device 60 according to this embodiment of the present application is described. Figure 6 The electronic device 60 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0111] like Figure 6 As shown, the electronic device 60 is in the form of a general electronic device. The components of the electronic device 60 may include but are not limited to: at least one processor 61, at least one memory 62, and a bus 63 connecting different system components (including the memory 62 and the processor 61).
[0112] Bus 63 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0113] The memory 62 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 621 and / or a cache memory 622 , and may further include a read-only memory (ROM) 623 .
[0114] The memory 62 may also include a program / utility 625 having a set (at least one) of program modules 624, such program modules 624 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0115] The electronic device 60 may also communicate with one or more external devices 64 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 60, and / or communicate with any device that enables the electronic device 60 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 65. Furthermore, the electronic device 60 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 66. As shown, the network adapter 66 communicates with other modules for the electronic device 60 via a bus 63. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 60, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0116] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 62 including instructions, and the instructions can be executed by a processor 61 to perform the above method. Alternatively, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0117] In an exemplary embodiment, a computer program product is also provided, including a computer program / instruction, which, when executed by the processor 61, implements any method of the method for adjusting browser page information provided in the present application.
[0118] In an exemplary embodiment, various aspects of a method for adjusting browser page information provided by the present application may also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of a method for adjusting browser page information according to various exemplary embodiments of the present application described above in this specification.
[0119] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0120] The program product for engine control of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on an electronic device. However, the program product of the present application is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0121] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0122] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0123] The program code for performing the operations of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as "C" language or similar programming languages. The program code can be executed entirely on the user electronic device, partially on the user device, as an independent software package, partially on the user electronic device and partially on the remote electronic device, or entirely on the remote electronic device or server. In the case of a remote electronic device, the remote electronic device can be connected to the user electronic device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external electronic device (for example, using an Internet service provider to connect through the Internet).
[0124] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0125] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0127] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable electronic device to generate a machine, so that the instructions executed by the processor of the computer or other programmable electronic device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0128] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable electronic device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0129] These computer program instructions may also be loaded onto a computer or other programmable electronic device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0130] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0131] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for adjusting browser page information, characterized in that: A terminal device applied to an Element UI framework, the method comprising: Determining the page information to be displayed on the terminal device, and dividing the page information to be displayed; Based on the division result, determine the first page information contained in each of the multiple target containers; wherein the target container is determined according to the scroll bar component in the Element UI framework; the first page information contained in each of the target containers is part of the page information to be displayed; Adding a first instruction to a designated container position of each target container; the first instruction instructs to load first page information contained in a target container next to the current target container; For each of the target containers, when it is detected that the scroll bar in the scroll bar component scrolls to the designated container position of the target container, the first instruction is responded to until the terminal device completes displaying the page information to be displayed.
2. The method according to claim 1, characterized in that: The sum of the heights of the plurality of target containers is positively correlated with the total height of the scroll bar scrolling, and when the designated container position of the target container is the bottom of the target container, the monitoring that the scroll bar in the scroll bar component scrolls to the designated container position of the target container includes: When the sum of the first height and the height of the terminal device display area is equal to the height of the target container, it is determined that the scroll bar has scrolled to the bottom of the target container; wherein the first height is the height of the area covered by the scroll bar after scrolling in the target container.
3. The method according to claim 1 or 2, characterized in that: Before dividing the to-be-displayed page information, the method further includes: It is determined that no search instruction of the user is detected; the search instruction instructs to filter the to-be-displayed page information according to the target search condition.
4. The method according to claim 1, characterized in that The method further comprises: After detecting a search instruction of the user, re-determining the page information to be displayed of the terminal device according to the search instruction, and dividing the re-determined page information to be displayed; Based on the re-determined division result of the to-be-displayed page information, re-determine the first page information respectively included in the plurality of target containers; For each of the re-determined target containers, when it is detected that the scroll bar scrolls to the designated container position of the target container, the first instruction is responded to until the terminal device displays the re-determined page information to be displayed.
5. The method according to claim 4, characterized in that The re-determining the page information to be displayed on the terminal device according to the search instruction includes: The search instruction is input into the multi-container component in the Element UI framework to obtain the re-determined page information to be displayed on the terminal device; the multi-container component is a component with a screening function after encapsulating the page information to be displayed on the terminal device.
6. The method according to claim 1, characterized in that The first instruction is generated according to the custom instruction function of Vue.
7. A device for adjusting browser page information, characterized in that: A terminal device applied to the Element UI framework, the device comprising: A page information division module, used to determine the page information to be displayed on the terminal device and divide the page information to be displayed; A container determination module, used to determine the first page information contained in each of the plurality of target containers based on the division result; wherein the target container is determined according to the scroll bar component in the Element UI framework; and the first page information contained in each of the target containers is part of the page information to be displayed; An instruction adding module, used for adding a first instruction to a designated container position of each target container; the first instruction instructs to load the first page information contained in the next target container of the current target container; The page information display module is used to monitor for each of the target containers that the scroll bar in the scroll bar component scrolls to the designated container position of the target container, and then respond to the first instruction until the terminal device completes displaying the page information to be displayed.
8. The device according to claim 7, characterized in that When the sum of the heights of the plurality of target containers is positively correlated with the total height of the scroll bar, and the designated container position of the target container is the bottom of the target container, the page information display module is specifically used to: When the sum of the first height and the height of the terminal device display area is equal to the height of the target container, it is determined that the scroll bar has scrolled to the bottom of the target container; wherein the first height is the height of the area covered by the scroll bar after scrolling in the target container.
9. The device according to claim 7 or 8, characterized in that The page information division module is also used for: It is determined that no search instruction of the user is detected; the search instruction instructs to filter the to-be-displayed page information according to the target search condition.
10. The device according to claim 7, characterized in that The device also includes: After detecting a search instruction of the user, re-determining the page information to be displayed of the terminal device according to the search instruction, and dividing the re-determined page information to be displayed; Based on the re-determined division result of the to-be-displayed page information, re-determine the first page information respectively included in the plurality of target containers; For each of the re-determined target containers, when it is detected that the scroll bar scrolls to the designated container position of the target container, the first instruction is responded to until the terminal device displays the re-determined page information to be displayed.
