CN111273964A - Data loading method and device - Google Patents

Data loading method and device Download PDF

Info

Publication number
CN111273964A
CN111273964A CN202010093271.1A CN202010093271A CN111273964A CN 111273964 A CN111273964 A CN 111273964A CN 202010093271 A CN202010093271 A CN 202010093271A CN 111273964 A CN111273964 A CN 111273964A
Authority
CN
China
Prior art keywords
data
url
business
acquisition request
service
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.)
Granted
Application number
CN202010093271.1A
Other languages
Chinese (zh)
Other versions
CN111273964B (en
Inventor
黄辉泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010093271.1A priority Critical patent/CN111273964B/en
Publication of CN111273964A publication Critical patent/CN111273964A/en
Application granted granted Critical
Publication of CN111273964B publication Critical patent/CN111273964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • 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/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides a data loading method and device, including: responding to the clicking operation of a target link, acquiring a hypertext markup language html document corresponding to the target link, and loading a service template interface according to the html document; determining at least one first Uniform Resource Locator (URL) corresponding to the target link based on the target link, and initiating a data resource acquisition request based on the at least one first URL; and after the service template interface is loaded according to the html document and the service data corresponding to the data resource acquisition request is received, loading the service data on the service template interface.

Description

一种数据加载方法及装置A data loading method and device

技术领域technical field

本公开涉及计算机技术领域,具体而言,涉及一种数据加载方法及装置。The present disclosure relates to the field of computer technology, and in particular, to a data loading method and apparatus.

背景技术Background technique

一般用户在点击某一链接之后,用户端可以根据用户点击的该链接从服务器获取该链接对应的超文件标记语言(Hyper Text Markup Language,html)文档,并在对html文档进行解析,获取页面数据,并根据获取的页面数据加载页面;在页面数据加载完成之后,根据解析html文档获取到的统一资源定位符(Uniform Resource Locator,URL)去服务器获取对应的业务数据,并在接收到服务器返回的业务数据之后,在页面中加载返回的业务数据。After a general user clicks a link, the client can obtain the Hyper Text Markup Language (html) document corresponding to the link from the server according to the link clicked by the user, and parse the html document to obtain page data , and load the page according to the obtained page data; after the page data is loaded, go to the server to obtain the corresponding business data according to the Uniform Resource Locator (URL) obtained by parsing the html document, and after receiving the response returned by the server After the business data, load the returned business data in the page.

然而这个过程中,由于用户端解析html文档、根据页面数据加载页面、获取业务数据是顺序执行的,且用户端在向服务器发起业务数据获取请求之后,仍需一段时间等待服务器返回业务数据,因此这种方法容易造成业务数据的加载缓慢。However, in this process, since the client parses the html document, loads the page according to the page data, and obtains the business data is executed sequentially, and after the client initiates a business data acquisition request to the server, it still needs a period of time for the server to return the business data. Therefore, This method is prone to slow loading of business data.

发明内容SUMMARY OF THE INVENTION

本公开实施例至少提供一种数据加载方法及装置。Embodiments of the present disclosure provide at least a data loading method and apparatus.

第一方面,本公开实施例提供了一种数据加载方法,包括:In a first aspect, an embodiment of the present disclosure provides a data loading method, including:

响应目标链接的点击操作,获取所述目标链接对应的超文件标记语言html文档,并根据所述html文档加载业务模板界面;以及,基于所述目标链接,确定所述目标链接对应的至少一个第一统一资源定位符URL,并基于所述至少一个第一URL发起数据资源获取请求;In response to the click operation of the target link, obtain a hyperfile markup language html document corresponding to the target link, and load a business template interface according to the html document; and, based on the target link, determine at least one first corresponding to the target link. a Uniform Resource Locator URL, and initiates a data resource acquisition request based on the at least one first URL;

在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据。After the service template interface is loaded according to the html document and the service data corresponding to the data resource acquisition request is received, the service data is loaded in the service template interface.

一种可能的实施方式中,所述根据所述目标链接,确定所述目标链接对应的至少一个第一URL,包括:In a possible implementation manner, the determining at least one first URL corresponding to the target link according to the target link includes:

根据所述目标链接,查找预先为所述目标链接配置的所述至少一个第一URL。According to the target link, the at least one first URL preconfigured for the target link is searched for.

一种可能的实施方式中,所述在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据,包括:In a possible implementation manner, after loading the business template interface according to the html document and receiving business data corresponding to the data resource acquisition request, loading the business data in the business template interface ,include:

在加载完所述html文档所对应的业务模板界面之后,确定所述html文档对应的第二URL;所述第二URL属于所述至少一个第一URL;After the service template interface corresponding to the html document is loaded, a second URL corresponding to the html document is determined; the second URL belongs to the at least one first URL;

在所述业务模板界面加载接收到的所述第二URL对应的业务数据。The received service data corresponding to the second URL is loaded on the service template interface.

一种可能的实施方式中,所述在所述业务模板界面加载接收到的所述第二URL对应的业务数据,包括:In a possible implementation manner, the loading of the received service data corresponding to the second URL on the service template interface includes:

在基于所述至少一个第一URL发起数据资源获取请求后,从缓存到本地的所述数据资源获取请求对应的业务数据中,获取所述第二URL对应的业务数据,在所述业务模板界面加载接收到的所述第二URL对应的业务数据。After initiating a data resource acquisition request based on the at least one first URL, acquire the service data corresponding to the second URL from the service data corresponding to the data resource acquisition request cached locally, and in the service template interface Loading the received service data corresponding to the second URL.

一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:

若检测到缓存到本地的所述第二URL对应的业务数据的接收时刻与当前时刻之间的时间间隔大于预设时间间隔,基于所述第二URL再次发起数据资源获取请求,并在所述业务模板界面加载接收到的业务数据。If it is detected that the time interval between the receiving time of the service data corresponding to the second URL cached locally and the current time is greater than the preset time interval, the data resource acquisition request is re-initiated based on the second URL, and the The business template interface loads the received business data.

一种可能的实施方式中,所述方法还包括:In a possible implementation, the method further includes:

所述数据资源获取请求缓存在本地;在接收到所述数据资源获取请求对应的业务数据后,将该数据资源获取请求对应的业务数据缓存在本地;The data resource acquisition request is cached locally; after receiving the business data corresponding to the data resource acquisition request, the business data corresponding to the data resource acquisition request is cached locally;

当检测到接收所述业务数据的时刻与当前时刻之间的时间间隔大于预设时间间隔时,将缓存的所述业务数据、该业务数据对应的数据资源获取请求删除。When it is detected that the time interval between the time when the service data is received and the current time is greater than the preset time interval, the cached service data and the data resource acquisition request corresponding to the service data are deleted.

第二方面,本公开实施例还提供一种数据加载装置,包括:In a second aspect, an embodiment of the present disclosure further provides a data loading apparatus, including:

处理模块,用于响应目标链接的点击操作,获取所述目标链接对应的超文件标记语言html文档,并根据所述html文档加载业务模板界面;以及,基于所述目标链接,确定所述目标链接对应的至少一个第一统一资源定位符URL,并基于所述至少一个第一URL发起数据资源获取请求;a processing module, configured to respond to a click operation of a target link, obtain a hyperfile markup language html document corresponding to the target link, and load a business template interface according to the html document; and, based on the target link, determine the target link corresponding at least one first uniform resource locator URL, and initiate a data resource acquisition request based on the at least one first URL;

加载模块,用于在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据。The loading module is configured to load the business data in the business template interface after the business template interface is loaded according to the html document and business data corresponding to the data resource acquisition request is received.

一种可能的实施方式中,所述处理模块,在根据所述目标链接,确定所述目标链接对应的至少一个第一URL时,用于:In a possible implementation manner, the processing module, when determining at least one first URL corresponding to the target link according to the target link, is used for:

根据所述目标链接,查找预先为所述目标链接配置的所述至少一个第一URL。According to the target link, the at least one first URL preconfigured for the target link is searched for.

一种可能的实施方式中,所述加载模块,在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据时,用于:In a possible implementation manner, the loading module loads the business template interface on the business template interface after loading the business template interface according to the html document and receiving business data corresponding to the data resource acquisition request. When describing business data, it is used to:

在加载完所述html文档所对应的业务模板界面之后,确定所述html文档对应的第二URL;所述第二URL属于所述至少一个第一URL;After the service template interface corresponding to the html document is loaded, a second URL corresponding to the html document is determined; the second URL belongs to the at least one first URL;

在所述业务模板界面加载接收到的所述第二URL对应的业务数据。The received service data corresponding to the second URL is loaded on the service template interface.

一种可能的实施方式中,所述加载模块,在所述业务模板界面加载接收到的所述第二URL对应的业务数据时,用于:In a possible implementation manner, the loading module, when loading the received business data corresponding to the second URL in the business template interface, is used to:

在基于所述至少一个第一URL发起数据资源获取请求后,从缓存到本地的所述数据资源获取请求对应的业务数据中,获取所述第二URL对应的业务数据,在所述业务模板界面加载接收到的所述第二URL对应的业务数据。After initiating a data resource acquisition request based on the at least one first URL, acquire the service data corresponding to the second URL from the service data corresponding to the data resource acquisition request cached locally, and in the service template interface Loading the received service data corresponding to the second URL.

一种可能的实施方式中,所述处理模块,还用于:In a possible implementation manner, the processing module is also used for:

若检测到缓存到本地的所述第二URL对应的业务数据的接收时刻与当前时刻之间的时间间隔大于预设时间间隔,基于所述第二URL再次发起数据资源获取请求,并在所述业务模板界面加载接收到的业务数据。If it is detected that the time interval between the receiving time of the service data corresponding to the second URL cached locally and the current time is greater than the preset time interval, the data resource acquisition request is re-initiated based on the second URL, and the The business template interface loads the received business data.

一种可能的实施方式中,所述处理模块,还用于:In a possible implementation manner, the processing module is also used for:

所述数据资源获取请求缓存在本地;在接收到所述数据资源获取请求对应的业务数据后,将该数据资源获取请求对应的业务数据缓存在本地;The data resource acquisition request is cached locally; after receiving the business data corresponding to the data resource acquisition request, the business data corresponding to the data resource acquisition request is cached locally;

当检测到接收所述业务数据的时刻与当前时刻之间的时间间隔大于预设时间间隔时,将缓存的所述业务数据、该业务数据对应的数据资源获取请求删除。When it is detected that the time interval between the time when the service data is received and the current time is greater than the preset time interval, the cached service data and the data resource acquisition request corresponding to the service data are deleted.

第三方面,本公开实施例还提供一种计算机设备,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当计算机设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行上述第一方面,或第一方面中任一种可能的实施方式中的步骤。In a third aspect, embodiments of the present disclosure further provide a computer device, including: a processor, a memory, and a bus, where the memory stores machine-readable instructions executable by the processor, and when the computer device runs, the processing A bus communicates between the processor and the memory, and when the machine-readable instructions are executed by the processor, the first aspect or the steps in any possible implementation manner of the first aspect are performed.

第四方面,本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述第一方面,或第一方面中任一种可能的实施方式中的步骤。In a fourth aspect, embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to execute the first aspect, or any one of the first aspect. steps in one possible implementation.

本公开实施例所提供的数据加载方法,在检测到针对目标链接的点击操作之后,从服务器获取与该目标链接对应的html文档,并根据html文档加载业务模板界面,在获取html文档的同时,确定与目标链接对应的URL,并根据URL发起数据资源获取请求,在加载完业务模板界面之后可以直接根据接收到的业务数据加载业务数据,由于加载业务模板界面与请求业务数据是同步进行的,因此较少了数据加载过程中的等待时间,提高了数据加载的效率。In the data loading method provided by the embodiment of the present disclosure, after detecting the click operation on the target link, the html document corresponding to the target link is obtained from the server, and the service template interface is loaded according to the html document, and while obtaining the html document, Determine the URL corresponding to the target link, and initiate a data resource acquisition request according to the URL. After loading the business template interface, you can directly load the business data according to the received business data. Since the loading of the business template interface and the requesting business data are performed synchronously, Therefore, the waiting time during the data loading process is reduced, and the efficiency of data loading is improved.

在本公开实施例一种实施方式下,在业务数据的接收时刻与当前时刻之间的时间间隔大于预设时间间隔时,会将缓存在本地的业务数据删除,并重新发起获取业务数据的请求,从而保证了界面加载的业务数据的实时性。In one implementation of the embodiment of the present disclosure, when the time interval between the time when the service data is received and the current time is greater than the preset time interval, the locally cached service data will be deleted, and the request to obtain the service data will be re-initiated , thereby ensuring the real-time performance of the business data loaded in the interface.

为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, the preferred embodiments are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required in the embodiments, which are incorporated into the specification and constitute a part of the specification. The drawings illustrate embodiments consistent with the present disclosure, and together with the description serve to explain the technical solutions of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. Other related figures are obtained from these figures.

图1示出了本公开实施例所提供的一种数据加载方法的流程图;FIG. 1 shows a flowchart of a data loading method provided by an embodiment of the present disclosure;

图2示出了本公开实施例所提供的一种业务模板页面示意图;FIG. 2 shows a schematic diagram of a service template page provided by an embodiment of the present disclosure;

图3示出了本公开实施例所提供的一种数据加载装置的示意图;FIG. 3 shows a schematic diagram of a data loading apparatus provided by an embodiment of the present disclosure;

图4示出了本公开实施例所提供的一种电子设备的结构示意图。FIG. 4 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.

具体实施方式Detailed ways

为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are some, but not all, embodiments of the present disclosure. The components of the disclosed embodiments generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure as claimed, but is merely representative of selected embodiments of the disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present disclosure.

通常情况下,用户在点击用户端的链接之后,可以先向服务器发起页面数据加载请求,服务器可以根据该页面数据加载请求,向用户端返回对应的页面数据,一般情况下该页面数据的形式为html文档,用户端在接收到html文档之后,可以根据html文档加载对应的页面,但是该页面中并不包含具体的业务数据,例如,html文档所加载的页面可能包含个人信息,但是仅有姓名、性别、年龄等属性,并不包含具体的属性值;因此,还需要用户端解析html文档以获取URL,然后根据URL发起数据获取请求,以获取对应的业务数据。Usually, after the user clicks the link on the client, the user can first initiate a page data loading request to the server, and the server can return the corresponding page data to the client according to the page data loading request. Generally, the page data is in the form of html document, after receiving the html document, the client can load the corresponding page according to the html document, but the page does not contain specific business data. For example, the page loaded by the html document may contain personal information, but only the name, Attributes such as gender and age do not contain specific attribute values; therefore, the client also needs to parse the html document to obtain the URL, and then initiate a data acquisition request according to the URL to obtain the corresponding business data.

在这个过程中,由于加载页面数据和获取业务数据是顺序执行的,用户端在发起数据获取请求之后,服务器根据接收到的数据获取请求查找并返回对应的业务数据,在这个过程中,从用户点击链接,到用户端发起数据获取请求之间、从服务器接收到数据获取请求到服务器向用户端返回业务数据之间,都需要时间等待,因此这种方法容易造成业务数据的加载缓慢。In this process, since the loading of page data and the acquisition of business data are performed sequentially, after the client initiates a data acquisition request, the server searches and returns the corresponding business data according to the received data acquisition request. Clicking on the link takes time to wait until the client initiates a data acquisition request, from the server receiving the data acquisition request to the server returning business data to the client. Therefore, this method is likely to cause slow loading of business data.

基于此,本公开所提供的数据加载方法,在检测到针对目标链接的点击操作之后,从服务器获取与该目标链接对应的html文档,并根据html文档加载业务模板界面,在获取html文档的同时,确定与目标链接对应的URL,并根据URL发起数据资源获取请求,在加载完业务模板界面之后可以直接根据接收到的业务数据加载业务数据,由于加载业务模板界面与请求业务数据是同步进行的,因此较少了数据加载过程中的等待时间,提高了数据加载的效率。Based on this, in the data loading method provided by the present disclosure, after detecting the click operation on the target link, the html document corresponding to the target link is obtained from the server, and the service template interface is loaded according to the html document. , determine the URL corresponding to the target link, and initiate a data resource acquisition request according to the URL. After loading the business template interface, you can directly load the business data according to the received business data, because the loading of the business template interface and the requesting business data are performed synchronously , so the waiting time in the data loading process is reduced, and the efficiency of data loading is improved.

另外,相关技术中为提高数据加载效率,会采用预加载的方式,预先将当前页面对应的所有链接的业务数据存储在本地,在用户点击当前页面中的任一链接时,直接获取存储在本地的业务数据。这种实现方式中,若用户在当前页面浏览的时间过长,由于缓存在本地的业务数据无法进行更新,这就导致,当用户浏览一段时间之后所点击的链接所加载的数据为预先存储在本地的,数据实时性较差。In addition, in order to improve the data loading efficiency in the related art, the preloading method is used to store the business data of all the links corresponding to the current page locally in advance. business data. In this implementation, if the user browses the current page for too long, the locally cached business data cannot be updated, which results in that the data loaded by the link clicked by the user after browsing for a period of time is pre-stored in the Local, the real-time data is poor.

在本公开实施例一种实施方式下,在业务数据的接收时刻与当前时刻之间的时间间隔大于预设时间间隔时,会将缓存在本地的业务数据删除,并重新发起获取业务数据的请求,从而保证了界面加载的业务数据的实时性。In one implementation of the embodiment of the present disclosure, when the time interval between the time when the service data is received and the current time is greater than the preset time interval, the locally cached service data will be deleted, and the request to obtain the service data will be re-initiated , thereby ensuring the real-time performance of the business data loaded in the interface.

针对以上方案所存在的缺陷,均是发明人在经过实践并仔细研究后得出的结果,因此,上述问题的发现过程以及下文中本公开针对上述问题所提出的解决方案,都应该是发明人在本公开过程中对本公开做出的贡献。The defects existing in the above solutions are all the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions to the above problems proposed by the present disclosure hereinafter should be the inventors Contributions made to this disclosure during the course of this disclosure.

下面将结合本公开中附图,对本公开中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本公开的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本公开的实施例的详细描述并非旨在限制要求保护的本公开的范围,而是仅仅表示本公开的选定实施例。基于本公开的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the present disclosure. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, but not all of the embodiments. The components of the present disclosure generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure as claimed, but is merely representative of selected embodiments of the disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present disclosure.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.

为便于对本实施例进行理解,首先对本公开实施例所公开的一种数据加载方法进行详细介绍,本公开实施例所提供的数据加载方法的执行主体一般为具有显示能力和一定计算能力的电子设备,该电子设备例如可以为智能手机、个人计算机、平板电脑等。In order to facilitate the understanding of this embodiment, a data loading method disclosed in the embodiment of the present disclosure is first introduced in detail. The execution body of the data loading method provided by the embodiment of the present disclosure is generally an electronic device with display capability and certain computing capability. , the electronic device can be, for example, a smart phone, a personal computer, a tablet computer, and the like.

参见图1所示,为本公开实施例提供的数据加载方法的流程图,该方法应用于用户端,包括以下几个步骤:Referring to FIG. 1, which is a flowchart of a data loading method provided by an embodiment of the present disclosure, the method is applied to a user terminal and includes the following steps:

步骤101、响应目标链接的点击操作,获取所述目标链接对应的超文件标记语言html文档,并根据所述html文档加载业务模板界面;以及,基于所述目标链接,确定所述目标链接对应的至少一个第一统一资源定位符URL,并基于所述至少一个第一URL发起数据资源获取请求。Step 101: In response to the click operation of the target link, obtain a hyperfile markup language html document corresponding to the target link, and load a business template interface according to the html document; and, based on the target link, determine the corresponding target link. at least one first uniform resource locator URL, and initiates a data resource acquisition request based on the at least one first URL.

步骤102、在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据。Step 102: After loading the business template interface according to the html document and receiving business data corresponding to the data resource acquisition request, load the business data in the business template interface.

其中,对于目标链接的点击操作包括但不仅限于单击、双击、长按、重按等。在检测到针对目标链接的点击操作之后,可以根据该目标链接,从服务器获取与该目标链接对应的超文本链接html文档,该html文档中包含有该目标链接对应的页面的页面数据。用户端在接收到服务器返回的html文档之后,可以解析该html文档,并根据解析的html文档加载对应的业务模板页面。Wherein, the click operation on the target link includes but is not limited to single click, double click, long press, repress and so on. After detecting the click operation on the target link, a hypertext link html document corresponding to the target link can be obtained from the server according to the target link, and the html document contains page data of the page corresponding to the target link. After receiving the html document returned by the server, the client can parse the html document, and load the corresponding business template page according to the parsed html document.

在一种可能的实施方式中,每个链接对应的html文档还可以存储在用户端本地,在检测到针对目标链接的点击操作之后,可以从本地查找目标链接对应的html文档。In a possible implementation manner, the html document corresponding to each link may also be stored locally on the client side, and after detecting a click operation on the target link, the html document corresponding to the target link may be locally searched.

具体的,用户端可以创建网页视图Webview容器,然后基于Webview解析html文档,并加载html文档中所包含的页面数据。Specifically, the user terminal may create a web page view Webview container, then parse the html document based on the webview, and load the page data contained in the html document.

业务模板页面中包含有该目标链接对应的属性,但是该业务模板页面中并不包含属性具体的属性值,示例性的,业务模板页面可能如图2所示,该图中展示有属性“姓名”、“性别”、“年龄”,但是每种属性下的属性值属于业务数据,在加载业务模板页面该属性值为空。The business template page contains the attribute corresponding to the target link, but the business template page does not contain the specific attribute value of the attribute. Exemplarily, the business template page may be as shown in Figure 2, where the attribute "Name" is displayed. ", "gender", "age", but the attribute value under each attribute belongs to business data, and the attribute value is empty on the loading business template page.

在基于目标链接,确定目标链接对应的至少一个第一统一资源定位符URL时,可以是根据目标链接,查找预先为目标链接配置的至少一个第一URL。具体的,用户端可以解析当前展示的页面的URL,然后确定为所述目标链接所配置的至少一个第一URL。When at least one first uniform resource locator URL corresponding to the target link is determined based on the target link, at least one first URL preconfigured for the target link may be searched according to the target link. Specifically, the user terminal may parse the URL of the currently displayed page, and then determine at least one first URL configured for the target link.

需要说明的是,获取目标链接对应的html文档,根据html文档加载业务模板界面,与基于目标链接,确定目标链接对应的至少一个第一统一定位资源费URL,基于至少一个第一URL发起数据资源获取请求是在用户端并行执行的。It should be noted that the html document corresponding to the target link is obtained, the business template interface is loaded according to the html document, and based on the target link, at least one first unified positioning resource fee URL corresponding to the target link is determined, and data resources are initiated based on the at least one first URL Get requests are executed in parallel on the user side.

在根据html文档加载完业务模板界面,并接收到数据资源获取请求对应的业务数据之后,在业务模板界面加载业务数据时,具体可以执行为,在加载完html文档所对应的业务模板界面之后,确定html文档对应的第二URL,然后在业务模板界面中加载接收到的第二URL对应的业务数据。其中,第二URL属于第一URL中的一个URL。After the business template interface is loaded according to the html document and the business data corresponding to the data resource acquisition request is received, when the business data is loaded in the business template interface, the specific execution may be as follows: after the business template interface corresponding to the html document is loaded, Determine the second URL corresponding to the html document, and then load the received service data corresponding to the second URL in the service template interface. Wherein, the second URL belongs to one of the first URLs.

实际应用中,目标链接对应的页面中的业务数据可能有M种,但是在用户点击目标链接之后,需要当前展示在页面中的业务数据可能仅为M种业务数据中的N中,因此,本公开实施例所提供的方法在加载业务数据时,仅加载第二URL对应的业务数据。In practical applications, there may be M kinds of business data in the page corresponding to the target link, but after the user clicks the target link, the business data that needs to be displayed on the page may only be N among the M kinds of business data. When the method provided by the disclosed embodiment loads the service data, only the service data corresponding to the second URL is loaded.

用户端在基于第一URL发起数据资源获取请求之后,可以将发起的数据资源获取请求缓存在本地,若接收到任一数据资源请求所对应的业务数据后,将接收到的该业务数据也缓存到本地。After the client initiates a data resource acquisition request based on the first URL, it can cache the initiated data resource acquisition request locally. If it receives the business data corresponding to any data resource request, it also caches the received business data. to the local.

在一种可能的实施方式中,所述在业务模板页面中加载接收到的第二URL对应的业务数据,可以是在基于至少一个第一URL发起数据资源获取请求后,从缓存到本地的数据资源获取请求对应的业务数据中,获取第二URL对应的业务数据,并在业务模板界面中加载接收到的第二URL对应的业务数据。In a possible implementation manner, the loading of the service data corresponding to the received second URL in the service template page may be data stored locally from the cache after a data resource acquisition request is initiated based on at least one first URL. In the service data corresponding to the resource acquisition request, the service data corresponding to the second URL is obtained, and the received service data corresponding to the second URL is loaded in the service template interface.

其中,缓存到本地的数据资源获取请求对应的业务数据包括两种可能的情况,一种可能的情况是,基于第二URL发起的数据资源获取请求,且在加载完业务模板页面之前已经接收到第二URL对应的业务数据,接收到的业务数据缓存在本地(第一URL包括第二URL,因此,在基于第一URL发起数据资源获取请求包括基于第二URL发起数据资源获取请求);另外一种可能的情况是,基于第二URL发起数据资源获取请求,且在加载完业务模板页面之前未接收到第二URL对应的业务数据,用户端等待一段时间之后,接收到第二URL对应的业务数据并缓存到本地之后,从本地获取。Among them, the business data corresponding to the data resource acquisition request cached locally includes two possible situations. One possible situation is that the data resource acquisition request initiated based on the second URL has been received before the service template page is loaded. The business data corresponding to the second URL is cached locally (the first URL includes the second URL, therefore, initiating a data resource acquisition request based on the first URL includes initiating a data resource acquisition request based on the second URL); A possible situation is that a data resource acquisition request is initiated based on the second URL, and the service data corresponding to the second URL is not received before the service template page is loaded. After the business data is cached locally, it is obtained locally.

针对第一种情况,在业务模板界面中加载第二URL对应的业务数据时,可以直接从缓存在本地的业务数据中,获取第二URL对应的业务数据;针对第二种情况,用户端可以等待服务器返回业务数据,在接收到返回的业务数据之后,在需要在业务模板界面中加载时,再从本地缓存中获取。For the first case, when the service data corresponding to the second URL is loaded in the service template interface, the service data corresponding to the second URL can be obtained directly from the locally cached service data; for the second case, the client can Wait for the server to return the business data, and after receiving the returned business data, obtain it from the local cache when it needs to be loaded in the business template interface.

在一种可能的实施方式中,用户端在从缓存在本地的业务数据中,获取需要加载到业务模板界面中第二URL对应的业务数据时,可以周期性的获取,若本地缓存中存储有第二URL对应的业务数据,则直接获取第二URL对应的业务数据,并在业务模板界面中加载获取的业务数据;若缓存在本地的业务数据中不包含第二URL对应的业务数据,但是本地缓存中存储有基于第二URL发起的数据资源获取请求,这种情况下,可以每隔预设时长从本地缓存中检测是否接收到该数据资源获取请求对应的业务数据。In a possible implementation manner, when the client obtains the business data corresponding to the second URL that needs to be loaded into the business template interface from the business data cached locally, it can be obtained periodically. For the business data corresponding to the second URL, directly obtain the business data corresponding to the second URL, and load the obtained business data in the business template interface; if the business data cached locally does not contain the business data corresponding to the second URL, but The local cache stores the data resource acquisition request initiated based on the second URL. In this case, it may be detected from the local cache whether the business data corresponding to the data resource acquisition request is received from the local cache at preset time intervals.

示例性的,若用户端加载业务模板界面所需时间为10ms,发起数据资源获取请求到接收到服务器返回的业务数据所需时间为20ms,若先加载业务模板界面,再发起数据资源获取请求,则用户端接收业务数据所需时间为10ms+20ms=30ms;而基于本公开所提供的方法,用户端在加载业务模压板界面的同时,发起数据资源获取请求,则用户端在加载完业务模板界面之后,只需再等待10ms即可获取业务数据,用户端接收业务数据所需时间为20ms,因此,本公开所提供的方法可以提高数据加载效率。Exemplarily, if the time required for the client to load the service template interface is 10ms, and the time required from initiating a data resource acquisition request to receiving the service data returned by the server is 20ms, if the service template interface is loaded first, and then the data resource acquisition request is initiated, Then the time required for the client to receive the service data is 10ms+20ms=30ms; and based on the method provided by the present disclosure, the client initiates a data resource acquisition request while loading the service template interface, and the client finishes loading the service template. After the interface, it only needs to wait for another 10ms to obtain the service data, and the time required for the client to receive the service data is 20ms. Therefore, the method provided by the present disclosure can improve the data loading efficiency.

实际应用中,Webview在加载完业务模板界面之后,可以基于第二URL,通过JS请求业务数据,但是与此同时,用户端会拦截JS请求,然后判断缓存到本地中的数据资源获取请求是否与JS请求相匹配,若本地中有与JS请求匹配的数据资源获取请求,且本地中缓存有该数据资源获取请求对应的业务数据,则直接将该业务数据作为JS请求所对应的业务数据,并在业务模板界面中加载该业务数据;若本地中有与JS请求匹配的数据资源获取请求,但本地中并没有缓存该数据资源获取请求对应的业务数据,则用户端可以等待服务器返回该数据资源获取请求对应的业务数据,并在接收到服务器返回的业务数据之后,在业务模板界面中加载接收的业务数据。In practical applications, after loading the business template interface, Webview can request business data through JS based on the second URL, but at the same time, the client will intercept the JS request, and then judge whether the request for obtaining data resources cached locally matches the The JS request matches, if there is a data resource acquisition request matching the JS request locally, and the business data corresponding to the data resource acquisition request is cached locally, the business data is directly used as the business data corresponding to the JS request, and Load the business data in the business template interface; if there is a data resource acquisition request that matches the JS request locally, but the business data corresponding to the data resource acquisition request is not cached locally, the client can wait for the server to return the data resource Obtain the business data corresponding to the request, and after receiving the business data returned by the server, load the received business data in the business template interface.

本公开另外一种可能的实施方式中,若基于第二URL发起数据资源获取请求,且在加载完业务模板页面之前未接收到第二URL对应的业务数据,若数据资源获取请求对应的发起时刻与当前时刻之间的时间间隔超过预设时间间隔,则重新基于第二URL发起数据资源获取请求。In another possible implementation of the present disclosure, if a data resource acquisition request is initiated based on the second URL, and the service data corresponding to the second URL is not received before the service template page is loaded, if the data resource acquisition request corresponds to the initiation time If the time interval from the current moment exceeds the preset time interval, the data resource acquisition request is re-initiated based on the second URL.

在另一种可实现的方式中,若检测到缓存到本地的第二URL对应的业务数据的接收时刻与当前时刻之间的时间间隔大于预设时间间隔,为保证数据的实时性,则重新基于第二URL发起数据资源获取请求,并在业务模板界面加载接收到的业务数据。In another achievable manner, if it is detected that the time interval between the reception time of the service data corresponding to the second URL cached locally and the current time is greater than the preset time interval, in order to ensure the real-time nature of the data, the A data resource acquisition request is initiated based on the second URL, and the received service data is loaded on the service template interface.

综上,在业务模板界面加载的业务数据,可能包括以下几种情况:To sum up, the business data loaded in the business template interface may include the following situations:

情况一、基于第二URL已发起数据资源获取请求,且并未接收到服务器基于该数据资源获取请求反馈的业务数据。Case 1: A data resource acquisition request has been initiated based on the second URL, and no business data fed back by the server based on the data resource acquisition request has been received.

情况二、基于第二URL已发起数据资源获取请求,且在本地缓存中已存储有该数据资源获取请求对应的业务数据,且该业务数据的接收时刻与当前时刻之间的时间间隔小于或等于预设时间间隔。Situation 2: A data resource acquisition request has been initiated based on the second URL, and the business data corresponding to the data resource acquisition request has been stored in the local cache, and the time interval between the time when the business data is received and the current time is less than or equal to Preset time interval.

情况三、基于第二URL已发起数据资源获取请求,在本地缓存中已存储有该数据资源获取请求对应的业务数据,且该业务数据的接收时刻与当前时刻之间的时间间隔大于预设时间间隔。Situation 3: A data resource acquisition request has been initiated based on the second URL, the business data corresponding to the data resource acquisition request has been stored in the local cache, and the time interval between the time when the business data is received and the current time is greater than the preset time interval.

由于获取业务数据与加载业务模板界面是同步执行的,若业务模板界面的加载时间过程,例如为10S,而获取业务数据所需要的时间为2S,则在业务模板界面加载业务数据时,本地缓存的业务数据为当前时刻之前8S的业务数据,由于数据变化较频繁,因此,在业务数据的接收时刻与当前时刻之间的时间间隔大于预设时间间隔时,可以重新基于第二URL发起数据资源获取请求,以重新获取第二URL对应的业务数据,进而保证业务数据的实时性。Since the acquisition of business data and the loading of the business template interface are performed synchronously, if the loading time process of the business template interface is, for example, 10 seconds, and the time required to acquire business data is 2 seconds, when the business data is loaded in the business template interface, the local cache The business data is the business data 8S before the current moment. Since the data changes more frequently, when the time interval between the reception moment of the business data and the current moment is greater than the preset time interval, the data resource can be re-initiated based on the second URL. The acquisition request is used to re-acquire the service data corresponding to the second URL, thereby ensuring the real-time nature of the service data.

在一种可能的实施方式中,在接收到任一数据资源请求对应的业务数据后,可以将数据资源获取请求对应的业务数据缓存在本地,而为了提高缓存在本地的业务数据的利用率,可以当接收业务数据的时刻与当前时刻之间的时间间隔大于预设时间间隔时,将缓存的业务数据、该业务数据对应的数据资源获取请求删除。In a possible implementation manner, after receiving the service data corresponding to any data resource request, the service data corresponding to the data resource acquisition request may be cached locally, and in order to improve the utilization rate of the locally cached service data, When the time interval between the time when the service data is received and the current time is greater than the preset time interval, the cached service data and the data resource acquisition request corresponding to the service data may be deleted.

本公开实施例所提供的数据加载方法,在检测到针对目标链接的点击操作之后,从服务器获取与该目标链接对应的html文档,并根据html文档加载业务模板界面,在获取html文档的同时,确定与目标链接对应的URL,并根据URL发起数据资源获取请求,在加载完业务模板界面之后可以直接根据接收到的业务数据加载业务数据,由于加载业务模板界面与请求业务数据是同步进行的,因此较少了数据加载过程中的等待时间,提高了数据加载的效率。In the data loading method provided by the embodiment of the present disclosure, after detecting the click operation on the target link, the html document corresponding to the target link is obtained from the server, and the service template interface is loaded according to the html document, and while obtaining the html document, Determine the URL corresponding to the target link, and initiate a data resource acquisition request according to the URL. After loading the business template interface, you can directly load the business data according to the received business data. Since the loading of the business template interface and the requesting business data are performed synchronously, Therefore, the waiting time during the data loading process is reduced, and the efficiency of data loading is improved.

在本公开实施例一种实施方式下,在业务数据的接收时刻与当前时刻之间的时间间隔大于预设时间间隔时,会将缓存在本地的业务数据删除,并重新发起获取业务数据的请求,从而保证了界面加载的业务数据的实时性。In one implementation of the embodiment of the present disclosure, when the time interval between the time when the service data is received and the current time is greater than the preset time interval, the locally cached service data will be deleted, and the request to obtain the service data will be re-initiated , thereby ensuring the real-time performance of the business data loaded in the interface.

本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.

基于同一发明构思,本公开实施例中还提供了与数据加载方法对应的数据加载装置,由于本公开实施例中的装置解决问题的原理与本公开实施例上述数据加载方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiments of the present disclosure also provide a data loading apparatus corresponding to the data loading method. Reference may be made to the implementation of the method, and repeated descriptions will not be repeated.

参照图3所示,为本公开实施例提供的一种数据加载装置的示意图,所述装置包括:处理模块301、加载模块302;其中,Referring to FIG. 3, which is a schematic diagram of a data loading apparatus provided by an embodiment of the present disclosure, the apparatus includes: a processing module 301 and a loading module 302; wherein,

处理模块301,用于响应目标链接的点击操作,获取所述目标链接对应的超文件标记语言html文档,并根据所述html文档加载业务模板界面;以及,基于所述目标链接,确定所述目标链接对应的至少一个第一统一资源定位符URL,并基于所述至少一个第一URL发起数据资源获取请求;A processing module 301, configured to respond to a click operation of a target link, obtain a hyperfile markup language html document corresponding to the target link, and load a business template interface according to the html document; and, based on the target link, determine the target at least one first uniform resource locator URL corresponding to the link, and initiate a data resource acquisition request based on the at least one first URL;

加载模块302,用于在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据。The loading module 302 is configured to load the business data in the business template interface after the business template interface is loaded according to the html document and business data corresponding to the data resource acquisition request is received.

一种可能的实施方式中,所述处理模块301,在根据所述目标链接,确定所述目标链接对应的至少一个第一URL时,用于:In a possible implementation manner, when determining at least one first URL corresponding to the target link according to the target link, the processing module 301 is configured to:

根据所述目标链接,查找预先为所述目标链接配置的所述至少一个第一URL。According to the target link, the at least one first URL preconfigured for the target link is searched for.

一种可能的实施方式中,所述加载模块302,在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据时,用于:In a possible implementation manner, the loading module 302, after loading the business template interface according to the html document and receiving business data corresponding to the data resource acquisition request, loads the business template interface. The business data is used for:

在加载完所述html文档所对应的业务模板界面之后,确定所述html文档对应的第二URL;所述第二URL属于所述至少一个第一URL;After the service template interface corresponding to the html document is loaded, a second URL corresponding to the html document is determined; the second URL belongs to the at least one first URL;

在所述业务模板界面加载接收到的所述第二URL对应的业务数据。The received service data corresponding to the second URL is loaded on the service template interface.

一种可能的实施方式中,所述加载模块302,在所述业务模板界面加载接收到的所述第二URL对应的业务数据时,用于:In a possible implementation manner, the loading module 302, when loading the received service data corresponding to the second URL in the service template interface, is used to:

在基于所述至少一个第一URL发起数据资源获取请求后,从缓存到本地的所述数据资源获取请求对应的业务数据中,获取所述第二URL对应的业务数据,在所述业务模板界面加载接收到的所述第二URL对应的业务数据。After initiating a data resource acquisition request based on the at least one first URL, acquire the service data corresponding to the second URL from the service data corresponding to the data resource acquisition request cached locally, and in the service template interface Loading the received service data corresponding to the second URL.

一种可能的实施方式中,所述处理模块301,还用于:In a possible implementation manner, the processing module 301 is further configured to:

若检测到缓存到本地的所述第二URL对应的业务数据的接收时刻与当前时刻之间的时间间隔大于预设时间间隔,基于所述第二URL再次发起数据资源获取请求,并在所述业务模板界面加载接收到的业务数据。If it is detected that the time interval between the receiving time of the service data corresponding to the second URL cached locally and the current time is greater than the preset time interval, the data resource acquisition request is re-initiated based on the second URL, and the The business template interface loads the received business data.

一种可能的实施方式中,所述处理模块301,还用于:In a possible implementation manner, the processing module 301 is further configured to:

所述数据资源获取请求缓存在本地;在接收到所述数据资源获取请求对应的业务数据后,将该数据资源获取请求对应的业务数据缓存在本地;The data resource acquisition request is cached locally; after receiving the business data corresponding to the data resource acquisition request, the business data corresponding to the data resource acquisition request is cached locally;

当检测到接收所述业务数据的时刻与当前时刻之间的时间间隔大于预设时间间隔时,将缓存的所述业务数据、该业务数据对应的数据资源获取请求删除。When it is detected that the time interval between the time when the service data is received and the current time is greater than the preset time interval, the cached service data and the data resource acquisition request corresponding to the service data are deleted.

关于装置中的各模块的处理流程、以及各模块之间的交互流程的描述可以参照上述方法实施例中的相关说明,这里不再详述。For the description of the processing flow of each module in the apparatus and the interaction flow between the modules, reference may be made to the relevant descriptions in the foregoing method embodiments, which will not be described in detail here.

基于同一技术构思,本申请实施例还提供了一种电子设备。参照图4所示,为本申请实施例提供的电子设备的结构示意图,包括处理器401、存储器402、和总线403。其中,存储器402用于存储执行指令,包括内存4021和外部存储器4022;这里的内存4021也称内存储器,用于暂时存放处理器401中的运算数据,以及与硬盘等外部存储器4022交换的数据,处理器401通过内存4021与外部存储器4022进行数据交换,当电子设备400运行时,处理器401与存储器402之间通过总线403通信,使得处理器401在执行以下指令:Based on the same technical concept, the embodiments of the present application also provide an electronic device. Referring to FIG. 4 , a schematic structural diagram of an electronic device provided in an embodiment of the present application includes a processor 401 , a memory 402 , and a bus 403 . Among them, the memory 402 is used to store the execution instructions, including the memory 4021 and the external memory 4022; the memory 4021 here is also called the internal memory, which is used to temporarily store the operation data in the processor 401 and the data exchanged with the external memory 4022 such as the hard disk, The processor 401 exchanges data with the external memory 4022 through the memory 4021. When the electronic device 400 is running, the processor 401 communicates with the memory 402 through the bus 403, so that the processor 401 executes the following instructions:

响应目标链接的点击操作,获取所述目标链接对应的超文件标记语言html文档,并根据所述html文档加载业务模板界面;以及,基于所述目标链接,确定所述目标链接对应的至少一个第一统一资源定位符URL,并基于所述至少一个第一URL发起数据资源获取请求;In response to the click operation of the target link, obtain a hyperfile markup language html document corresponding to the target link, and load a business template interface according to the html document; and, based on the target link, determine at least one first corresponding to the target link. a Uniform Resource Locator URL, and initiates a data resource acquisition request based on the at least one first URL;

在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据。After the service template interface is loaded according to the html document and the service data corresponding to the data resource acquisition request is received, the service data is loaded in the service template interface.

一种可能的实施方式中,处理器401执行的指令中,所述根据所述目标链接,确定所述目标链接对应的至少一个第一URL,包括:In a possible implementation manner, in the instruction executed by the processor 401, the at least one first URL corresponding to the target link is determined according to the target link, including:

根据所述目标链接,查找预先为所述目标链接配置的所述至少一个第一URL。According to the target link, the at least one first URL preconfigured for the target link is searched for.

一种可能的实施方式中,处理器401执行的指令中,所述在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据,包括:In a possible implementation manner, in the instructions executed by the processor 401, after the service template interface is loaded according to the html document and the service data corresponding to the data resource acquisition request is received, The business template interface loads the business data, including:

在加载完所述html文档所对应的业务模板界面之后,确定所述html文档对应的第二URL;所述第二URL属于所述至少一个第一URL;After the service template interface corresponding to the html document is loaded, a second URL corresponding to the html document is determined; the second URL belongs to the at least one first URL;

在所述业务模板界面加载接收到的所述第二URL对应的业务数据。The received service data corresponding to the second URL is loaded on the service template interface.

一种可能的实施方式中,处理器401执行的指令中,所述在所述业务模板界面加载接收到的所述第二URL对应的业务数据,包括:In a possible implementation manner, in the instruction executed by the processor 401, the service data corresponding to the second URL is loaded in the service template interface, including:

在基于所述至少一个第一URL发起数据资源获取请求后,从缓存到本地的所述数据资源获取请求对应的业务数据中,获取所述第二URL对应的业务数据,在所述业务模板界面加载接收到的所述第二URL对应的业务数据。After initiating a data resource acquisition request based on the at least one first URL, acquire the service data corresponding to the second URL from the service data corresponding to the data resource acquisition request cached locally, and in the service template interface Loading the received service data corresponding to the second URL.

一种可能的实施方式中,处理器401执行的指令中,所述方法还包括:In a possible implementation manner, in the instructions executed by the processor 401, the method further includes:

若检测到缓存到本地的所述第二URL对应的业务数据的接收时刻与当前时刻之间的时间间隔大于预设时间间隔,基于所述第二URL再次发起数据资源获取请求,并在所述业务模板界面加载接收到的业务数据。If it is detected that the time interval between the receiving time of the service data corresponding to the second URL cached locally and the current time is greater than the preset time interval, the data resource acquisition request is re-initiated based on the second URL, and the The business template interface loads the received business data.

一种可能的实施方式中,处理器401执行的指令中,所述方法还包括:In a possible implementation manner, in the instructions executed by the processor 401, the method further includes:

所述数据资源获取请求缓存在本地;在接收到所述数据资源获取请求对应的业务数据后,将该数据资源获取请求对应的业务数据缓存在本地;The data resource acquisition request is cached locally; after receiving the business data corresponding to the data resource acquisition request, the business data corresponding to the data resource acquisition request is cached locally;

当检测到接收所述业务数据的时刻与当前时刻之间的时间间隔大于预设时间间隔时,将缓存的所述业务数据、该业务数据对应的数据资源获取请求删除。When it is detected that the time interval between the time when the service data is received and the current time is greater than the preset time interval, the cached service data and the data resource acquisition request corresponding to the service data are deleted.

本公开实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的数据加载方法的步骤。其中,该存储介质可以是易失性或非易失的计算机可读取存储介质。Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the data loading method described in the foregoing method embodiments are executed. Wherein, the storage medium may be a volatile or non-volatile computer-readable storage medium.

本公开实施例所提供的数据加载方法的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行上述方法实施例中所述的数据加载方法的步骤,具体可参见上述方法实施例,在此不再赘述。The computer program product of the data loading method provided by the embodiments of the present disclosure includes a computer-readable storage medium storing program codes, and the instructions included in the program codes can be used to execute the steps of the data loading method described in the above method embodiments. , for details, refer to the foregoing method embodiments, which will not be repeated here.

本公开实施例还提供一种计算机程序,该计算机程序被处理器执行时实现前述实施例的任意一种方法。该计算机程序产品可以具体通过硬件、软件或其结合的方式实现。在一个可选实施例中,所述计算机程序产品具体体现为计算机存储介质,在另一个可选实施例中,计算机程序产品具体体现为软件产品,例如软件开发包(Software DevelopmentKit,SDK)等等。Embodiments of the present disclosure also provide a computer program, which implements any one of the methods in the foregoing embodiments when the computer program is executed by a processor. The computer program product can be specifically implemented by hardware, software or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), etc. .

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system and device described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here. In the several embodiments provided by the present disclosure, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. The apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-OnlyMemory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium. Based on this understanding, the technical solutions of the present disclosure can be embodied in the form of software products in essence, or the parts that make contributions to the prior art or the parts of the technical solutions. The computer software products are stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, removable hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.

最后应说明的是:以上所述实施例,仅为本公开的具体实施方式,用以说明本公开的技术方案,而非对其限制,本公开的保护范围并不局限于此,尽管参照前述实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本公开实施例技术方案的精神和范围,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应所述以权利要求的保护范围为准。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present disclosure, and are used to illustrate the technical solutions of the present disclosure, but not to limit them. The protection scope of the present disclosure is not limited to this, although the aforementioned The embodiments describe the present disclosure in detail, and those skilled in the art should understand that: any person skilled in the art can still modify the technical solutions described in the foregoing embodiments within the technical scope disclosed by the present disclosure. Or can easily think of changes, or equivalently replace some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be covered in the present disclosure. within the scope of protection. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims (10)

1.一种数据加载方法,其特征在于,包括:1. a data loading method, is characterized in that, comprises: 响应目标链接的点击操作,获取所述目标链接对应的超文件标记语言html文档,并根据所述html文档加载业务模板界面;以及,基于所述目标链接,确定所述目标链接对应的至少一个第一统一资源定位符URL,并基于所述至少一个第一URL发起数据资源获取请求;In response to the click operation of the target link, obtain a hyperfile markup language html document corresponding to the target link, and load a business template interface according to the html document; and, based on the target link, determine at least one first corresponding to the target link. a Uniform Resource Locator URL, and initiates a data resource acquisition request based on the at least one first URL; 在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据。After the service template interface is loaded according to the html document and the service data corresponding to the data resource acquisition request is received, the service data is loaded in the service template interface. 2.根据权利要求1所述的方法,其特征在于,所述根据所述目标链接,确定所述目标链接对应的至少一个第一URL,包括:2. The method according to claim 1, wherein the determining according to the target link at least one first URL corresponding to the target link comprises: 根据所述目标链接,查找预先为所述目标链接配置的所述至少一个第一URL。According to the target link, the at least one first URL preconfigured for the target link is searched for. 3.根据权利要求1所述的方法,其特征在于,所述在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据,包括:3. The method according to claim 1, characterized in that, after loading the business template interface according to the html document and receiving business data corresponding to the data resource acquisition request, in the business The template interface loads the business data, including: 在加载完所述html文档所对应的业务模板界面之后,确定所述html文档对应的第二URL;所述第二URL属于所述至少一个第一URL;After the service template interface corresponding to the html document is loaded, a second URL corresponding to the html document is determined; the second URL belongs to the at least one first URL; 在所述业务模板界面加载接收到的所述第二URL对应的业务数据。The received service data corresponding to the second URL is loaded on the service template interface. 4.根据权利要求3所述的方法,其特征在于,所述在所述业务模板界面加载接收到的所述第二URL对应的业务数据,包括:4. The method according to claim 3, wherein loading the service data corresponding to the second URL received in the service template interface, comprising: 在基于所述至少一个第一URL发起数据资源获取请求后,从缓存到本地的所述数据资源获取请求对应的业务数据中,获取所述第二URL对应的业务数据,在所述业务模板界面加载接收到的所述第二URL对应的业务数据。After initiating a data resource acquisition request based on the at least one first URL, the service data corresponding to the second URL is acquired from the service data corresponding to the data resource acquisition request cached locally, and in the service template interface Loading the received service data corresponding to the second URL. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 4, wherein the method further comprises: 若检测到缓存到本地的所述第二URL对应的业务数据的接收时刻与当前时刻之间的时间间隔大于预设时间间隔,基于所述第二URL再次发起数据资源获取请求,并在所述业务模板界面加载接收到的业务数据。If it is detected that the time interval between the receiving time of the service data corresponding to the second URL cached locally and the current time is greater than the preset time interval, the data resource acquisition request is re-initiated based on the second URL, and the The business template interface loads the received business data. 6.根据权利要求1所述的方法,其特征在于,所述方法还包括:6. The method of claim 1, wherein the method further comprises: 所述数据资源获取请求缓存在本地;在接收到所述数据资源获取请求对应的业务数据后,将该数据资源获取请求对应的业务数据缓存在本地;The data resource acquisition request is cached locally; after receiving the business data corresponding to the data resource acquisition request, the business data corresponding to the data resource acquisition request is cached locally; 当检测到接收所述业务数据的时刻与当前时刻之间的时间间隔大于预设时间间隔时,将缓存的所述业务数据、该业务数据对应的数据资源获取请求删除。When it is detected that the time interval between the time when the service data is received and the current time is greater than the preset time interval, the cached service data and the data resource acquisition request corresponding to the service data are deleted. 7.一种数据加载装置,其特征在于,包括:7. A data loading device, comprising: 处理模块,用于响应目标链接的点击操作,获取所述目标链接对应的超文件标记语言html文档,并根据所述html文档加载业务模板界面;以及,基于所述目标链接,确定所述目标链接对应的至少一个第一统一资源定位符URL,并基于所述至少一个第一URL发起数据资源获取请求;a processing module, configured to respond to a click operation of a target link, obtain a hyperfile markup language html document corresponding to the target link, and load a business template interface according to the html document; and, based on the target link, determine the target link corresponding at least one first uniform resource locator URL, and initiate a data resource acquisition request based on the at least one first URL; 加载模块,用于在根据所述html文档加载完所述业务模板界面,并接收到所述数据资源获取请求对应的业务数据之后,在所述业务模板界面加载所述业务数据。The loading module is configured to load the business data in the business template interface after the business template interface is loaded according to the html document and business data corresponding to the data resource acquisition request is received. 8.根据权利要求1所述的方法,其特征在于,所述处理模块,还用于:8. The method according to claim 1, wherein the processing module is further configured to: 所述数据资源获取请求缓存在本地;在接收到所述数据资源获取请求对应的业务数据后,将该数据资源获取请求对应的业务数据缓存在本地;The data resource acquisition request is cached locally; after receiving the business data corresponding to the data resource acquisition request, the business data corresponding to the data resource acquisition request is cached locally; 当检测到接收所述业务数据的时刻与当前时刻之间的时间间隔大于预设时间间隔时,将缓存的所述业务数据、该业务数据对应的数据资源获取请求删除。When it is detected that the time interval between the time when the service data is received and the current time is greater than the preset time interval, the cached service data and the data resource acquisition request corresponding to the service data are deleted. 9.一种计算机设备,其特征在于,包括:处理器、存储器和总线,所述存储器存储有所述处理器可执行的机器可读指令,当计算机设备运行时,所述处理器与所述存储器之间通过总线通信,所述机器可读指令被所述处理器执行时执行如权利要求1至6任一所述的数据加载方法的步骤。9. A computer device, comprising: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the computer device runs, the processor and the The memories communicate with each other through a bus, and when the machine-readable instructions are executed by the processor, the steps of the data loading method according to any one of claims 1 to 6 are performed. 10.一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如权利要求1至6任意一项所述的数据加载方法的步骤。10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the data loading method according to any one of claims 1 to 6 is executed A step of.
CN202010093271.1A 2020-02-14 2020-02-14 Data loading method and device Active CN111273964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010093271.1A CN111273964B (en) 2020-02-14 2020-02-14 Data loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010093271.1A CN111273964B (en) 2020-02-14 2020-02-14 Data loading method and device

Publications (2)

Publication Number Publication Date
CN111273964A true CN111273964A (en) 2020-06-12
CN111273964B CN111273964B (en) 2024-03-08

Family

ID=70997139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010093271.1A Active CN111273964B (en) 2020-02-14 2020-02-14 Data loading method and device

Country Status (1)

Country Link
CN (1) CN111273964B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880860A (en) * 2020-07-28 2020-11-03 北京浪潮数据技术有限公司 Service processing method, device and related equipment
CN112395533A (en) * 2020-11-18 2021-02-23 北京字节跳动网络技术有限公司 Page loading method and device, computer equipment and readable storage medium

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020188633A1 (en) * 2001-06-06 2002-12-12 Craig Davis Generating HTML using templates and cached files
US7093193B1 (en) * 2000-10-30 2006-08-15 Microsoft Corporation String template pages for generating HTML document
CN101165685A (en) * 2006-10-19 2008-04-23 国际商业机器公司 Dynamic web page generation method and system
KR20090069589A (en) * 2007-12-26 2009-07-01 (주) 디아이지 커뮤니케이션 Mobile web page conversion system and method
CN103455473A (en) * 2012-05-30 2013-12-18 刘继业 WEB form definition and application method based on hypertext markup language (HTML)
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template
CN103984686A (en) * 2013-02-07 2014-08-13 阿里巴巴集团控股有限公司 Page-switching method and device
US20150188981A1 (en) * 2013-12-31 2015-07-02 Huawei Technologies Co., Ltd. Page processing method, apparatus, and system
CN104933020A (en) * 2015-07-17 2015-09-23 北京奇虎科技有限公司 Method and device for generating target documents based on template
CN105630992A (en) * 2015-12-25 2016-06-01 网易(杭州)网络有限公司 Scene display method and device in static page
WO2017107620A1 (en) * 2015-12-23 2017-06-29 北京奇虎科技有限公司 Method and system for loading page data
CN107122398A (en) * 2017-03-17 2017-09-01 武汉斗鱼网络科技有限公司 A kind of data display chart generation method and system
CN107291940A (en) * 2017-07-07 2017-10-24 腾讯科技(深圳)有限公司 Content of pages management method, device and associated server
US20170371974A1 (en) * 2016-06-22 2017-12-28 Guangzhou Ucweb Computer Technology Co., Ltd. Method for loading webpage, client and programmable device
CN108287839A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of page loading method and equipment
CN109036397A (en) * 2018-06-29 2018-12-18 百度在线网络技术(北京)有限公司 The method and apparatus of content for rendering
CN109684586A (en) * 2018-11-21 2019-04-26 平安科技(深圳)有限公司 Page layout optimization display methods, device, computer equipment and storage medium
CN110162720A (en) * 2019-04-16 2019-08-23 平安科技(深圳)有限公司 Webpage loading method, device, computer equipment and storage medium
CN110168539A (en) * 2017-01-13 2019-08-23 微软技术许可有限责任公司 Fast Page load in mixing application
CN110297999A (en) * 2019-05-09 2019-10-01 京东方科技集团股份有限公司 A kind of web page template generation method and device, webpage loading method and front-end server and Website server
CN110618850A (en) * 2019-08-30 2019-12-27 北京浪潮数据技术有限公司 UI (user interface) loading method and system and related device
CN110688600A (en) * 2019-09-09 2020-01-14 平安普惠企业管理有限公司 Online editing method, device and equipment based on HTML (Hypertext markup language) page and storage medium

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7093193B1 (en) * 2000-10-30 2006-08-15 Microsoft Corporation String template pages for generating HTML document
US20020188633A1 (en) * 2001-06-06 2002-12-12 Craig Davis Generating HTML using templates and cached files
CN101165685A (en) * 2006-10-19 2008-04-23 国际商业机器公司 Dynamic web page generation method and system
KR20090069589A (en) * 2007-12-26 2009-07-01 (주) 디아이지 커뮤니케이션 Mobile web page conversion system and method
CN103455473A (en) * 2012-05-30 2013-12-18 刘继业 WEB form definition and application method based on hypertext markup language (HTML)
CN103984686A (en) * 2013-02-07 2014-08-13 阿里巴巴集团控股有限公司 Page-switching method and device
CN103500199A (en) * 2013-09-24 2014-01-08 北京大学 Webpage rendering accelerating method and system based on pre-loaded Cloud template
US20150188981A1 (en) * 2013-12-31 2015-07-02 Huawei Technologies Co., Ltd. Page processing method, apparatus, and system
CN104933020A (en) * 2015-07-17 2015-09-23 北京奇虎科技有限公司 Method and device for generating target documents based on template
WO2017107620A1 (en) * 2015-12-23 2017-06-29 北京奇虎科技有限公司 Method and system for loading page data
CN105630992A (en) * 2015-12-25 2016-06-01 网易(杭州)网络有限公司 Scene display method and device in static page
US20170371974A1 (en) * 2016-06-22 2017-12-28 Guangzhou Ucweb Computer Technology Co., Ltd. Method for loading webpage, client and programmable device
CN108287839A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of page loading method and equipment
CN110168539A (en) * 2017-01-13 2019-08-23 微软技术许可有限责任公司 Fast Page load in mixing application
CN107122398A (en) * 2017-03-17 2017-09-01 武汉斗鱼网络科技有限公司 A kind of data display chart generation method and system
CN107291940A (en) * 2017-07-07 2017-10-24 腾讯科技(深圳)有限公司 Content of pages management method, device and associated server
CN109036397A (en) * 2018-06-29 2018-12-18 百度在线网络技术(北京)有限公司 The method and apparatus of content for rendering
CN109684586A (en) * 2018-11-21 2019-04-26 平安科技(深圳)有限公司 Page layout optimization display methods, device, computer equipment and storage medium
CN110162720A (en) * 2019-04-16 2019-08-23 平安科技(深圳)有限公司 Webpage loading method, device, computer equipment and storage medium
CN110297999A (en) * 2019-05-09 2019-10-01 京东方科技集团股份有限公司 A kind of web page template generation method and device, webpage loading method and front-end server and Website server
CN110618850A (en) * 2019-08-30 2019-12-27 北京浪潮数据技术有限公司 UI (user interface) loading method and system and related device
CN110688600A (en) * 2019-09-09 2020-01-14 平安普惠企业管理有限公司 Online editing method, device and equipment based on HTML (Hypertext markup language) page and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
追梦路上前行: "Django简介", pages 1 - 2 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111880860A (en) * 2020-07-28 2020-11-03 北京浪潮数据技术有限公司 Service processing method, device and related equipment
CN112395533A (en) * 2020-11-18 2021-02-23 北京字节跳动网络技术有限公司 Page loading method and device, computer equipment and readable storage medium

Also Published As

Publication number Publication date
CN111273964B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
JP6470735B2 (en) Estimating the visibility of content items
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN102831252B (en) A kind of method for upgrading index data base and device, searching method and system
CN108334517A (en) A kind of webpage rendering intent and relevant device
CN110866204A (en) Page processing method and device
US20200244752A1 (en) Processing an Event Stream Using Pattern Recognition
CN104572843A (en) Page loading method and device
CN106897336A (en) Web page files sending method, webpage rendering intent and device, webpage rendering system
WO2018228034A1 (en) Method and device for generating elastic search request
US20230394042A1 (en) Asynchronous Predictive Caching Of Content Listed In Search Results
CN109936605B (en) Method and device for loading interface data
US20240179224A1 (en) Systems and methods for rendering interactive web pages
CN105528369B (en) Webpage code-transferring method, device and server
CN111273964B (en) Data loading method and device
US20230409398A1 (en) Resource pre-fetch using age threshold
US8745245B1 (en) System and method for offline detection
US10574773B2 (en) Method, device, terminal, server and storage medium of processing network request and response
CN113656737B (en) Webpage content display method and device, electronic equipment and storage medium
US10095791B2 (en) Information search method and apparatus
CN113742551A (en) Dynamic data capture method based on script and puppeteer
CN116302175A (en) Concurrent network request processing method, device, equipment and storage medium
WO2016150017A1 (en) Page display method, device, system and non-volatile computer storage medium
CN107341263B (en) Static page data processing method and device
JP6683835B2 (en) Reduced waiting time when downloading electronic resources using multiple threads
US9692633B2 (en) Role-based resource navigation

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: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TG01 Patent term adjustment
TG01 Patent term adjustment