CN112328925A - Page data loading method, device, equipment and storage medium - Google Patents

Page data loading method, device, equipment and storage medium Download PDF

Info

Publication number
CN112328925A
CN112328925A CN202011176015.5A CN202011176015A CN112328925A CN 112328925 A CN112328925 A CN 112328925A CN 202011176015 A CN202011176015 A CN 202011176015A CN 112328925 A CN112328925 A CN 112328925A
Authority
CN
China
Prior art keywords
data
interface
page
query
loading
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.)
Pending
Application number
CN202011176015.5A
Other languages
Chinese (zh)
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.)
Beijing Hongteng Intelligent Technology Co ltd
Original Assignee
Beijing Hongteng Intelligent Technology 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 Beijing Hongteng Intelligent Technology Co ltd filed Critical Beijing Hongteng Intelligent Technology Co ltd
Priority to CN202011176015.5A priority Critical patent/CN112328925A/en
Publication of CN112328925A publication Critical patent/CN112328925A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The invention belongs to the technical field of data processing, and discloses a page data loading method, a device, equipment and a storage medium, wherein when a page query instruction of a user is detected, a page data identifier to be loaded is obtained according to the page query instruction; determining a corresponding query data interface according to the page data identifier to be loaded; adjusting interface parameters of the query data interface according to a preset interface configuration set to obtain an adjusted query data interface; and acquiring target query data according to the adjusted query data interface, and loading page data on the target query data. In the invention, the preset interface configuration set contains the standardized interface information, and interface parameter adjustment is carried out on the query data interfaces of a plurality of different sources according to the preset interface configuration set to obtain a uniform interface source, so that the page can load and display data smoothly, and the problem of how to efficiently manage and maintain multiple data interfaces of different sources to load and display data smoothly on the page is solved.

Description

Page data loading method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a page data loading method, apparatus, device, and storage medium.
Background
The content viewed by a user while browsing a web page is essentially data, which is mostly obtained through a front-end asynchronous request back-end (server-end) data interface. If the amount and type of data shown on a page are large, the number of needed backend data interfaces is also large, and the interfaces may have various sources, may not be completely uniform in interface format, and may not necessarily have the same returned data format. For example, the interface may come from an internal server, provided by other departments, a third party paying for, etc. In the face of such complex situations, how to efficiently manage and maintain these interfaces, how to smoothly and smoothly load and display data on a page, and so on are problems that must be solved.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a page data loading method, a page data loading device, page data loading equipment and a page data loading storage medium, and aims to solve the technical problem of how to efficiently manage and maintain multiple data interfaces from different sources, so that a page can be smoothly loaded and data can be displayed.
In order to achieve the above object, the present invention provides a page data loading method, which comprises the following steps:
when a page query instruction of a user is detected, acquiring a page data identifier to be loaded according to the page query instruction;
determining a corresponding query data interface according to the page data identifier to be loaded;
adjusting interface parameters of the query data interface according to a preset interface configuration set to obtain an adjusted query data interface;
and acquiring target query data according to the adjusted query data interface, and loading page data on the target query data.
Optionally, the step of adjusting the interface parameter of the query data interface according to a preset interface configuration set to obtain an adjusted query data interface includes:
acquiring a preset interface list and source interface information according to a preset interface configuration set;
and adjusting interface parameters of the query data interface according to the preset interface list and the source interface information to obtain an adjusted query data interface.
Optionally, the step of adjusting interface parameters of the query data interface according to the preset interface list and the source interface information to obtain an adjusted query data interface includes:
acquiring a configuration request address and request parameters of the query data interface;
traversing the preset interface list according to the configuration request address to obtain a target configuration request address;
adjusting the interface parameters of the request parameters according to the source interface information to obtain target request parameters;
and obtaining the adjusted query data interface according to the target configuration request address and the target request parameter.
Optionally, the step of obtaining target query data according to the adjusted query data interface and performing page data loading on the target query data includes:
constructing a page resource acquisition request according to the adjusted query data interface;
sending the page resource acquisition request to a target server to acquire target query data;
and carrying out page data loading according to the target query data.
Optionally, before the step of loading the page data according to the target query data, the method further includes:
obtaining a return data format of the target query data;
judging whether the returned data format accords with a preset data format or not;
and when the returned data format accords with the preset data format, executing the step of loading page data according to the target query data.
Optionally, after the step of determining whether the returned data format conforms to a preset data format, the method further includes:
when the returned data format does not accord with the preset data format, acquiring format adjustment according to a preset interface configuration set;
adjusting the format of the returned data of the target query data according to the format adjustment to obtain the adjusted target query data;
and loading page data according to the adjusted target query data.
Optionally, the step of performing page data loading on the target query data includes:
performing module division on the target query data according to a preset module division strategy to obtain a plurality of page data modules to be loaded;
and loading the page data according to the page data module to be loaded.
Optionally, before the step of loading the page data according to the page data to be loaded module, the method further includes:
comparing the field data quantity of the page data module to be loaded with a preset field data quantity threshold value;
and when the field data amount is larger than the preset field data amount threshold, carrying out page data loading according to the field data amount of the page data module to be loaded.
Optionally, the step of loading the page data according to the field data size of the page data module to be loaded includes:
paging the field data volume of the page data module to be loaded to obtain paging data;
and acquiring the paging sequence of the paging data, and sequentially loading the page data according to the paging sequence.
Optionally, the step of loading the page data according to the field data size of the page data module to be loaded includes:
acquiring the number of preset single-page data from an interface data cache;
selecting a target field data quantity from the field data quantities of the page data module to be loaded according to the number of the preset single-page data;
and loading page data according to the data volume of the target field.
Optionally, after the step of comparing the field data size of the page data module to be loaded with the preset field data size threshold, the method further includes:
and when the field data amount is less than or equal to the preset field data amount threshold value, executing a step of loading page data according to the page data module to be loaded.
Optionally, before the step of loading the page data according to the to-be-loaded page data module, the method further includes:
creating a data cache for each field of the page data module to be loaded so as to obtain a field data cache;
acquiring the residual field data amount of the field data cache;
judging whether the residual field data quantity meets the preset single-page field data quantity or not;
when the residual field data amount does not meet the preset single-page field data amount, adjusting the adjusted query data interface according to a preset offset value to obtain an updated query data interface;
and acquiring updated query data according to the updated query data interface, and loading page data according to the updated query data.
Optionally, after the step of determining whether the remaining field data amount satisfies a preset single-page field data amount, the method further includes:
and when the residual field data quantity meets the preset single-page field data quantity, executing a step of loading page data according to the page data module to be loaded.
In addition, to achieve the above object, the present invention further provides a page data loading apparatus, where the page data loading apparatus includes:
the acquisition module is used for acquiring a page data identifier to be loaded according to a page query instruction when the page query instruction of a user is detected;
the determining module is used for determining a corresponding query data interface according to the page data identifier to be loaded;
the adjusting module is used for adjusting the interface parameters of the query data interface according to a preset interface configuration set so as to obtain an adjusted query data interface;
and the loading module is used for acquiring target query data according to the adjusted query data interface and loading page data on the target query data.
Optionally, the adjusting module is further configured to obtain a preset interface list and source interface information according to a preset interface configuration set;
and adjusting interface parameters of the query data interface according to the preset interface list and the source interface information to obtain an adjusted query data interface.
Optionally, the adjusting module is further configured to obtain a configuration request address and a request parameter of the query data interface;
traversing the preset interface list according to the configuration request address to obtain a target configuration request address;
adjusting the interface parameters of the request parameters according to the source interface information to obtain target request parameters;
and obtaining the adjusted query data interface according to the target configuration request address and the target request parameter.
Optionally, the loading module is further configured to construct a page resource obtaining request according to the adjusted query data interface;
sending the page resource acquisition request to a target server to acquire target query data;
and carrying out page data loading according to the target query data.
Optionally, the loading module is further configured to obtain a return data format of the target query data;
judging whether the returned data format accords with a preset data format or not;
and when the returned data format accords with the preset data format, executing the step of loading page data according to the target query data.
In addition, to achieve the above object, the present invention further provides a page data loading device, where the page data loading device includes: a memory, a processor and a page data loader stored on the memory and operable on the processor, the page data loader being configured with steps to implement a page data loading method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium, where a page data loader is stored on the storage medium, and when the page data loader is executed by a processor, the page data loader implements the steps of the page data loading method as described above.
According to the method, when a page query instruction of a user is detected, a page data identifier to be loaded is obtained according to the page query instruction; determining a corresponding query data interface according to the page data identifier to be loaded; adjusting interface parameters of the query data interface according to a preset interface configuration set to obtain an adjusted query data interface; and acquiring target query data according to the adjusted query data interface, and loading page data on the target query data. According to the invention, the back end creates a preset interface configuration set which contains standardized interface information, the front end can acquire the preset interface configuration set, interface parameters of a plurality of inquiry data interfaces from different sources are adjusted according to the preset interface configuration set, a uniform interface source is obtained, and a page can load and display data smoothly, so that the technical problem of how to efficiently manage and maintain multiple data interfaces from different sources, and enable the page to load and display data smoothly is solved.
Drawings
Fig. 1 is a schematic structural diagram of a page data loading device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a page data loading method according to a first embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating data module division according to the present embodiment;
FIG. 4 is a schematic diagram of an interface data cache and a field data cache according to the present embodiment;
FIG. 5 is a flowchart illustrating a page data loading method according to a second embodiment of the present invention;
FIG. 6 is a flowchart illustrating a page data loading method according to a third embodiment of the present invention;
fig. 7 is a block diagram of a first embodiment of the page data loading apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a page data loading device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the page data loading apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the page data loading apparatus, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a page data loader.
In the page data loading apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the page data loading device of the present invention may be disposed in the page data loading device, and the page data loading device invokes the page data loading program stored in the memory 1005 through the processor 1001 and executes the page data loading method provided in the embodiment of the present invention.
An embodiment of the present invention provides a page data loading method, and referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a page data loading method according to the present invention.
In this embodiment, the page data loading method includes the following steps:
step S10: and when a page query instruction of a user is detected, acquiring a page data identifier to be loaded according to the page query instruction.
It should be noted that the execution main body of this embodiment is the page data loading device, and the page data loading device may be an electronic device such as a personal computer or a server, which is not limited in this embodiment. When a page query instruction of a user is detected, the page data identifier to be loaded is obtained according to the page query instruction, which may be implemented in various ways, and the following description takes a natural language processing way as an example, and of course, may also be implemented in other ways, which is not limited in this embodiment. Specifically, key word information is obtained from the page query instruction, and a page data identifier to be loaded is determined according to the key word information.
It is easy to understand that the embodiment can be applied to the data of a plurality of different dimensions which need to be obtained by asynchronously requesting a large number of server interfaces, and the data is divided into different modules according to a certain rule and is displayed on a front-end page. When browsing a webpage, a user sends a page query instruction, namely, asynchronously requests a back-end (server-end) data interface through a front end. The page query instruction contains a page data identifier to be loaded, the page data identifier to be loaded can be content which a user wants to query, if the data volume and the data type of the content which the user wants to query on a page are more, the number of needed back-end data interfaces corresponding to the page data identifier to be loaded is also more, the sources of the back-end data interfaces can be various, the formats of the back-end data interfaces can not be completely unified, and the data formats returned by the back-end data interfaces are not necessarily the same. For example, the back-end data interface may come from an internal server, be provided by another department, or be provided by a third party for payment, etc.
Step S20: and determining a corresponding query data interface according to the page data identifier to be loaded.
It should be appreciated that the pages may be loaded from the server through the front-end built-in browser. Specifically, the front end may determine a corresponding query data interface according to the data identifier of the page to be loaded, and may obtain a corresponding page code from the query data interface according to the page address obtained by the built-in browser, thereby implementing page loading. And in addition, a built-in browser can be used for page rendering in the page loading process. The server can generate a designated page list, wherein the designated page list is used for indicating which page codes of the page corresponding to the front end are stored in the server, so that the front end can directly call the page codes from the server to load the page.
Specifically, the server may flexibly configure the corresponding relationship included in the designated page list, for example, add, delete, modify, and the like, the corresponding relationship included in the designated page list according to actual requirements. In this embodiment, the corresponding page code may be stored at the server side, or the page loading may be implemented by using a native code. In specific implementation, which way is adopted to load the page may be configured by the server according to actual service requirements, which is not limited in this embodiment.
Step S30: and adjusting interface parameters of the query data interface according to a preset interface configuration set to obtain an adjusted query data interface.
It should be noted that the preset interface configuration set may include a preset interface list and the source interface information, and interface parameter adjustment may be performed on the query data interface according to the preset interface list and the source interface information, so as to obtain an adjusted query data interface. For example: acquiring a configuration request address and request parameters of the query data interface; traversing the preset interface list according to the configuration request address to obtain a target configuration request address; adjusting the interface parameters of the request parameters according to the source interface information to obtain target request parameters; and obtaining the adjusted query data interface according to the target configuration request address and the target request parameter.
It is easy to understand that data interface management can be performed at the back end, a preset interface configuration set is created, the back end needs to uniformly manage data interfaces from different sources, secondary packaging is performed, a configuration request address and a request parameter of each data interface are specified, the back end can create an interface configuration file in a JSON format, the interface configuration file can contain all the specified data interface information, and the preset interface configuration set is created according to the interface configuration file.
Specifically, the interfaces required by different data modules on a page are not exactly the same, and the interface configuration file may contain the following two pieces of information, one is the urlnfo: in the embodiment, the front end can acquire an interface configuration file, that is, the front end can acquire a preset interface configuration set, and adjust the interface parameters of the query data interface according to the preset interface configuration set to acquire an adjusted query data interface.
Step S40: and acquiring target query data according to the adjusted query data interface, and loading page data on the target query data.
It should be noted that, a page resource acquisition request may be constructed according to the adjusted query data interface; sending the page resource acquisition request to a target server to acquire target query data; and carrying out page data loading according to the target query data. The adjusted query data interface is a uniform interface source, and the interface format is uniform, so that the page can load and display data smoothly, and the technical problem of how to efficiently manage and maintain multiple data interfaces with different sources and enable the page to load and display data smoothly is solved.
It is easy to understand that before the page data loading is performed according to the target query data, the return data format may also be determined, for example: obtaining a return data format of the target query data; judging whether the returned data format accords with a preset data format or not; and when the returned data format accords with the preset data format, executing the step of loading page data according to the target query data. When the returned data format does not accord with the preset data format, acquiring format adjustment according to a preset interface configuration set; adjusting the format of the returned data of the target query data according to the format adjustment to obtain the adjusted target query data; and loading page data according to the adjusted target query data. The returned data formats are the same, and the page is smoothly loaded and the data is displayed.
It should be understood that when the amount of data is large, the situation of page jamming caused by displaying all data at once is avoided as much as possible. In order to enable the page data display to be faster and more intuitive, a module division mode can be selected for displaying. Referring to fig. 3, fig. 3 is a schematic diagram of data module division in this embodiment, 1 to n data modules may be set according to an actual situation, that is, a page includes a plurality of data modules, each data module includes a plurality of fields (data items), and if the data amount of a single field is also large, the data modules may be displayed in a paging manner, for example, one page may be displayed at a time, one page may include 10 pieces of data, and the number of specific data may be dynamically configured, which is not limited in this embodiment.
It should be noted that, in order to avoid the situation that the same interface is repeatedly requested due to different field names, an interface data cache and a field data cache may be set, referring to fig. 4, fig. 4 is a schematic diagram of the interface data cache and the field data cache in this embodiment, the number of the interface data caches and the number of the field data caches may be set according to actual situations, for example, one interface cache in the interface data cache in fig. 4 may contain 10 pieces of data, one field cache in the field data cache may contain 10 pieces of data, and the interface data cache and the field data cache are respectively in one-to-one correspondence. Specifically, different data modules contain different fields (data items), but the data source interfaces of different fields may be the same, each field data source being 1 or more of the list of urlnfo interfaces. In order to improve the page loading efficiency and avoid repeated requests for the same interface, an interface data cache and a field data cache can be arranged. The interface data cache refers to a data cache created for each interface. For example, when the url lnfo interface list in the request interface configuration file is traversed for the first time, in order to obtain data quickly, the first 10 pieces of data (i.e., the number of single page data pieces) of the interface may be requested first, the number of data returned by the interface may be less than or equal to 10, and these pieces of data may be cached. The field data cache refers to a data cache created for each field of the data module, and the direct source of data displayed on the page is the field data cache; the initial value of the field data cache comes from the interface data cache, namely the data returned by the field data source interface. For example, when a page of data in a field needs to be displayed, the data can be directly acquired from the field data cache without repeatedly requesting the interface to acquire the data, so that the page loading efficiency can be increased, and the user experience can be improved.
In the embodiment, when a page query instruction of a user is detected, a page data identifier to be loaded is obtained according to the page query instruction; determining a corresponding query data interface according to the page data identifier to be loaded; adjusting interface parameters of the query data interface according to a preset interface configuration set to obtain an adjusted query data interface; and acquiring target query data according to the adjusted query data interface, and loading page data on the target query data. In this embodiment, the back end creates a preset interface configuration set, the preset interface configuration set includes standardized interface information, and the front end can acquire the preset interface configuration set, and perform interface parameter adjustment on query data interfaces from a plurality of different sources according to the preset interface configuration set to obtain a uniform interface source, so that a page can smoothly load and display data, thereby solving the technical problem of how to efficiently manage and maintain multiple data interfaces from different sources, and how to smoothly load and display data on the page.
Referring to fig. 5, fig. 5 is a flowchart illustrating a page data loading method according to a second embodiment of the present invention. Based on the first embodiment, in step S30, the page data loading method in this embodiment includes:
step S301: and acquiring a preset interface list and source interface information according to the preset interface configuration set.
It should be noted that the preset interface configuration set may include a preset interface list and the source interface information, and interface parameter adjustment may be performed on the query data interface according to the preset interface list and the source interface information, so as to obtain an adjusted query data interface. For example: acquiring a configuration request address and request parameters of the query data interface; traversing the preset interface list according to the configuration request address to obtain a target configuration request address; adjusting the interface parameters of the request parameters according to the source interface information to obtain target request parameters; and obtaining the adjusted query data interface according to the target configuration request address and the target request parameter.
It is easy to understand that data interface management can be performed at the back end, a preset interface configuration set is created, the back end needs to uniformly manage data interfaces from different sources, secondary packaging is performed, a configuration request address and a request parameter of each data interface are specified, the back end can create an interface configuration file in a JSON format, the interface configuration file can contain all the specified data interface information, and the preset interface configuration set is created according to the interface configuration file.
Specifically, the interfaces required by different data modules on a page are not exactly the same, and the interface configuration file may contain the following two pieces of information, one is the urlnfo: in the embodiment, the front end can acquire an interface configuration file, that is, the front end can acquire a preset interface configuration set, and adjust the interface parameters of the query data interface according to the preset interface configuration set to acquire an adjusted query data interface.
It should be noted that the urlnfo may contain the following information: url interface address, whether page interface supports paging (1 supports 0 does not support), params extra parameter (the front end can directly take the past), and the attribute dynamically added after interface is requested includes: data interface data caching, curPage interface data request to page several, page end interface data request to last page, etc. struct may contain the following information: a files field list, a formUrl source interface subscript, i.e., a urlInfo subscript, a pageUrl supported paging interface subscript, i.e., a urlInfo subscript, a title field name, etc.
Step S302: and adjusting interface parameters of the query data interface according to the preset interface list and the source interface information to obtain an adjusted query data interface.
It is easy to understand that, the configuration request address and the request parameter of the query data interface are obtained; traversing the preset interface list according to the configuration request address to obtain a target configuration request address; adjusting the interface parameters of the request parameters according to the source interface information to obtain target request parameters; and obtaining the adjusted query data interface according to the target configuration request address and the target request parameter.
Specifically, the process that the front end can obtain an interface configuration file, that is, the front end can obtain a preset interface configuration set, and adjusting the interface parameters of the query data interface according to the preset interface list and the source interface information may include the following three aspects: the url address change, the params parameter change, and the data return data change, and the process of adjusting the interface parameter of the data interface may also include other aspects, which is not limited in this embodiment. For example, the process of requesting data by a page query instruction of a user may be: searching a mobile phone number on a page by a user, wherein the front end needs to traverse all interfaces in urlInfo corresponding to the mobile phone number in an interface configuration file to obtain and store target query data, and if params parameters of all the interfaces are not empty, the front end directly transmits values to the rear end; because the front end dynamically traverses all interfaces and parameters of the urlnfo, if the interfaces change, only the back end needs to update corresponding items of the interface configuration files, thereby simplifying operation, increasing page loading efficiency and improving user experience.
The embodiment obtains a preset interface list and source interface information according to a preset interface configuration set; and adjusting interface parameters of the query data interface according to the preset interface list and the source interface information to obtain an adjusted query data interface. In this embodiment, the back end creates a preset interface configuration set, the preset interface configuration set includes standardized interface information, and the front end can acquire the preset interface configuration set, and perform interface parameter adjustment on query data interfaces from a plurality of different sources according to the preset interface configuration set to obtain a uniform interface source, so that a page can smoothly load and display data, thereby solving the technical problem of how to efficiently manage and maintain multiple data interfaces from different sources, and how to smoothly load and display data on the page.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a page data loading method according to a third embodiment of the present invention. Based on the first embodiment, in step S40, the page data loading method in this embodiment includes:
step S401: and acquiring target query data according to the adjusted query data interface, and performing module division on the target query data according to a preset module division strategy to acquire a plurality of page data modules to be loaded.
It should be noted that, a page resource acquisition request may be constructed according to the adjusted query data interface; sending the page resource acquisition request to a target server to acquire target query data; and carrying out page data loading according to the target query data. Because the adjusted query data interface is a uniform interface source and the interface format is uniform, the page can load and display data smoothly. When the data volume is large, the situation that the page is blocked due to the fact that all data are displayed at one time is avoided as much as possible. In order to enable the page data display to be faster and more intuitive, a module division mode can be selected for displaying. That is, a page contains a plurality of data modules, each data module contains a plurality of fields (data items), if the data amount of a single field is also large, the data modules can be displayed in a paging mode, for example, one page can be displayed at a time, one page can contain 10 pieces of data, and the number of specific pieces of data can be dynamically configured. The target query data can be subjected to module division according to a preset module division strategy so as to obtain a plurality of page data modules to be loaded. The specific preset module division policy may be set according to an actual situation, which is not limited in this embodiment.
Specifically, when the amount of data is large, the situation that the page is jammed due to displaying all the data at one time is avoided as much as possible. In order to enable the page data display to be faster and more intuitive, a module division mode can be selected for displaying: comparing the field data quantity of the page data module to be loaded with a preset field data quantity threshold before loading the page data according to the page data module to be loaded; when the field data volume is larger than the preset field data volume threshold, performing paging processing on the field data volume of the page data module to be loaded to obtain paging data; and acquiring the paging sequence of the paging data, and sequentially loading the page data according to the paging sequence. When the field data amount is less than or equal to the preset field data amount threshold, the single field data amount is not much, and page data loading can be performed according to the page data module to be loaded.
It is easy to understand that if the number of single field data is too large, when page data is loaded according to the number of field data of the page data module to be loaded, the number of preset single page data can be obtained from an interface data cache; selecting a target field data quantity from the field data quantities of the page data module to be loaded according to the number of the preset single-page data; and loading page data according to the data volume of the target field. For example, the presentation may be in the form of paging, for example, one page may be presented at a time, one page may contain 10 pieces of data, and the number of specific pieces of data may be dynamically configured.
Step S402: and loading the page data according to the page data module to be loaded.
It should be understood that before page data loading according to the target query data, a determination may also be made as to the format of the return data, for example: obtaining a return data format of the target query data; judging whether the returned data format accords with a preset data format or not; and when the returned data format accords with the preset data format, executing the step of loading page data according to the target query data. When the returned data format does not accord with the preset data format, acquiring format adjustment according to a preset interface configuration set; adjusting the format of the returned data of the target query data according to the format adjustment to obtain the adjusted target query data; and loading page data according to the adjusted target query data. The returned data formats are the same, and the page is smoothly loaded and the data is displayed.
It should be noted that, in order to avoid the situation that the same interface is repeatedly requested due to different field names, an interface data cache and a field data cache may be set, for example: a data cache can be created for each field of the page data module to be loaded so as to obtain a field data cache; acquiring the residual field data amount of the field data cache; judging whether the residual field data quantity meets the preset single-page field data quantity or not; when the residual field data amount does not meet the preset single-page field data amount, adjusting the adjusted query data interface according to a preset offset value to obtain an updated query data interface; and acquiring updated query data according to the updated query data interface, and loading page data according to the updated query data. And when the residual field data quantity meets the preset single-page field data quantity, executing a step of loading page data according to the page data module to be loaded.
Specifically, different data modules contain different fields (data items), but the data source interfaces of different fields may be the same, each field data source being 1 or more of the list of urlnfo interfaces. In order to improve the page loading efficiency and avoid repeated requests for the same interface, an interface data cache and a field data cache can be arranged. The interface data cache refers to a data cache created for each interface. For example, when the url lnfo interface list in the request interface configuration file is traversed for the first time, in order to obtain data quickly, the first 10 pieces of data (i.e., the number of single page data pieces) of the interface may be requested first, the number of data returned by the interface may be less than or equal to 10, and these pieces of data may be cached.
It should be noted that the field data cache refers to a data cache created for each field of the data module, and the direct source of the data displayed on the page is the field data cache; the initial value of the field data cache comes from the interface data cache, namely the data returned by the field data source interface. For example, when a page of data in a field needs to be displayed, the data can be directly acquired from the field data cache without repeatedly requesting the interface to acquire the data, so that the page loading efficiency can be increased, and the user experience can be improved.
Specifically, the initial value of the field data cache may come from the interface data cache, i.e., the data returned by the field data source interface. When a next page of data of a certain field needs to be displayed, the data can be directly read from the field data cache, and only when the remaining data of the field data cache is less than one page, the data interface (added with an offset value) is requested again to obtain new data, that is, the adjusted query data interface is adjusted according to a preset offset value to obtain an updated query data interface, the new data is respectively added to the interface data cache and the field data cache, and then 10 pieces of data are read from the updated field data cache and displayed on a page, for example: the method includes caching 3 pages of data for a user, wherein 10 data in each page are cached, namely 30 data in total, when the user browses to the 2 nd page, the remaining cached data is less than 1 page, and the data request starts to be initiated at the moment, so that the experience of the user can be improved. And if the user clicks the data beyond the part to be cached, such as the 10 th page tag, when the data in the cache is read in for the user, the user will be denied the data acquisition request in order to avoid the disorder of data loading in the cache region.
In the embodiment, target query data are acquired according to the adjusted query data interface, and the target query data are subjected to module division according to a preset module division strategy to obtain a plurality of page data modules to be loaded; and loading the page data according to the page data module to be loaded. In this embodiment, the back end creates a preset interface configuration set, the preset interface configuration set includes standardized interface information, and the front end can acquire the preset interface configuration set, and perform interface parameter adjustment on query data interfaces from a plurality of different sources according to the preset interface configuration set to obtain a uniform interface source, so that a page can smoothly load and display data, thereby solving the technical problem of how to efficiently manage and maintain multiple data interfaces from different sources, and how to smoothly load and display data on the page.
In addition, an embodiment of the present invention further provides a storage medium, where a page data loader is stored on the storage medium, and the page data loader is executed by the processor to perform the steps of the page data loading method described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
Referring to fig. 7, fig. 7 is a block diagram illustrating a first embodiment of a page data loading apparatus according to the present invention.
As shown in fig. 7, the page data loading apparatus according to the embodiment of the present invention includes:
the obtaining module 10 is configured to, when a page query instruction of a user is detected, obtain a page data identifier to be loaded according to the page query instruction.
It should be noted that, when a page query instruction of a user is detected, the to-be-loaded page data identifier is obtained according to the page query instruction, which may be implemented in various ways, and the following description takes a natural language processing manner as an example, and may of course be implemented in other ways, which is not limited in this embodiment. Specifically, key word information is obtained from the page query instruction, and a page data identifier to be loaded is determined according to the key word information.
It is easy to understand that the embodiment can be applied to the data of a plurality of different dimensions which need to be obtained by asynchronously requesting a large number of server interfaces, and the data is divided into different modules according to a certain rule and is displayed on a front-end page. When browsing a webpage, a user sends a page query instruction, namely, asynchronously requests a back-end (server-end) data interface through a front end. The page query instruction contains a page data identifier to be loaded, the page data identifier to be loaded can be content which a user wants to query, if the data volume and the data type of the content which the user wants to query on a page are more, the number of needed back-end data interfaces corresponding to the page data identifier to be loaded is also more, the sources of the back-end data interfaces can be various, the formats of the back-end data interfaces can not be completely unified, and the data formats returned by the back-end data interfaces are not necessarily the same. For example, the back-end data interface may come from an internal server, be provided by another department, or be provided by a third party for payment, etc.
And the determining module 20 is configured to determine a corresponding query data interface according to the page data identifier to be loaded.
It should be appreciated that the pages may be loaded from the server through the front-end built-in browser. Specifically, the front end may determine a corresponding query data interface according to the data identifier of the page to be loaded, and may obtain a corresponding page code from the query data interface according to the page address obtained by the built-in browser, thereby implementing page loading. And in addition, a built-in browser can be used for page rendering in the page loading process. The server can generate a designated page list, wherein the designated page list is used for indicating which page codes of the page corresponding to the front end are stored in the server, so that the front end can directly call the page codes from the server to load the page.
Specifically, the server may flexibly configure the corresponding relationship included in the designated page list, for example, add, delete, modify, and the like, the corresponding relationship included in the designated page list according to actual requirements. In this embodiment, the corresponding page code may be stored at the server side, or the page loading may be implemented by using a native code. In specific implementation, which way is adopted to load the page may be configured by the server according to actual service requirements, which is not limited in this embodiment.
And the adjusting module 30 is configured to perform interface parameter adjustment on the query data interface according to a preset interface configuration set, so as to obtain an adjusted query data interface.
It should be noted that the preset interface configuration set may include a preset interface list and the source interface information, and interface parameter adjustment may be performed on the query data interface according to the preset interface list and the source interface information, so as to obtain an adjusted query data interface. For example: acquiring a configuration request address and request parameters of the query data interface; traversing the preset interface list according to the configuration request address to obtain a target configuration request address; adjusting the interface parameters of the request parameters according to the source interface information to obtain target request parameters; and obtaining the adjusted query data interface according to the target configuration request address and the target request parameter.
It is easy to understand that data interface management can be performed at the back end, a preset interface configuration set is created, the back end needs to uniformly manage data interfaces from different sources, secondary packaging is performed, a configuration request address and a request parameter of each data interface are specified, the back end can create an interface configuration file in a JSON format, the interface configuration file can contain all the specified data interface information, and the preset interface configuration set is created according to the interface configuration file.
Specifically, the interfaces required by different data modules on a page are not exactly the same, and the interface configuration file may contain the following two pieces of information, one is the urlnfo: in the embodiment, the front end can acquire an interface configuration file, that is, the front end can acquire a preset interface configuration set, and adjust the interface parameters of the query data interface according to the preset interface configuration set to acquire an adjusted query data interface.
And the loading module 40 is configured to obtain target query data according to the adjusted query data interface, and load page data on the target query data.
It should be noted that, a page resource acquisition request may be constructed according to the adjusted query data interface; sending the page resource acquisition request to a target server to acquire target query data; and carrying out page data loading according to the target query data. The adjusted query data interface is a uniform interface source, and the interface format is uniform, so that the page can load and display data smoothly, and the technical problem of how to efficiently manage and maintain multiple data interfaces with different sources and enable the page to load and display data smoothly is solved.
It is easy to understand that before the page data loading is performed according to the target query data, the return data format may also be determined, for example: obtaining a return data format of the target query data; judging whether the returned data format accords with a preset data format or not; and when the returned data format accords with the preset data format, executing the step of loading page data according to the target query data. When the returned data format does not accord with the preset data format, acquiring format adjustment according to a preset interface configuration set; adjusting the format of the returned data of the target query data according to the format adjustment to obtain the adjusted target query data; and loading page data according to the adjusted target query data. The returned data formats are the same, and the page is smoothly loaded and the data is displayed.
It should be understood that when the amount of data is large, the situation of page jamming caused by displaying all data at once is avoided as much as possible. In order to enable the page data display to be faster and more intuitive, a module division mode can be selected for displaying. Referring to fig. 3, fig. 3 is a schematic diagram of data module division in this embodiment, 1 to n data modules may be set according to an actual situation, that is, a page includes a plurality of data modules, each data module includes a plurality of fields (data items), and if the data amount of a single field is also large, the data modules may be displayed in a paging manner, for example, one page may be displayed at a time, one page may include 10 pieces of data, and the number of specific data may be dynamically configured, which is not limited in this embodiment.
It should be noted that, in order to avoid the situation that the same interface is repeatedly requested due to different field names, an interface data cache and a field data cache may be set, referring to fig. 4, fig. 4 is a schematic diagram of the interface data cache and the field data cache in this embodiment, the number of the interface data caches and the number of the field data caches may be set according to actual situations, for example, one interface cache in the interface data cache in fig. 4 may contain 10 pieces of data, one field cache in the field data cache may contain 10 pieces of data, and the interface data cache and the field data cache are respectively in one-to-one correspondence. Specifically, different data modules contain different fields (data items), but the data source interfaces of different fields may be the same, each field data source being 1 or more of the list of urlnfo interfaces. In order to improve the page loading efficiency and avoid repeated requests for the same interface, an interface data cache and a field data cache can be arranged. The interface data cache refers to a data cache created for each interface. For example, when the url lnfo interface list in the request interface configuration file is traversed for the first time, in order to obtain data quickly, the first 10 pieces of data (i.e., the number of single page data pieces) of the interface may be requested first, the number of data returned by the interface may be less than or equal to 10, and these pieces of data may be cached. The field data cache refers to a data cache created for each field of the data module, and the direct source of data displayed on the page is the field data cache; the initial value of the field data cache comes from the interface data cache, namely the data returned by the field data source interface. For example, when a page of data in a field needs to be displayed, the data can be directly acquired from the field data cache without repeatedly requesting the interface to acquire the data, so that the page loading efficiency can be increased, and the user experience can be improved.
In this embodiment, the obtaining module 10 is configured to, when a page query instruction of a user is detected, obtain a page data identifier to be loaded according to the page query instruction; a determining module 20, configured to determine a corresponding query data interface according to the page data identifier to be loaded; the adjusting module 30 is configured to perform interface parameter adjustment on the query data interface according to a preset interface configuration set to obtain an adjusted query data interface; and the loading module 40 is configured to obtain target query data according to the adjusted query data interface, and load page data on the target query data.
In an embodiment, the adjusting module 30 is further configured to obtain a preset interface list and source interface information according to a preset interface configuration set;
and adjusting interface parameters of the query data interface according to the preset interface list and the source interface information to obtain an adjusted query data interface.
In an embodiment, the adjusting module 30 is further configured to obtain a configuration request address and a request parameter of the query data interface;
traversing the preset interface list according to the configuration request address to obtain a target configuration request address;
adjusting the interface parameters of the request parameters according to the source interface information to obtain target request parameters;
and obtaining the adjusted query data interface according to the target configuration request address and the target request parameter.
In an embodiment, the loading module 40 is further configured to construct a page resource obtaining request according to the adjusted query data interface;
sending the page resource acquisition request to a target server to acquire target query data;
and carrying out page data loading according to the target query data.
In an embodiment, the loading module 40 is further configured to obtain a return data format of the target query data;
judging whether the returned data format accords with a preset data format or not;
and when the returned data format accords with the preset data format, executing the step of loading page data according to the target query data.
In an embodiment, the loading module 40 is further configured to, when the returned data format does not conform to the preset data format, obtain a format adjustment according to a preset interface configuration set;
adjusting the format of the returned data of the target query data according to the format adjustment to obtain the adjusted target query data;
and loading page data according to the adjusted target query data.
In an embodiment, the loading module 40 is further configured to perform module division on the target query data according to a preset module division policy to obtain a plurality of page data modules to be loaded;
and loading the page data according to the page data module to be loaded.
In an embodiment, the loading module 40 is further configured to compare the field data amount of the page data module to be loaded with a preset field data amount threshold;
and when the field data amount is larger than the preset field data amount threshold, carrying out page data loading according to the field data amount of the page data module to be loaded.
In an embodiment, the loading module 40 is further configured to perform paging processing on the field data amount of the page data module to be loaded to obtain paging data;
and acquiring the paging sequence of the paging data, and sequentially loading the page data according to the paging sequence.
In an embodiment, the loading module 40 is further configured to obtain a preset number of single page data from the interface data cache;
selecting a target field data quantity from the field data quantities of the page data module to be loaded according to the number of the preset single-page data;
and loading page data according to the data volume of the target field.
In an embodiment, the loading module 40 is further configured to execute a step of loading page data according to the to-be-loaded page data module when the field data amount is less than or equal to the preset field data amount threshold.
In an embodiment, the loading module 40 is further configured to create a data cache for each field of the page data module to be loaded, so as to obtain a field data cache;
acquiring the residual field data amount of the field data cache;
judging whether the residual field data quantity meets the preset single-page field data quantity or not;
when the residual field data amount does not meet the preset single-page field data amount, adjusting the adjusted query data interface according to a preset offset value to obtain an updated query data interface;
and acquiring updated query data according to the updated query data interface, and loading page data according to the updated query data.
In an embodiment, the loading module 40 is further configured to execute a step of loading page data according to the to-be-loaded page data module when the remaining field data amount satisfies the preset single-page field data amount.
Other embodiments or specific implementation manners of the page data loading device of the present invention may refer to the above-mentioned embodiments of the page data loading method, and details are not described herein.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the page data loading method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
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.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
The invention discloses A1 and a page data loading method, wherein the page data loading method comprises the following steps:
when a page query instruction of a user is detected, acquiring a page data identifier to be loaded according to the page query instruction;
determining a corresponding query data interface according to the page data identifier to be loaded;
adjusting interface parameters of the query data interface according to a preset interface configuration set to obtain an adjusted query data interface;
and acquiring target query data according to the adjusted query data interface, and loading page data on the target query data.
A2, the page data loading method according to a1, wherein the step of adjusting the interface parameters of the query data interface according to a preset interface configuration set to obtain an adjusted query data interface, includes:
acquiring a preset interface list and source interface information according to a preset interface configuration set;
and adjusting interface parameters of the query data interface according to the preset interface list and the source interface information to obtain an adjusted query data interface.
A3, the page data loading method as in a2, the step of adjusting interface parameters of the query data interface according to the preset interface list and the source interface information to obtain an adjusted query data interface, includes:
acquiring a configuration request address and request parameters of the query data interface;
traversing the preset interface list according to the configuration request address to obtain a target configuration request address;
adjusting the interface parameters of the request parameters according to the source interface information to obtain target request parameters;
and obtaining the adjusted query data interface according to the target configuration request address and the target request parameter.
A4, the page data loading method according to A1, wherein the step of obtaining target query data according to the adjusted query data interface and loading page data to the target query data includes:
constructing a page resource acquisition request according to the adjusted query data interface;
sending the page resource acquisition request to a target server to acquire target query data;
and carrying out page data loading according to the target query data.
The page data loading method of a5, as described in a4, further includes, before the step of performing page data loading according to the target query data:
obtaining a return data format of the target query data;
judging whether the returned data format accords with a preset data format or not;
and when the returned data format accords with the preset data format, executing the step of loading page data according to the target query data.
A6, the page data loading method according to a5, further comprising, after the step of determining whether the returned data format conforms to a preset data format:
when the returned data format does not accord with the preset data format, acquiring format adjustment according to a preset interface configuration set;
adjusting the format of the returned data of the target query data according to the format adjustment to obtain the adjusted target query data;
and loading page data according to the adjusted target query data.
A7, the page data loading method according to A1, wherein the step of performing page data loading on the target query data includes:
performing module division on the target query data according to a preset module division strategy to obtain a plurality of page data modules to be loaded;
and loading the page data according to the page data module to be loaded.
A8, the page data loading method according to a7, before the step of loading the page data according to the to-be-loaded page data module, further comprising:
comparing the field data quantity of the page data module to be loaded with a preset field data quantity threshold value;
and when the field data amount is larger than the preset field data amount threshold, carrying out page data loading according to the field data amount of the page data module to be loaded.
A9, the page data loading method according to A8, the step of loading page data according to the field data size of the page data module to be loaded includes:
paging the field data volume of the page data module to be loaded to obtain paging data;
and acquiring the paging sequence of the paging data, and sequentially loading the page data according to the paging sequence.
A10, the page data loading method according to A8, the step of loading page data according to the field data size of the page data module to be loaded includes:
acquiring the number of preset single-page data from an interface data cache;
selecting a target field data quantity from the field data quantities of the page data module to be loaded according to the number of the preset single-page data;
and loading page data according to the data volume of the target field.
A11, the page data loading method according to A8, further including, after the step of comparing the field data size of the page data module to be loaded with the preset field data size threshold:
and when the field data amount is less than or equal to the preset field data amount threshold value, executing a step of loading page data according to the page data module to be loaded.
A12, the page data loading method according to a7, before the step of loading page data according to the to-be-loaded page data module, the method further includes:
creating a data cache for each field of the page data module to be loaded so as to obtain a field data cache;
acquiring the residual field data amount of the field data cache;
judging whether the residual field data quantity meets the preset single-page field data quantity or not;
when the residual field data amount does not meet the preset single-page field data amount, adjusting the adjusted query data interface according to a preset offset value to obtain an updated query data interface;
and acquiring updated query data according to the updated query data interface, and loading page data according to the updated query data.
A13, the page data loading method according to a12, further comprising, after the step of determining whether the remaining field data amount satisfies a preset single-page field data amount:
and when the residual field data quantity meets the preset single-page field data quantity, executing a step of loading page data according to the page data module to be loaded.
The invention also discloses B14, a page data loading device, the page data loading device includes:
the acquisition module is used for acquiring a page data identifier to be loaded according to a page query instruction when the page query instruction of a user is detected;
the determining module is used for determining a corresponding query data interface according to the page data identifier to be loaded;
the adjusting module is used for adjusting the interface parameters of the query data interface according to a preset interface configuration set so as to obtain an adjusted query data interface;
and the loading module is used for acquiring target query data according to the adjusted query data interface and loading page data on the target query data.
B15, the page data loading apparatus according to B14, the adjusting module is further configured to obtain a preset interface list and source interface information according to a preset interface configuration set;
and adjusting interface parameters of the query data interface according to the preset interface list and the source interface information to obtain an adjusted query data interface.
B16, the page data loading device as described in B15, the adjusting module further configured to obtain a configuration request address and request parameters of the query data interface;
traversing the preset interface list according to the configuration request address to obtain a target configuration request address;
adjusting the interface parameters of the request parameters according to the source interface information to obtain target request parameters;
and obtaining the adjusted query data interface according to the target configuration request address and the target request parameter.
B17, the page data loading device as described in B14, the loading module further configured to construct a page resource obtaining request according to the adjusted query data interface;
sending the page resource acquisition request to a target server to acquire target query data;
and carrying out page data loading according to the target query data.
B18, the page data loading device as described in B17, the loading module further configured to obtain a return data format of the target query data;
judging whether the returned data format accords with a preset data format or not;
and when the returned data format accords with the preset data format, executing the step of loading page data according to the target query data.
C19, a page data loading device, the page data loading device comprising: a memory, a processor and a page data loader stored on the memory and operable on the processor, the page data loader being configured with steps to implement a page data loading method as described above.
D20, a storage medium having stored thereon a page data loader which, when executed by a processor, implements the steps of the page data loading method as described above.

Claims (10)

1. A page data loading method is characterized by comprising the following steps:
when a page query instruction of a user is detected, acquiring a page data identifier to be loaded according to the page query instruction;
determining a corresponding query data interface according to the page data identifier to be loaded;
adjusting interface parameters of the query data interface according to a preset interface configuration set to obtain an adjusted query data interface;
and acquiring target query data according to the adjusted query data interface, and loading page data on the target query data.
2. The page data loading method according to claim 1, wherein the step of adjusting the interface parameters of the query data interface according to a preset interface configuration set to obtain an adjusted query data interface comprises:
acquiring a preset interface list and source interface information according to a preset interface configuration set;
and adjusting interface parameters of the query data interface according to the preset interface list and the source interface information to obtain an adjusted query data interface.
3. The page data loading method according to claim 2, wherein the step of adjusting the interface parameters of the query data interface according to the preset interface list and the source interface information to obtain an adjusted query data interface comprises:
acquiring a configuration request address and request parameters of the query data interface;
traversing the preset interface list according to the configuration request address to obtain a target configuration request address;
adjusting the interface parameters of the request parameters according to the source interface information to obtain target request parameters;
and obtaining the adjusted query data interface according to the target configuration request address and the target request parameter.
4. The page data loading method according to claim 1, wherein the step of obtaining target query data according to the adjusted query data interface and performing page data loading on the target query data comprises:
constructing a page resource acquisition request according to the adjusted query data interface;
sending the page resource acquisition request to a target server to acquire target query data;
and carrying out page data loading according to the target query data.
5. The page data loading method according to claim 4, wherein before the step of performing page data loading according to the target query data, further comprising:
obtaining a return data format of the target query data;
judging whether the returned data format accords with a preset data format or not;
and when the returned data format accords with the preset data format, executing the step of loading page data according to the target query data.
6. The page data loading method according to claim 5, wherein after the step of determining whether the returned data format conforms to a preset data format, the method further comprises:
when the returned data format does not accord with the preset data format, acquiring format adjustment according to a preset interface configuration set;
adjusting the format of the returned data of the target query data according to the format adjustment to obtain the adjusted target query data;
and loading page data according to the adjusted target query data.
7. The page data loading method according to claim 1, wherein the step of performing page data loading on the target query data comprises:
performing module division on the target query data according to a preset module division strategy to obtain a plurality of page data modules to be loaded;
and loading the page data according to the page data module to be loaded.
8. A page data loading apparatus, characterized in that the page data loading apparatus comprises:
the acquisition module is used for acquiring a page data identifier to be loaded according to a page query instruction when the page query instruction of a user is detected;
the determining module is used for determining a corresponding query data interface according to the page data identifier to be loaded;
the adjusting module is used for adjusting the interface parameters of the query data interface according to a preset interface configuration set so as to obtain an adjusted query data interface;
and the loading module is used for acquiring target query data according to the adjusted query data interface and loading page data on the target query data.
9. A page data loading apparatus, characterized in that the page data loading apparatus comprises: memory, a processor and a page data loader stored on the memory and executable on the processor, the page data loader being configured with steps to implement the page data loading method according to any of claims 1 to 7.
10. A storage medium having stored thereon a page data loader which, when executed by a processor, implements the steps of the page data loading method according to any one of claims 1 to 7.
CN202011176015.5A 2020-10-28 2020-10-28 Page data loading method, device, equipment and storage medium Pending CN112328925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011176015.5A CN112328925A (en) 2020-10-28 2020-10-28 Page data loading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011176015.5A CN112328925A (en) 2020-10-28 2020-10-28 Page data loading method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112328925A true CN112328925A (en) 2021-02-05

Family

ID=74297131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011176015.5A Pending CN112328925A (en) 2020-10-28 2020-10-28 Page data loading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112328925A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032392A (en) * 2021-02-26 2021-06-25 广东核电合营有限公司 Label data acquisition method and device, computer equipment and storage medium
CN114116866A (en) * 2021-11-22 2022-03-01 广州新科佳都科技有限公司 Data acquisition method and device, terminal equipment and storage medium
CN115344688A (en) * 2022-10-18 2022-11-15 北京国电通网络技术有限公司 Business data display method and device, electronic equipment and computer readable medium
CN115630217A (en) * 2022-12-21 2023-01-20 广州市千钧网络科技有限公司 Method, device and equipment for loading information and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150378579A1 (en) * 2014-06-26 2015-12-31 International Business Machines Corporation Mobilizing an existing web application
CN105868274A (en) * 2016-03-22 2016-08-17 努比亚技术有限公司 Resource data querying and processing method and device thereof
US20180309790A1 (en) * 2017-04-24 2018-10-25 Unisys Corporation User interface features for enterprise security management
CN109446457A (en) * 2018-09-25 2019-03-08 平安普惠企业管理有限公司 Update method, terminal device and the medium of page data
CN109918594A (en) * 2019-01-25 2019-06-21 深圳市元征科技股份有限公司 A kind of information display method and device
CN110222288A (en) * 2019-06-10 2019-09-10 腾讯科技(深圳)有限公司 Page display method, device and storage medium
CN110262851A (en) * 2019-06-24 2019-09-20 北京搜房科技发展有限公司 Interface allocation method and device
CN111310007A (en) * 2020-02-11 2020-06-19 北京达佳互联信息技术有限公司 Webpage interface query method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150378579A1 (en) * 2014-06-26 2015-12-31 International Business Machines Corporation Mobilizing an existing web application
CN105868274A (en) * 2016-03-22 2016-08-17 努比亚技术有限公司 Resource data querying and processing method and device thereof
US20180309790A1 (en) * 2017-04-24 2018-10-25 Unisys Corporation User interface features for enterprise security management
CN109446457A (en) * 2018-09-25 2019-03-08 平安普惠企业管理有限公司 Update method, terminal device and the medium of page data
CN109918594A (en) * 2019-01-25 2019-06-21 深圳市元征科技股份有限公司 A kind of information display method and device
CN110222288A (en) * 2019-06-10 2019-09-10 腾讯科技(深圳)有限公司 Page display method, device and storage medium
CN110262851A (en) * 2019-06-24 2019-09-20 北京搜房科技发展有限公司 Interface allocation method and device
CN111310007A (en) * 2020-02-11 2020-06-19 北京达佳互联信息技术有限公司 Webpage interface query method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
闫兴亚 等: ""首屏数据并行式预加载方案的研究与应用"", 《计算机与数字工程》, vol. 47, no. 05, 20 May 2019 (2019-05-20), pages 1270 - 1274 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032392A (en) * 2021-02-26 2021-06-25 广东核电合营有限公司 Label data acquisition method and device, computer equipment and storage medium
CN113032392B (en) * 2021-02-26 2023-06-23 广东核电合营有限公司 Label data acquisition method, apparatus, computer device and storage medium
CN114116866A (en) * 2021-11-22 2022-03-01 广州新科佳都科技有限公司 Data acquisition method and device, terminal equipment and storage medium
CN115344688A (en) * 2022-10-18 2022-11-15 北京国电通网络技术有限公司 Business data display method and device, electronic equipment and computer readable medium
CN115344688B (en) * 2022-10-18 2022-12-23 北京国电通网络技术有限公司 Business data display method and device, electronic equipment and computer readable medium
CN115630217A (en) * 2022-12-21 2023-01-20 广州市千钧网络科技有限公司 Method, device and equipment for loading information and storage medium

Similar Documents

Publication Publication Date Title
CN112328925A (en) Page data loading method, device, equipment and storage medium
CN109213947B (en) Browser page display method and device, electronic equipment and readable medium
US20050120180A1 (en) Cache time determination
CN107463563B (en) Information service processing method and device of browser
US10198414B2 (en) Methods for optimizing interaction with a form in a website page and systems thereof
WO2014139300A1 (en) Method and device for loading a plug-in
CN108416679B (en) Device and method for issuing orders of multiple insurance products and computer readable storage medium
JP2015528606A (en) Method and apparatus for responding to web page access request
CN109344197A (en) Paging method for down loading and device based on big data
WO2019041500A1 (en) Pagination realization method and device, computer equipment and storage medium
CN112580315A (en) Webpage table display method and device, terminal equipment and medium
US20070261037A1 (en) Methods and systems for displaying multiple unique dynamic messages on a user interface
CN108846741B (en) Payment processing method and approval document processing method
CN113330432A (en) Asynchronous predictive caching of content listed in search results
CN114282129A (en) Information system page generation method, system, electronic equipment and storage medium
CN110888869A (en) Data processing method and device
CN112926002A (en) Service request processing method and device
CN110688594A (en) Page jump method and device for front end of webpage
CN109710604A (en) Data processing method, device, system, computer readable storage medium
US20220284371A1 (en) Method, device and medium for a business function page
CN115062250A (en) Page management method, server, development front end, portal webpage end and system
CN114186148A (en) Page loading method and device, electronic equipment and storage medium
JP5165533B2 (en) Next story search method, next story search server and next story search program
CN113961298A (en) Page switching method, device, equipment and medium
CN114118043A (en) Method for dynamically generating PDF

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100020 1773, 15 / F, 17 / F, building 3, No.10, Jiuxianqiao Road, Chaoyang District, Beijing

Applicant after: Sanliu0 Digital Security Technology Group Co.,Ltd.

Address before: 100020 1773, 15 / F, 17 / F, building 3, No.10, Jiuxianqiao Road, Chaoyang District, Beijing

Applicant before: Beijing Hongteng Intelligent Technology Co.,Ltd.

CB02 Change of applicant information