CN106951238B - Page display method and device - Google Patents
Page display method and device Download PDFInfo
- Publication number
- CN106951238B CN106951238B CN201710137203.9A CN201710137203A CN106951238B CN 106951238 B CN106951238 B CN 106951238B CN 201710137203 A CN201710137203 A CN 201710137203A CN 106951238 B CN106951238 B CN 106951238B
- Authority
- CN
- China
- Prior art keywords
- page
- preheating
- content
- warm
- attribute information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本公开是关于一种页面显示方法和装置,当监测到用户访问页面的操作时,页面的属性信息中包括该页面的预热页面的信息获取页面的属性信息,根据该页面的属性信息,显示该页面的预热页面的内容,并在预热页面的生效时间过期时,将当前页面的显示内容从该页面的预热页面的内容切换到该页面的内容。所述方法当页面的预热页面的生效时间过期时,能够自动从预热页面切换到该页面,不需要用户操作,带给用户更好的体验。
The present disclosure relates to a method and device for displaying a page. When an operation of a user accessing a page is monitored, the attribute information of the page includes the information of the preheating page of the page to obtain the attribute information of the page, and according to the attribute information of the page, the page is displayed. The content of the preheating page of the page, and when the effective time of the preheating page expires, the display content of the current page is switched from the content of the preheating page of the page to the content of the page. When the effective time of the preheating page of the page expires, the method can automatically switch from the preheating page to the page without user operation, thereby bringing a better experience to the user.
Description
技术领域technical field
本公开涉及通信技术,尤其涉及一种页面显示方法和装置。The present disclosure relates to communication technologies, and in particular, to a page display method and apparatus.
背景技术Background technique
现有终端设备上的应用(application,简称app)越来越多地采用(hypertextmarkup language,简称html5)来配合android/ios操作系统实现一些功能,例如,各种购物app。在购物app上,商家可能会定期做一些商品推广、促销活动,这些活动往往是有一定的实效性,且需要预先告知用户活动的存在,在活动正式开始之前,页面上不显示活动内容,只显示活动的宣传推广内容,在活动正式开始后,用户通过操作可以将该页面的内容从宣传推广内容切换到活动内容。An application (application, app for short) on an existing terminal device increasingly adopts hypertextmarkup language (html5 for short) to cooperate with the android/ios operating system to realize some functions, for example, various shopping apps. On the shopping app, merchants may regularly do some product promotion and promotion activities. These activities are often effective, and users need to be informed of the existence of the activity in advance. Before the official start of the activity, the content of the activity will not be displayed on the page, only Display the promotion content of the event. After the event officially starts, the user can switch the content of the page from the promotion content to the event content by operating.
发明内容SUMMARY OF THE INVENTION
为克服相关技术中存在的问题,本公开提供一种页面显示方法和装置。In order to overcome the problems existing in the related art, the present disclosure provides a page display method and apparatus.
根据本公开实施例的第一方面,提供一种页面显示方法,包括:According to a first aspect of the embodiments of the present disclosure, there is provided a page display method, including:
当监测到用户访问页面的操作时,获取所述页面的属性信息,所述页面的属性信息中包括所述页面的预热页面的信息;When monitoring the operation of the user accessing the page, obtain attribute information of the page, where the attribute information of the page includes the information of the preheating page of the page;
根据所述页面的属性信息,显示所述页面的预热页面的内容,并在所述预热页面的生效时间过期时,将当前页面的显示内容从所述页面的预热页面的内容切换到所述页面的内容。According to the attribute information of the page, the content of the preheating page of the page is displayed, and when the effective time of the preheating page expires, the display content of the current page is switched from the content of the preheating page of the page to the content of the preheating page of the page. the content of the page.
可选的,所述根据所述页面的属性信息,显示所述页面的预热页面的内容,包括:Optionally, the displaying the content of the preheating page of the page according to the attribute information of the page includes:
根据所述页面的属性信息判断所述页面是否有预热页面;Determine whether the page has a warm-up page according to the attribute information of the page;
当所述页面有预热页面时,根据所述预热页面的生效时间判断所述预热页面是否有效;When the page has a preheat page, determine whether the preheat page is valid according to the effective time of the preheat page;
当所述预热页面有效时,获取所述预热页面的内容,并显示所述预热页面的内容。When the warm-up page is valid, the content of the warm-up page is acquired, and the content of the warm-up page is displayed.
可选的,所述根据所述页面的属性信息判断所述页面是否有预热页面,包括:Optionally, the determining whether the page has a preheating page according to the attribute information of the page includes:
判断所述页面的属性信息中是否包含预热属性的标识;Judging whether the attribute information of the page contains the identifier of the preheating attribute;
当所述页面的属性信息中包含预热属性的标识时,确定所述页面有预热页面。When the attribute information of the page includes the identifier of the preheating attribute, it is determined that the page has a preheating page.
可选的,所述页面的预热页面为多个,每个预热页面的生效时间不同。Optionally, there are multiple preheating pages for the page, and each preheating page has a different effective time.
可选的,当所述多个预热页面的生效时间连续时,还包括:Optionally, when the effective times of the multiple warm-up pages are consecutive, the method further includes:
当当前预热页面的生效时间过期时,切换到下一个生效时间连续的预热页面。When the effective time of the current warm-up page expires, switch to the next warm-up page with continuous effective time.
可选的,所述方法还包括:Optionally, the method further includes:
生成所述预热页面、所述预热页面的生效时间和所述预热页面的预热属性的标识;generating an identifier of the warm-up page, an effective time of the warm-up page, and a warm-up attribute of the warm-up page;
将所述预热页面的内容和所述页面的内容存储在硬盘中,将所述预热页面的内容存储在内存中;storing the content of the warm-up page and the content of the page in a hard disk, and storing the content of the warm-up page in a memory;
将所述预热页面的生效时间和所述预热页面的预热属性的标识添加到所述页面的属性信息中。The effective time of the warm-up page and the identifier of the warm-up attribute of the warm-up page are added to the attribute information of the page.
根据本公开实施例的第二方面,提供一种页面显示装置,包括:According to a second aspect of the embodiments of the present disclosure, there is provided a page display apparatus, including:
第一获取模块,被配置为当监测到用户访问页面的操作时,获取所述页面的属性信息,所述页面的属性信息中包括所述页面的预热页面的信息;a first obtaining module, configured to obtain attribute information of the page when monitoring the operation of the user accessing the page, where the attribute information of the page includes information of the preheating page of the page;
显示模块,被配置为根据所述页面的属性信息,显示所述页面的预热页面的内容;a display module, configured to display the content of the warm-up page of the page according to the attribute information of the page;
第一切换模块,被配置为根据所述页面的属性信息,在所述预热页面的生效时间过期时,将当前页面的显示内容从所述页面的预热页面的内容切换到所述页面的内容。The first switching module is configured to switch the display content of the current page from the content of the preheating page of the page to the content of the preheating page of the page when the effective time of the preheating page expires according to the attribute information of the page. content.
可选的,所述显示模块,包括:Optionally, the display module includes:
第一判断子模块,被配置为根据所述页面的属性信息判断所述页面是否有预热页面;a first judging submodule, configured to judge whether the page has a preheating page according to the attribute information of the page;
第二判断子模块,被配置为当所述页面有预热页面时,根据所述预热页面的生效时间判断所述预热页面是否有效;The second judging submodule is configured to judge whether the preheating page is valid according to the effective time of the preheating page when the page has a preheating page;
获取子模块,被配置为当所述预热页面有效时,获取所述预热页面的内容;an obtaining submodule, configured to obtain the content of the warm-up page when the warm-up page is valid;
显示子模块,被配置为显示所述获取子模块获取的所述预热页面的内容。A display sub-module configured to display the content of the warm-up page acquired by the acquisition sub-module.
可选的,所述第一判断模块具体被配置为:Optionally, the first judgment module is specifically configured as:
判断所述页面的属性信息中是否包含预热属性的标识;Judging whether the attribute information of the page contains the identifier of the preheating attribute;
当所述页面的属性信息中包含预热属性的标识时,确定所述页面有预热页面。When the attribute information of the page includes the identifier of the preheating attribute, it is determined that the page has a preheating page.
可选的,所述页面的预热页面为多个,每个预热页面的生效时间不同。Optionally, there are multiple preheating pages for the page, and each preheating page has a different effective time.
可选的,当所述多个预热页面的生效时间连续时,还包括:Optionally, when the effective times of the multiple warm-up pages are consecutive, the method further includes:
第二切换模块,被配置为当当前预热页面的生效时间过期时,切换到下一个生效时间连续的预热页面。The second switching module is configured to switch to the next preheating page with continuous effective time when the effective time of the current preheating page expires.
可选的,所述装置还包括:Optionally, the device further includes:
生成模块,被配置为生成所述预热页面、所述预热页面的生效时间和所述预热页面的预热属性的标识;a generating module, configured to generate an identifier of the warm-up page, an effective time of the warm-up page, and a warm-up attribute of the warm-up page;
存储模块,被配置为将所述预热页面的内容和所述页面的内容存储在硬盘中,将所述预热页面的内容存储在内存中;a storage module, configured to store the content of the warm-up page and the content of the page in a hard disk, and store the content of the warm-up page in a memory;
添加模块,被配置为将所述预热页面的生效时间和所述预热页面的预热属性的标识添加到所述页面的属性信息中。The adding module is configured to add the effective time of the warm-up page and the identifier of the warm-up attribute of the warm-up page to the attribute information of the page.
根据本公开实施例的第三方面,提供一种页面显示装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided a page display apparatus, including:
存储器;memory;
被配置为存储处理器可执行指令的存储器;a memory configured to store processor-executable instructions;
其中,所述处理器被配置为:wherein the processor is configured to:
当监测到用户访问页面的操作时,获取所述页面的属性信息,所述页面的属性信息中包括所述页面的预热页面的信息;When monitoring the operation of the user accessing the page, obtain attribute information of the page, where the attribute information of the page includes the information of the preheating page of the page;
根据所述页面的属性信息,显示所述页面的预热页面的内容,并在所述预热页面的生效时间过期时,将当前页面的显示内容从所述页面的预热页面的内容切换到所述页面的内容。According to the attribute information of the page, the content of the preheating page of the page is displayed, and when the effective time of the preheating page expires, the display content of the current page is switched from the content of the preheating page of the page to the content of the preheating page of the page. the content of the page.
本公开的实施例提供的技术方案可以包括以下有益效果:当监测到用户访问页面的操作时,获取页面的属性信息,根据该页面的属性信息,显示该页面的预热页面的内容,并在预热页面的生效时间过期时,将当前页面的显示内容从该页面的预热页面的内容切换到该页面的内容。所述方法当页面的预热页面的生效时间过期时,能够自动从预热页面切换到该页面,不需要用户操作,带给用户更好的体验。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: when an operation of a user accessing a page is monitored, the attribute information of the page is acquired, and the content of the preheating page of the page is displayed according to the attribute information of the page, and the content of the preheating page of the page is displayed on the page. When the effective time of the warm-up page expires, the display content of the current page is switched from the content of the warm-up page of the page to the content of the page. When the effective time of the preheating page of the page expires, the method can automatically switch from the preheating page to the page without user operation, thereby bringing a better experience to the user.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
图1是根据一示例性实施例示出的一种页面显示方法的流程图。Fig. 1 is a flowchart of a method for displaying a page according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种页面显示方法的流程图。Fig. 2 is a flow chart of a method for displaying a page according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种页面显示方法的流程图。Fig. 3 is a flowchart of a method for displaying a page according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种页面显示装置的框图。Fig. 4 is a block diagram of a page display apparatus according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种页面显示装置的框图。Fig. 5 is a block diagram of a page display apparatus according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种页面显示装置的框图。Fig. 6 is a block diagram of a page display apparatus according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种页面显示装置的框图。Fig. 7 is a block diagram of a page display apparatus according to an exemplary embodiment.
图8是根据一示例性实施例示出的一种页面显示装置的实体框图。Fig. 8 is a physical block diagram of a page display apparatus according to an exemplary embodiment.
图9是根据一示例性实施例示出的一种页面显示装置800的框图。FIG. 9 is a block diagram of a
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with some aspects of the invention as recited in the appended claims.
图1是根据一示例性实施例示出的一种页面显示方法的流程图,该方法由终端设备执行,具体可以应用在终端设备的各app上,如图1所示,该页面显示方法包括以下步骤。Fig. 1 is a flowchart of a method for displaying a page according to an exemplary embodiment. The method is executed by a terminal device, and can be specifically applied to each app of the terminal device. As shown in Fig. 1, the method for displaying a page includes the following steps: step.
在步骤S101中,当监测到用户访问页面的操作时,获取该页面的属性信息,该页面的属性信息中包括该页面的预热页面的信息。In step S101, when an operation of a user accessing a page is monitored, attribute information of the page is acquired, and the attribute information of the page includes information of a preheating page of the page.
用户可以根据页面的统一资源定位符(Uniform Resource Locatorurl,简称URL)访问页面,当用户访问该页面时,先获取该页面的属性信息。该页面的属性信息中包括该页面的URL以及该页面的预热页面的信息,该页面的预热页面的信息包括该页面的预热页面的预热属性的标识(prepare_id)和预热页面的生效时间。预热页面主要显示商品推广、促销活动的信息。该页面可以是购物网站或购物app的页面,该页面可以由htlm或htlm5实现。The user can access the page according to the uniform resource locator (Uniform Resource Locatorurl, URL for short) of the page, and when the user accesses the page, the attribute information of the page is obtained first. The attribute information of the page includes the URL of the page and the information of the preheating page of the page, and the information of the preheating page of the page includes the identifier of the preheating attribute (prepare_id) of the preheating page of the page and the preheating page of the page. Effective time. The warm-up page mainly displays information about product promotion and promotional activities. The page can be a page of a shopping website or a shopping app, and the page can be implemented by htlm or htlm5.
在步骤S102中,根据该页面的属性信息,显示该页面的预热页面的内容,并在预热页面的生效时间过期时,将当前页面的显示内容从该页面的预热页面的内容切换到该页面的内容。In step S102, the content of the preheating page of the page is displayed according to the attribute information of the page, and when the effective time of the preheating page expires, the display content of the current page is switched from the content of the preheating page of the page to the content of the preheating page of the page. the content of this page.
其中,该页面的预热页面可能有一个或多个,每个预热页面都有一个预热属性的标识,该预热属性的标识可以唯一标识一个预热页面,且每个预热页面都有生效时间。当该页面的预热页面有多个时,该多个页面的生效时间不同,从而可以实现在不同的时间段显示不同的预热页面。Among them, there may be one or more preheating pages of the page, and each preheating page has an identifier of a preheating attribute, and the identifier of the preheating attribute can uniquely identify a preheating page, and each preheating page has an identifier of a preheating attribute. There is an effective time. When there are multiple preheating pages on the page, the effective times of the multiple pages are different, so that different preheating pages can be displayed in different time periods.
当该页面有多个预热页面时,且多个预热页面的生效时间连续时,可以在当前预热页面超期后,自动切换到下一个预热页面,带给用户更好的体验。When the page has multiple preheating pages, and the effective times of the multiple preheating pages are consecutive, after the current preheating page expires, it can automatically switch to the next preheating page, bringing users a better experience.
在显示预热页面的内容之前,需要获取预先页面的内容。一种实现方式中,该预热页面的内容预先存储在了内存中,后续可以直接从内存中读取该预热页面的内容,从而提高了获取预热页面的内容的速度。另一种实现方式中,从硬盘读取预热页面的内容,从硬盘读取数据的速度较慢,先将预热页面的内容从硬盘中读取到内容中,再从内存中读取预热页面的内容。Before displaying the content of the preheating page, the content of the preheating page needs to be obtained. In an implementation manner, the content of the preheated page is pre-stored in the memory, and the content of the preheated page can be directly read from the memory subsequently, thereby improving the speed of acquiring the content of the preheated page. In another implementation manner, the content of the preheated page is read from the hard disk, and the speed of reading data from the hard disk is relatively slow. The content of the hot page.
本实施例中,当监测到用户访问页面的操作时,页面的属性信息中包括该页面的预热页面的信息获取页面的属性信息,根据该页面的属性信息,显示该页面的预热页面的内容,并在预热页面的生效时间过期时,将当前页面的显示内容从该页面的预热页面的内容切换到该页面的内容。所述方法当页面的预热页面的生效时间过期时,能够自动从预热页面切换到该页面,不需要用户操作,带给用户更好的体验。In this embodiment, when the user's operation of accessing a page is monitored, the attribute information of the page includes the information of the preheating page of the page to obtain the attribute information of the page, and according to the attribute information of the page, the preheating page of the page is displayed. content, and when the effective time of the warm-up page expires, the display content of the current page is switched from the content of the warm-up page of the page to the content of the page. When the effective time of the preheating page of the page expires, the method can automatically switch from the preheating page to the page without user operation, thereby bringing a better experience to the user.
在图1所示实施例的基础上,图2是根据一示例性实施例示出的一种页面显示方法的流程图,如图2所示,该页面显示方法包括以下步骤。Based on the embodiment shown in FIG. 1 , FIG. 2 is a flowchart of a page display method according to an exemplary embodiment. As shown in FIG. 2 , the page display method includes the following steps.
在步骤S201中,当监测到用户访问页面的操作时,获取该页面的属性信息,该页面的属性信息中包括该页面的预热页面的信息。In step S201, when the operation of the user accessing the page is monitored, attribute information of the page is acquired, and the attribute information of the page includes information of the preheating page of the page.
在步骤S202中,根据该页面的属性信息判断该页面是否有预热页面。In step S202, it is determined whether the page has a preheating page according to the attribute information of the page.
具体可以判断页面的属性信息中是否包含预热属性的标识,如果该页面的属性信息中包含预热属性的标识,则确定该页面有预热页面,如果该页面的属性信息中不包含预热属性的标识,则确定该页面没有预热页面。当该页面没有预热页面时,执行步骤S205,当该页面有预热页面时,执行步骤S203。Specifically, it can be determined whether the attribute information of the page contains the identifier of the preheating attribute. If the attribute information of the page contains the identifier of the preheating attribute, it is determined that the page has a preheating page. If the attribute information of the page does not contain the preheating attribute attribute identifier, it is determined that the page does not preheat the page. When the page does not have a preheating page, step S205 is executed, and when the page has a preheating page, step S203 is executed.
在步骤S203中,根据预热页面的生效时间判断预热页面是否有效。In step S203, whether the preheating page is valid is determined according to the effective time of the preheating page.
判断当前时间是否属于预热页面的生效时间,如果当前页面属于预热页面的生效时间,则确定预热页面有效,如果当前时间不属于预热页面的生效时间,则确定该预热页面无效,预热页面无效包括两种情况,一种方式是当前时间超过了预热页面的生效时间。另一种情况是,当前时间还没有到预热页面的生效时间。当预热页面有效时,执行步骤S204,当预热页面无效时执行步骤S205。Determine whether the current time belongs to the effective time of the preheating page. If the current page belongs to the effective time of the preheating page, it is determined that the preheating page is valid. If the current time does not belong to the effective time of the preheating page, it is determined that the preheating page is invalid. There are two situations in which the preheat page is invalid. One way is that the current time exceeds the effective time of the preheat page. Another situation is that the current time has not reached the effective time of the preheating page. When the preheat page is valid, step S204 is performed, and when the preheat page is invalid, step S205 is performed.
在步骤S204中,获取预热页面的内容,并显示预热页面的内容。In step S204, the content of the warm-up page is acquired, and the content of the warm-up page is displayed.
可以从内存或硬盘中获取预热页面的内同。The internals of the warm-up pages can be obtained from memory or hard disk.
在步骤S205中,获取该页面的内容,并显示该页面的内容。In step S205, the content of the page is acquired, and the content of the page is displayed.
该页面的内容存储在硬盘上,该页面的内容没有有效时间,也不会过期。The content of this page is stored on the hard disk, and the content of this page has no valid time and will not expire.
在步骤S206中,当预热页面的生效时间过期时,将当前页面的显示内容从预热页面的内容切换到该页面的内容。In step S206, when the effective time of the warm-up page expires, the display content of the current page is switched from the content of the warm-up page to the content of the page.
当该页面有多个预热页面时,且多个预热页面的生效时间连续时,可以在当前预热页面超期后,自动切换到下一个预热页面,带给用户更好的体验。When the page has multiple preheating pages, and the effective times of the multiple preheating pages are consecutive, after the current preheating page expires, it can automatically switch to the next preheating page, bringing users a better experience.
本实施例中,当监测到用户访问页面的操作时,获取页面的属性信息,该页面的属性信息中包括该页面的预热页面的信息,根据页面的属性信息判断该页面是否有预热页面,当该页面有预热页面时,根据预热页面的生效时间判断预热页面是否有效,当预热页面有效时,获取预热页面的内容,并显示预热页面的内容,当预热页面的生效时间过期时,将当前页面的显示内容从预热页面的内容切换到页面的内容。所述方法当页面的预热页面的生效时间过期时,能够自动从预热页面切换到该页面,不需要用户操作,带给用户更好的体验。In this embodiment, when the operation of the user accessing the page is monitored, the attribute information of the page is obtained, the attribute information of the page includes the information of the preheating page of the page, and whether the page has a preheating page is judged according to the attribute information of the page , when the page has a preheating page, judge whether the preheating page is valid according to the effective time of the preheating page. When the preheating page is valid, obtain the content of the preheating page and display the content of the preheating page. When the effective time expires, the display content of the current page is switched from the content of the preheating page to the content of the page. When the effective time of the preheating page of the page expires, the method can automatically switch from the preheating page to the page without user operation, thereby bringing a better experience to the user.
在图2所示实施例的基础上,图3是根据一示例性实施例示出的一种页面显示方法的流程图,如图2所示,该页面显示方法包括以下步骤。Based on the embodiment shown in FIG. 2 , FIG. 3 is a flowchart of a page display method according to an exemplary embodiment. As shown in FIG. 2 , the page display method includes the following steps.
在步骤S301中,生成页面的预热页面、预热页面的生效时间和预热页面的预热属性的标识。In step S301, the preheating page of the page, the effective time of the preheating page, and the preheating attribute identifier of the preheating page are generated.
通过预先生成预热页面,后续根据预热页面的生效时间显示预热页面,By generating the preheating page in advance, and then displaying the preheating page according to the effective time of the preheating page,
在步骤S302中,将预热页面的内容和该页面的内容存储在硬盘中,将预热页面的内容存储在内存中。In step S302, the content of the preheated page and the content of the page are stored in the hard disk, and the content of the preheated page is stored in the memory.
通过将预热页面存储到内存中,可以提高访问预热页面的速度。By storing the warm-up pages in memory, the speed of accessing the warm-up pages can be improved.
在步骤S303中,将预热页面的生效时间和预热页面的预热属性的标识添加到该页面的属性信息中。In step S303, the effective time of the preheating page and the identifier of the preheating attribute of the preheating page are added to the attribute information of the page.
在步骤S304中,当监测到用户访问该页面的操作时,获取该页面的属性信息,该页面的属性信息中包括该页面的预热页面的信息。In step S304, when the user's operation of accessing the page is monitored, attribute information of the page is acquired, and the attribute information of the page includes the information of the preheating page of the page.
在步骤S305中,判断该页面的属性信息中是否包含预热属性的标识。In step S305, it is determined whether the attribute information of the page contains the identifier of the preheating attribute.
当该页面的属性信息中包含预热属性的标识时,执行步骤S306,当页面的属性信息中不包含预热属性的标识时,执行步骤S307。When the attribute information of the page contains the identifier of the preheating attribute, step S306 is executed, and when the attribute information of the page does not contain the identifier of the preheating attribute, step S307 is executed.
在步骤S306中,确定该页面有预热页面。In step S306, it is determined that the page has a warm-up page.
步骤S306之后执行步骤S308。Step S308 is executed after step S306.
在步骤S307中,确定该页面没有预热页面。In step S307, it is determined that the page is not preheated.
步骤S307后执行步骤S310。Step S310 is executed after step S307.
在步骤S308中,根据预热页面的生效时间判断预热页面是否有效。In step S308, it is determined whether the preheating page is valid according to the valid time of the preheating page.
当预热页面有效时,执行步骤S309,当预热页面无效时,执行步骤S310。When the preheat page is valid, step S309 is performed, and when the preheat page is invalid, step S310 is performed.
在步骤S309中,从内存中获取预热页面的内容,并显示预热页面的内容。In step S309, the content of the preheating page is acquired from the memory, and the content of the preheating page is displayed.
在步骤S309之后,执行步骤S311。After step S309, step S311 is performed.
在步骤S310中,获取该页面的内容,并显示该页面的内容。In step S310, the content of the page is acquired, and the content of the page is displayed.
在步骤S311中,当预热页面的生效时间过期时,将当前页面的显示内容从预热页面的内容切换到该页面的内容。In step S311, when the effective time of the warm-up page expires, the display content of the current page is switched from the content of the warm-up page to the content of the page.
本实施例中,通过预先生成页面的预热页面和预热页面的生效时间,并将预热页面的内容和该页面的内容存储在硬盘中,同时将预热页面的内容存储在内存中,后续根据该页面的属性信息判断页面是否有预热页面,当页面有预热页面且预热页面的有效时间没有过期时,获取预热页面的内容,并显示预热页面的内容,当预热页面的生效时间过期时,将当前页面的显示内容从预热页面的内容切换到该页面的内容。所述方法当页面的预热页面的生效时间过期时,能够自动从预热页面切换到该页面,不需要用户操作,带给用户更好的体验。In this embodiment, by pre-generating the preheating page of the page and the effective time of the preheating page, storing the content of the preheating page and the content of the page in the hard disk, and simultaneously storing the content of the preheating page in the memory, Subsequently, according to the attribute information of the page, it is judged whether the page has a preheating page. When the page has a preheating page and the valid time of the preheating page has not expired, the content of the preheating page is obtained, and the content of the preheating page is displayed. When the effective time of the page expires, the display content of the current page is switched from the content of the preheating page to the content of this page. When the effective time of the preheating page of the page expires, the method can automatically switch from the preheating page to the page without user operation, thereby bringing a better experience to the user.
图4是根据一示例性实施例示出的一种页面显示装置的框图,如图4所示,本实施例的装置包括:FIG. 4 is a block diagram of a page display apparatus according to an exemplary embodiment. As shown in FIG. 4 , the apparatus of this embodiment includes:
第一获取模块11,被配置为当监测到用户访问页面的操作时,获取所述页面的属性信息,所述页面的属性信息中包括所述页面的预热页面的信息;The first obtaining
显示模块12,被配置为根据所述页面的属性信息,显示所述页面的预热页面的内容;The
第一切换模块13,被配置为根据所述页面的属性信息,在所述预热页面的生效时间过期时,将当前页面的显示内容从所述页面的预热页面的内容切换到所述页面的内容。The
可选的,所述页面的预热页面为多个,每个预热页面的生效时间不同。Optionally, there are multiple preheating pages for the page, and each preheating page has a different effective time.
图5是根据一示例性实施例示出的一种页面显示装置的框图,如图5所示,本实施的装置在图4所示装置的基础上,所述显示模块12包括:FIG. 5 is a block diagram of a page display apparatus according to an exemplary embodiment. As shown in FIG. 5 , the apparatus of this implementation is based on the apparatus shown in FIG. 4 , and the
第一判断子模块121,被配置为根据所述页面的属性信息判断所述页面是否有预热页面;The first judging
第二判断子模块122,被配置为当所述页面有预热页面时,根据所述预热页面的生效时间判断所述预热页面是否有效;The second judging sub-module 122 is configured to judge whether the preheating page is valid according to the effective time of the preheating page when the page has a preheating page;
获取子模块123,被配置为当所述预热页面有效时,获取所述预热页面的内容;The obtaining sub-module 123 is configured to obtain the content of the warm-up page when the warm-up page is valid;
显示子模块124,被配置为显示所述获取子模块获取的所述预热页面的内容。The
可选的,所述第一判断子模块121具体被配置为:Optionally, the
判断所述页面的属性信息中是否包含预热属性的标识;Judging whether the attribute information of the page contains the identifier of the preheating attribute;
当所述页面的属性信息中包含预热属性的标识时,确定所述页面有预热页面。When the attribute information of the page includes the identifier of the preheating attribute, it is determined that the page has a preheating page.
图6是根据一示例性实施例示出的一种页面显示装置的框图,如图6所示,本实施的装置在图4所示装置的基础上,当所述页面的预热页面为多个,且多个预热页面的生效时间连续时,还包括:FIG. 6 is a block diagram of a page display apparatus according to an exemplary embodiment. As shown in FIG. 6 , the apparatus of this implementation is based on the apparatus shown in FIG. , and when the effective times of multiple preheating pages are consecutive, it also includes:
第二切换模块14,被配置为当当前预热页面的生效时间过期时,切换到下一个生效时间连续的预热页面。The
图7是根据一示例性实施例示出的一种页面显示装置的框图,如图7所示,本实施的装置在图4所示装置的基础上,还包括:FIG. 7 is a block diagram of a page display apparatus according to an exemplary embodiment. As shown in FIG. 7 , the apparatus of this implementation, on the basis of the apparatus shown in FIG. 4 , further includes:
生成模块15,被配置为生成所述预热页面、所述预热页面的生效时间和所述预热页面的预热属性的标识;The generating
存储模块16,被配置为将所述预热页面的内容和所述页面的内容存储在硬盘中,将所述预热页面的内容存储在内存中;The
添加模块17,被配置为将所述预热页面的生效时间和所述预热页面的预热属性的标识添加到所述页面的属性信息中。The adding
图4至图7所示的页面显示装置中的各功能模块,可用于执行上述图1至图3所示的页面显示方法,具体实现方式和技术效果类似,请参照上述方法实施例,此处不再赘述。Each functional module in the page display device shown in FIG. 4 to FIG. 7 can be used to execute the page display method shown in FIG. 1 to FIG. 3. The specific implementation and technical effects are similar. Please refer to the above method embodiments, here No longer.
图8是根据一示例性实施例示出的一种页面显示装置的实体框图,如图8所示,页面显示装置300包括:处理器31和用于存储处理器31可执行指令的存储器32,存储器32通过系统总线与处理器31连接并通信。FIG. 8 is a physical block diagram of a page display apparatus according to an exemplary embodiment. As shown in FIG. 8 , the
其中,处理器31被配置为:Wherein, the
当监测到用户访问页面的操作时,获取所述页面的属性信息,所述页面的属性信息中包括所述页面的预热页面的信息;When monitoring the operation of the user accessing the page, obtain attribute information of the page, where the attribute information of the page includes the information of the preheating page of the page;
根据所述页面的属性信息,显示所述页面的预热页面的内容,并在所述预热页面的生效时间过期时,将当前页面的显示内容从所述页面的预热页面的内容切换到所述页面的内容。According to the attribute information of the page, the content of the preheating page of the page is displayed, and when the effective time of the preheating page expires, the display content of the current page is switched from the content of the preheating page of the page to the content of the preheating page of the page. the content of the page.
应理解,上述实施例中,处理器可以是中央处理单元(英文:Central ProcessingUnit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital SignalProcessor,简称:DSP)、专用集成电路(英文:Application Specific IntegratedCircuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,而前述的存储器可以是只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:random access memory,简称:RAM)、快闪存储器、硬盘或者固态硬盘。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。It should be understood that, in the above embodiment, the processor may be a central processing unit (English: Central Processing Unit, referred to as: CPU), or other general-purpose processors, digital signal processors (English: Digital SignalProcessor, referred to as: DSP), dedicated Integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) and so on. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., and the aforementioned memory can be a read-only memory (English: read-only memory, abbreviation: ROM), random access memory (English: read-only memory, abbreviation: ROM), random access memory (English : random access memory, referred to as: RAM), flash memory, hard disk or solid state disk. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
图9是根据一示例性实施例示出的一种页面显示装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 9 is a block diagram of a
参照图9,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。9, the
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行命令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。The
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的命令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件806为装置800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 816 is configured to facilitate wired or wireless communication between
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述图1至图3所示的页面显示方法。In an exemplary embodiment,
在示例性实施例中,还提供了一种包括命令的非临时性计算机可读存储介质,例如包括命令的存储器804,上述命令可由装置800的处理器820执行以完成上述图1至图3所示的页面显示方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including commands, such as a
一种非临时性计算机可读存储介质,当所述存储介质中的命令由页面显示装置的处理器执行时,使得页面显示装置能够执行图1至图3所示的页面显示方法。A non-transitory computer-readable storage medium, when a command in the storage medium is executed by a processor of a page display device, enables the page display device to execute the page display method shown in FIG. 1 to FIG. 3 .
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求书指出。Other embodiments of the invention will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or conventional techniques in the art not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求书来限制。It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710137203.9A CN106951238B (en) | 2017-03-09 | 2017-03-09 | Page display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710137203.9A CN106951238B (en) | 2017-03-09 | 2017-03-09 | Page display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106951238A CN106951238A (en) | 2017-07-14 |
CN106951238B true CN106951238B (en) | 2020-11-20 |
Family
ID=59466723
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710137203.9A Active CN106951238B (en) | 2017-03-09 | 2017-03-09 | Page display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106951238B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111190673B (en) * | 2019-12-20 | 2023-07-25 | 上海淇玥信息技术有限公司 | Page display method and device based on operation monitoring and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004259235A (en) * | 2003-02-28 | 2004-09-16 | Nippon Telegr & Teleph Corp <Ntt> | Web page update management system, update management method, program of this method, recording medium recording this program |
US7051080B1 (en) * | 2000-08-04 | 2006-05-23 | Oracle International Corporation | Techniques for navigating in mobile applications |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001344436A (en) * | 2000-06-02 | 2001-12-14 | Casio Comput Co Ltd | Site access control method and program recording medium |
CN103200206B (en) * | 2012-01-06 | 2016-10-26 | 腾讯科技(深圳)有限公司 | A kind of method of display advertisement and client |
CN104008211A (en) * | 2014-06-23 | 2014-08-27 | 可牛网络技术(北京)有限公司 | Advertisement intercepting method and device |
CN105472033B (en) * | 2015-12-31 | 2020-10-16 | 腾讯科技(深圳)有限公司 | Media information processing method and mobile terminal |
CN106339235B (en) * | 2016-08-15 | 2019-11-26 | 百度在线网络技术(北京)有限公司 | A kind of method for showing interface and device |
-
2017
- 2017-03-09 CN CN201710137203.9A patent/CN106951238B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7051080B1 (en) * | 2000-08-04 | 2006-05-23 | Oracle International Corporation | Techniques for navigating in mobile applications |
JP2004259235A (en) * | 2003-02-28 | 2004-09-16 | Nippon Telegr & Teleph Corp <Ntt> | Web page update management system, update management method, program of this method, recording medium recording this program |
Also Published As
Publication number | Publication date |
---|---|
CN106951238A (en) | 2017-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017113666A1 (en) | Application interface switching method and device | |
US20170060260A1 (en) | Method and device for connecting external equipment | |
CN107205084B (en) | Application program network speed processing method, device and terminal | |
CN107562268B (en) | Operation execution method, device and storage medium | |
CN106790043B (en) | Method and device for sending message in live broadcast application | |
CN107094094B (en) | Application networking method and device and terminal | |
EP2981116A1 (en) | Method and apparatus for accessing wi-fi network and computer program product | |
CN108804179B (en) | Method, device, terminal and storage medium for displaying notification bar message | |
CN110262692B (en) | Touch screen scanning method, device and medium | |
EP3015965A1 (en) | Method and apparatus for prompting device connection | |
JP6349040B2 (en) | Remind method and apparatus, program and recording medium | |
CN106201734A (en) | Sharing files method and device | |
CN107301242A (en) | Method, device and the storage medium of page jump | |
US10572308B2 (en) | Method and apparatus for monitoring virtual document object model | |
EP3068097B1 (en) | Method and device for filtering information | |
CN105630141A (en) | Information browsing reminding method and device | |
CN107241439B (en) | Message push method and device for H5 page | |
CN106250772B (en) | Bluetooth scanning control method, device and terminal equipment | |
CN106951238B (en) | Page display method and device | |
CN106255063A (en) | Address sending method and equipment | |
CN107832112B (en) | Wallpaper setting method and device | |
CN107483605B (en) | File download method and device, storage medium | |
CN105955097A (en) | Timing management method, timing management device and mobile terminal | |
CN105867918B (en) | Application notification prompting method and device | |
CN106060104B (en) | Application management method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |