CN109740085B - Page content display method, device, equipment and storage medium - Google Patents

Page content display method, device, equipment and storage medium Download PDF

Info

Publication number
CN109740085B
CN109740085B CN201910023234.0A CN201910023234A CN109740085B CN 109740085 B CN109740085 B CN 109740085B CN 201910023234 A CN201910023234 A CN 201910023234A CN 109740085 B CN109740085 B CN 109740085B
Authority
CN
China
Prior art keywords
display
content category
target
source data
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910023234.0A
Other languages
Chinese (zh)
Other versions
CN109740085A (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 CN201910023234.0A priority Critical patent/CN109740085B/en
Publication of CN109740085A publication Critical patent/CN109740085A/en
Application granted granted Critical
Publication of CN109740085B publication Critical patent/CN109740085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a method, a device, equipment and a storage medium for displaying page content, wherein the method comprises the following steps: acquiring a target content category; caching the source data information of all display items under the target content category and the alternative content category associated with the target content category; selecting target source data respectively corresponding to the target content category and the alternative content category according to the display template and the size of the current display interface; and generating a current display interface according to the respective display template, and generating an alternative display page matched with the alternative content category in advance. According to the technical scheme provided by the embodiment of the disclosure, the source data information under the target content category and the alternative content category is cached, the current display page and the alternative display page are generated according to the source data and the display template, the alternative display page is configured in advance, the loading waiting time is reduced, meanwhile, excessive memory resources are not occupied, and the use of equipment is prevented from being blocked.

Description

Page content display method, device, equipment and storage medium
Technical Field
The present disclosure relates to internet technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying page content.
Background
With the rapid development of science and technology, the internet covers more and more widely, plays a very important role in daily life of people, and browsing websites to obtain various information also becomes an essential information source in life of people.
The internet website classifies related contents under different titles according to different contents, each title has a plurality of subtitles, and clicking a certain subtitle can pop up a corresponding content page, wherein each content page comprises one or more instances. When a certain subtitle or a sliding content page is clicked to view a content page under a target subtitle, source data of examples under all subtitles at the same level can be automatically cached, for example, under a 'news' title, a plurality of subtitles under 'domestic', 'foreign' and 'military' exist, when the subtitle 'domestic' or the sliding content page is clicked to view the examples under the subtitle 'domestic', the source data of all examples under the title 'news' can be cached, in addition, a display page corresponding to the example can be configured in advance, and therefore a user can conveniently view the source data at any time.
In the process of implementing the present disclosure, the inventors found that the prior art has the following defects: most users cannot open all subtitles under a certain title, the cached content is too much, a large amount of disk space is occupied, meanwhile, the configured display pages are too much, a large amount of memory is occupied, the operation load of browsing equipment is increased, and the phenomena that the browsing equipment is blocked or even forcibly killed by a system and the like easily occur.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, equipment and a storage medium for displaying page content, which reduce the number of cache content and display pages configured in advance and avoid the occurrence of the phenomena of jamming and the like of browsing equipment.
In a first aspect, an embodiment of the present disclosure provides a method for displaying page content, including:
when a page content display instruction of a user is detected, acquiring a target content category matched with the page content display instruction;
caching the source data information of all display items under the target content category and at least one alternative content category associated with the target content category in a set cache region;
selecting first target source data information corresponding to the target content category from the source data information of all the display items according to a display template matched with the target content category and the size of a current display interface;
generating a first display page to be displayed in a current display interface according to the summary information of at least one display item matched with the first target source data information and the display template matched with the target content category;
selecting second target source data information corresponding to the alternative content category from the source data information of all the display items according to a display template matched with the alternative content category and the size of a current display interface;
and generating at least one alternative display page matched with the alternative content category in advance according to the summary information of at least one display item matched with the second target source data information and the display template matched with the alternative content category.
In a second aspect, an embodiment of the present disclosure provides an apparatus for displaying page content, including:
the content category acquisition module is used for acquiring a target content category matched with a page content display instruction when the page content display instruction of a user is detected;
the cache module is used for caching the source data information of all display items under the target content category and at least one alternative content category associated with the target content category in a set cache region;
the first target source data acquisition module is used for selecting first target source data information corresponding to the target content category from the source data information of all the display items according to a display template matched with the target content category and the size of a current display interface;
the first display page generation module is used for generating a first display page to be displayed in the current display interface according to the summary information of at least one display item matched with the first target source data information and the display template matched with the target content category;
the second target source data acquisition module is used for selecting second target source data information corresponding to the alternative content category from the source data information of all the display items according to the display template matched with the alternative content category and the size of the current display interface;
and the alternative display page generation module is used for generating at least one alternative display page matched with the alternative content category in advance according to the summary information of at least one display item matched with the second target source data information and the display template matched with the alternative content category.
In a third aspect, an embodiment of the present disclosure provides an electronic device, which includes a memory, a processing apparatus, and a computer program stored in the memory and executable on the processing apparatus, where the processing apparatus implements a method for displaying page content according to any embodiment of the present disclosure when executing the program.
In a fourth aspect, embodiments of the present disclosure provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for presenting page content according to any of the embodiments of the present disclosure.
According to the technical scheme provided by the embodiment of the disclosure, the source data information of all display items under the target content category and the related alternative content category is cached, the display page of the target content category is displayed in the current display interface according to the display template matched with each content category and the size of the display interface, and the alternative display page matched with the alternative content category is also generated in advance. The display pages which can be checked by a user are configured in advance, the loading waiting time is reduced, the page opening speed is improved, meanwhile, the display pages are configured in advance in a targeted manner, the phenomenon that a large amount of disk space is occupied is avoided, the phenomenon that the running load of browsing equipment is caused due to the fact that excessive memory resources are occupied, the browsing equipment is jammed and even is killed by a system is avoided.
Drawings
Fig. 1 is a flowchart of a method for displaying page content in a first embodiment of the present disclosure;
fig. 2 is a flowchart of a method for displaying page content in a second embodiment of the disclosure;
fig. 3 is a flowchart of a method for displaying page content in a third embodiment of the disclosure;
fig. 4 is a structural diagram of a device for displaying page contents in a fourth embodiment of the disclosure;
fig. 5 is a block diagram of a device for displaying page contents in a fifth embodiment of the disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Example one
Fig. 1 is a flowchart of a method for displaying page content according to an embodiment of the present disclosure, where the present embodiment is applicable to a case where a display item is displayed in a page, the method may be executed by a device for displaying page content, the device may be implemented by software and/or hardware, and may be generally integrated in one or more devices for displaying page content, and the method specifically includes the following steps:
s110, when a page content display instruction of a user is detected, acquiring a target content category matched with the page content display instruction.
The page is a basic element forming a website and is a platform for bearing various website applications, the website is composed of a plurality of pages, and a user still cannot access the website only by a domain name and a virtual host without any page. The page is a plain text file containing an HTML tag, comprises one or more elements such as characters, pictures, videos, animations, music and programs, is described through various marks such as fonts, colors and sizes, and is interpreted and generated through various modes such as a browser, a PC client or an App.
The content category is a category according to the content presented by the page, and is generally marked in the form of a title, for example, all pages can be divided into 4 titles, "economy", "sports", "science", "culture" according to the content of the page; the Chinese herbal medicine is further classified according to the detailed contents, and can be further divided into a plurality of sub-titles such as astronomy, physics, biology, chemistry and the like under the title of science; "science" can be defined as the primary topic, while "astronomy" is the secondary topic under the primary topic "science".
Optionally, in this embodiment, the target content category matched with the page content display instruction is a last-level title in a page.
Optionally, when a click instruction of the user is detected, a target content category matched with the page content display instruction is obtained, and/or when a screen sliding operation of the user is detected, a target content category matched with the page content display instruction is obtained.
Specifically, when a click instruction of a user is detected, a click coordinate matched with the click instruction is obtained, if the click coordinate falls into a coordinate range corresponding to one content category in the currently displayed content, the page content display instruction is determined to be detected, and the hit content category is obtained as a target content category; and/or when the screen sliding operation of a user is detected, determining that the page content display instruction is detected, recording a content category matched with the current display content as a reference category, and acquiring a content category connected with the reference category in the current display content as the target content category according to the moving direction determined by the screen sliding operation and the reference category.
S120, caching the source data information of all display items under the target content category and at least one alternative content category associated with the target content category in a set cache region.
The source data information includes all basic information describing the display item, such as: title, size, duration, etc., and download address of the display item.
The cache is a buffer area for data exchange, when terminal devices such as computers and mobile phones read data, the required data can be searched from the cache first, and the cache can help the terminal devices to run faster because the running speed of the cache is much faster than that of a memory, and the cached data is generally stored in a disk of the terminal devices.
The display item includes one or more of a plurality of expressions such as text, image, video, animation, table, hyperlink, and the like, which may be a piece of text news or a piece of video.
When the user views the page content, the user has a higher probability of continuously viewing the information under the other content categories associated with the target content category, so that the source data information of the display items under the other content categories associated with the target content category is cached in advance, and the user can conveniently look up the information.
Particularly, when the user opens the page content, there is a high probability that the user slides the page right and left or clicks the adjacent titles right and left, and therefore, the source data information of all the display items in the target content category and the right and left content categories adjacent to the target content category are cached in the set cache region.
S130, selecting first target source data information corresponding to the target content category from the source data information of all the display items according to the display template matched with the target content category and the size of the current display interface.
The display template is a frame for displaying page content, determines a basic structure and setting of page content display, and comprises a plurality of settings such as character format, paragraph format, picture format and the like. Each content category corresponds to different display templates, a plurality of content categories also can correspond to one display template, and the use of the display templates is beneficial to keeping the style of the page consistent and improving the working efficiency. The display template may define an editable area and a locked area, and only the contents of the editable area may be modified.
Each content category may correspond to a different display template, and the number of display items that can be simultaneously displayed is different according to the different sizes of the current display interface.
For example, the display template corresponding to the target content category is a text news category, that is, one line of text corresponds to one display item, and the occupied page space is small, ten or even tens of summary information can be simultaneously displayed in the current display interface, so that the display screen of the user is full, a blank area is avoided, and the page aesthetic property is not affected, assuming that 12 lines of text can be simultaneously displayed according to the size of the current display interface, that is, 12 display items can be simultaneously displayed, at this time, the source data information corresponding to the first 12 display items under the content category is selected as the first target source data information corresponding to the target content category; when the summary information is image information, in order to make the user clearly see the image content, the number of summary information that can be simultaneously displayed in the current display interface is small.
S140, generating a first display page to be displayed in the current display interface according to the summary information of the at least one display item matched with the first target source data information and the display template matched with the target content type.
The summary information is to show the content outline of the display item or other related content, and the display item is briefly explained without comment and supplementary explanation in general situations. In the embodiment of the present disclosure, the summary information of the display item may optionally include at least one of a cover page, a title, a size, a time length, a click amount, and a comment amount.
And determining which summary information is needed by the display item according to the first target source data information and in combination with the display template matched with the target content category. For example, in a text news template, the summary information corresponding to each display item may be the title of the display item; in the video template, the summary information corresponding to each display item may be a front cover, a title and a duration. Thus, different display templates may correspond to different summary information types.
And displaying the generated display page in the current display interface according to the summary information and the display template, namely displaying the page currently seen by the user.
S150, selecting second target source data information corresponding to the alternative content category from the source data information of all the display items according to the display template matched with the alternative content category and the size of the current display interface.
S160, generating at least one alternative display page matched with the alternative content category in advance according to the summary information of at least one display item matched with the second target source data information and the display template matched with the alternative content category.
According to the technical scheme provided by the embodiment of the disclosure, the source data information of all display items under the target content category and the related alternative content category is cached, the display page of the target content category is displayed in the current display interface according to the display template matched with each content category and the size of the display interface, and the alternative display page matched with the alternative content category is also generated in advance. The display pages which can be checked by a user are configured in advance, the loading waiting time is reduced, the page opening speed is improved, meanwhile, the display pages are configured in advance in a targeted manner, the phenomenon that a large amount of disk space is occupied is avoided, the phenomenon that the running load of browsing equipment is caused due to the fact that excessive memory resources are occupied, the browsing equipment is jammed and even is killed by a system is avoided.
Example two
Fig. 2 is a method for displaying page content in a second embodiment of the present disclosure, which is embodied on the basis of the above embodiments, in this embodiment, after at least one alternative display page matching with the alternative content category is generated in advance according to summary information of at least one display item matching with the second target source data information and a display template matching with the alternative content category, the current display page and other display pages except the alternative display page are deleted, where the method includes the following steps:
s210, when a page content display instruction of a user is detected, acquiring a target content category matched with the page content display instruction.
S220, caching the source data information of all display items under the target content category and at least one alternative content category associated with the target content category in a set cache region.
And S230, selecting first target source data information corresponding to the target content category from the source data information of all the display items according to the display template matched with the target content category and the size of the current display interface.
S240, generating a first display page to display in the current display interface according to the summary information of at least one display item matched with the first target source data information and the display template matched with the target content type.
And S250, selecting second target source data information corresponding to the alternative content category from the source data information of all the display items according to the display template matched with the alternative content category and the size of the current display interface.
S260, generating at least one alternative display page matched with the alternative content category in advance according to the summary information of at least one display item matched with the second target source data information and the display template matched with the alternative content category.
S270, deleting other display pages except the first display page and the alternative display page
And particularly, when other contents are viewed in a downward sliding manner in the current display interface, the display item in the current display interface is changed, the generated first display page is also changed, and all displayed display pages are also deleted. Thus, at the same time, only one display page under the target content category is retained, as well as display pages under backup content categories associated with the target content category, and only one display page is retained under each backup content category.
According to the technical scheme provided by the embodiment of the disclosure, other display pages except the current display page and the alternative display page are deleted, and only one display page under the target content category is reserved as the current display interface and one display page under each backup content category. The method and the device not only ensure that the display page which can be checked by the user is configured in advance, but also occupy little memory resource and can not cause excessive operation load to the browsing equipment.
EXAMPLE III
Fig. 3 is a method for displaying page content in a third embodiment of the present disclosure, which is embodied on the basis of the above embodiments, and in this embodiment, source data information of all display items in the target content category and at least one alternative content category associated with the target content category are cached in a set cache region, specifically: judging whether the stored information in the set cache region hits one or more items of source data information of all display items under the target content category and at least one alternative content category associated with the target content category; if yes, returning an address pointer pointing to the hit information in the set cache region, and not caching the hit information any more in the process of caching the detail information of all the display items; the method comprises the following steps:
s310, when a page content display instruction of a user is detected, acquiring a target content category matched with the page content display instruction.
S320, using the target content category and the source data information of all display items under at least one alternative content category associated with the target content category as information to be cached.
S330, judging whether the stored information in the set cache region hits one or more items of source data information of all display items under the target content type and at least one alternative content type associated with the target content type, if so, executing S340, and if not, executing S350.
Specifically, it is determined whether the retrieval identifier of the stored information in the set cache region is the same as the retrieval identifier of one or more items of the source data information of all display items in the target content category and in at least one alternative content category associated with the target content category, and if so, it is determined that the stored information in the set cache region hits one or more items of the source data information of all display items in the target content category and in the at least one alternative content category associated with the target content category; wherein the retrieval identification is composed of at least two of number information, title, type and creation time.
S340, returning an address pointer pointing to the hit information in the set cache region, and executing S350 when the hit information is not cached in the process of caching the source data information of all the display items.
The address pointer represents the storage position of the hit information in the set cache region, and when a user clicks the summary information of the hit information, the detail information of the hit information is called from the corresponding storage position in the set cache region.
And S350, caching the non-hit information in the information to be cached in a set cache region.
S360, selecting first target source data information corresponding to the target content category from the source data information of all the display items according to the display template matched with the target content category and the size of the current display interface.
S370, generating a first display page to display in the current display interface according to the summary information of the at least one display item matched with the first target source data information and the display template matched with the target content type.
And S380, selecting second target source data information corresponding to the alternative content category from the source data information of all the display items according to the display template matched with the alternative content category and the size of the current display interface.
And S390, generating at least one alternative display page matched with the alternative content category in advance according to the summary information of the at least one display item matched with the second target source data information and the display template matched with the alternative content category.
According to the technical scheme provided by the embodiment of the disclosure, when the source data information is cached, different source data information is distinguished according to the retrieval identifier, only the address pointer is returned to the source data information which is stored in the set cache region, and the cache is not performed again, so that the occupied disk space is reduced, and the operation load of the browsing device is also reduced.
Example four
Fig. 4 is a device for displaying page content according to a fourth embodiment of the disclosure, where the device can execute a method for displaying page content according to any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method. The apparatus may be implemented by software and/or hardware, including: a content category obtaining module 410, a caching module 420, a first target source data obtaining module 430, a first display page generating module 440, a second target source data obtaining module 450, and an alternative display page generating module 460.
A content category obtaining module 410, configured to, when a page content display instruction of a user is detected, obtain a target content category matched with the page content display instruction;
a caching module 420, configured to cache source data information of all display items in the target content category and at least one candidate content category associated with the target content category in a set caching area;
a first target source data obtaining module 430, configured to select, from the source data information of all display items, a first target source data information corresponding to the target content category according to a display template matched with the target content category and a size of a current display interface;
a first display page generating module 440, configured to generate a first display page to be displayed in a current display interface according to the summary information of the at least one display item matched with the first target source data information and the display template matched with the target content category;
a second target source data obtaining module 450, configured to select, from the source data information of all display items, second target source data information corresponding to the candidate content category according to the display template matched with the candidate content category and the size of the current display interface;
and an alternative display page generating module 460, configured to generate in advance at least one alternative display page matching the alternative content category according to the summary information of the at least one display item matching the second target source data information and the display template matching the alternative content category.
According to the technical scheme provided by the embodiment of the disclosure, the source data information of all display items under the target content category and the related alternative content category is cached, the display page of the target content category is displayed in the current display interface according to the display template matched with each content category and the size of the display interface, and the alternative display page matched with the alternative content category is also generated in advance. The display pages which can be checked by a user are configured in advance, the loading waiting time is reduced, the page opening speed is improved, meanwhile, the display pages are configured in advance in a targeted manner, the phenomenon that a large amount of disk space is occupied is avoided, the phenomenon that the running load of browsing equipment is caused due to the fact that excessive memory resources are occupied, the browsing equipment is jammed and even is killed by a system is avoided.
On the basis of the foregoing embodiments, the cache module 420 is specifically configured to:
caching the source data information of all display items under the target content category and the left and right content categories adjacent to the target content category in a set cache region.
On the basis of the foregoing embodiments, the content category obtaining module 410 is specifically configured to:
when a click instruction of a user is detected, acquiring a click coordinate matched with the click instruction, if the click coordinate falls into a coordinate range corresponding to one content category in the currently displayed content, determining that the page content display instruction is detected, and acquiring the hit content category as a target content category; and/or
When the screen sliding operation of a user is detected, the page content display instruction is determined to be detected, the content category matched with the current display content is recorded as a reference category, and one content category connected with the reference category is acquired from the current display content as the target content category according to the moving direction determined by the screen sliding operation and the reference category.
On the basis of the above embodiments, the apparatus for displaying page content further includes: and deleting the module.
And the deleting module is used for deleting other display pages except the first display page and the alternative display page.
On the basis of the foregoing embodiments, the cache module 420 includes: a hit judgment unit and a pointer return unit.
A hit determination unit configured to determine whether the stored information in the set cache area hits one or more items of source data information of all display items in the target content category and at least one candidate content category associated with the target content category.
And the pointer returning unit is used for returning an address pointer pointing to the hit information in the set cache region if the hit judging unit judges that the stored information in the set cache region hits one or more items in the source data information of all display items under the target content category and at least one alternative content category associated with the target content category, and the hit information is not cached any more in the process of caching the source data information of all the display items.
On the basis of the foregoing embodiments, the hit determining unit is specifically configured to:
judging whether the retrieval identification of the stored information in the set cache region is the same as the retrieval identification of one or more items in the source data information of all display items under the target content category and at least one alternative content category associated with the target content category, and if so, judging that the stored information in the set cache region hits one or more items in the source data information of all display items under the target content category and at least one alternative content category associated with the target content category;
wherein the retrieval identification is composed of at least two of number information, title, type and creation time.
The page content display device can execute the page content display method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to a method for displaying page content provided in any embodiment of the present disclosure.
EXAMPLE five
FIG. 5 illustrates a schematic diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, the processes described in the flowcharts above may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the disclosed embodiments, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: when a page content display instruction of a user is detected, acquiring a target content category matched with the page content display instruction; caching the source data information of all display items under the target content category and at least one alternative content category associated with the target content category in a set cache region; selecting first target source data information corresponding to the target content category from the source data information of all the display items according to a display template matched with the target content category and the size of a current display interface; generating a first display page to be displayed in a current display interface according to the summary information of at least one display item matched with the first target source data information and the display template matched with the target content category; selecting second target source data information corresponding to the alternative content category from the source data information of all the display items according to a display template matched with the alternative content category and the size of a current display interface; and generating at least one alternative display page matched with the alternative content category in advance according to the summary information of at least one display item matched with the second target source data information and the display template matched with the alternative content category.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation on the unit itself, for example, the first target source data obtaining module may also be described as a "module that obtains source data information corresponding to a target content category".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure in the embodiments of the present disclosure is not limited to the particular combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the above-disclosed concept. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A method for displaying page content is characterized by comprising the following steps:
when a page content display instruction of a user is detected, acquiring a target content category matched with the page content display instruction;
caching the source data information of all display items under the target content category and at least one alternative content category associated with the target content category in a set cache region;
selecting first target source data information corresponding to the target content category from the source data information of all the display items according to a display template matched with the target content category and the size of a current display interface;
generating a first display page to be displayed in a current display interface according to the summary information of at least one display item matched with the first target source data information and the display template matched with the target content category;
selecting second target source data information corresponding to the alternative content category from the source data information of all the display items according to a display template matched with the alternative content category and the size of a current display interface;
generating at least one alternative display page matched with the alternative content category in advance according to the summary information of at least one display item matched with the second target source data information and the display template matched with the alternative content category; wherein, each content category corresponds to different display templates respectively.
2. The method of claim 1, wherein caching source data information of all display items under the target content category and at least one alternative content category associated with the target content category in a set cache area comprises:
caching the source data information of all display items under the target content category and the left and right content categories adjacent to the target content category in a set cache region.
3. The method of claim 1, wherein upon detecting a page content display instruction of a user, obtaining a target content category matching the page content display instruction comprises:
when a click instruction of a user is detected, acquiring a click coordinate matched with the click instruction, if the click coordinate falls into a coordinate range corresponding to one content category in the currently displayed content, determining that the page content display instruction is detected, and acquiring the hit content category as a target content category; and/or
When the screen sliding operation of a user is detected, the page content display instruction is determined to be detected, the content category matched with the current display content is recorded as a reference category, and one content category connected with the reference category is acquired from the current display content as the target content category according to the moving direction determined by the screen sliding operation and the reference category.
4. The method of claim 1, wherein after generating at least one candidate display page matching the candidate content category in advance according to the summary information of the at least one display item matching the second target source data information and the display template matching the candidate content category, the method comprises:
and deleting other display pages except the first display page and the alternative display page.
5. The method of claim 1, wherein caching source data information of all display items under the target content category and at least one alternative content category associated with the target content category in a set cache area, further comprises:
judging whether the stored information in the set cache region hits one or more items of source data information of all display items under the target content category and at least one alternative content category associated with the target content category;
if yes, returning an address pointer pointing to the hit information in the set cache region, and not caching the hit information any more in the process of caching the source data information of all the display items.
6. The method of claim 5, wherein determining whether the stored information in the set cache area hits in one or more of the source data information of all display items in the target content category and at least one alternative content category associated with the target content category comprises:
judging whether the retrieval identification of the stored information in the set cache region is the same as the retrieval identification of one or more items in the source data information of all display items under the target content category and at least one alternative content category associated with the target content category, and if so, judging that the stored information in the set cache region hits one or more items in the source data information of all display items under the target content category and at least one alternative content category associated with the target content category;
wherein the retrieval identification is composed of at least two of number information, title, type and creation time.
7. The method of any of claims 1-6, wherein the target content category is a last level title in a page; and/or
The summary information of the display item includes at least one of: cover, title, size, duration, click rate, and review volume.
8. A device for displaying page contents, comprising:
the content category acquisition module is used for acquiring a target content category matched with a page content display instruction when the page content display instruction of a user is detected;
the cache module is used for caching the source data information of all display items under the target content category and at least one alternative content category associated with the target content category in a set cache region;
the first target source data acquisition module is used for selecting first target source data information corresponding to the target content category from the source data information of all the display items according to a display template matched with the target content category and the size of a current display interface;
the first display page generation module is used for generating a first display page to be displayed in the current display interface according to the summary information of at least one display item matched with the first target source data information and the display template matched with the target content category;
the second target source data acquisition module is used for selecting second target source data information corresponding to the alternative content category from the source data information of all the display items according to the display template matched with the alternative content category and the size of the current display interface;
the alternative display page generation module is used for generating at least one alternative display page matched with the alternative content category in advance according to the summary information of at least one display item matched with the second target source data information and the display template matched with the alternative content category; wherein, each content category corresponds to different display templates respectively.
9. An electronic device comprising a memory, a processing means and a computer program stored on the memory and executable on the processing means, characterized in that the processing means, when executing the program, implements the presentation method of page content according to any one of claims 1 to 7.
10. A storage medium containing computer-executable instructions for performing a method of presentation of page content as claimed in any one of claims 1-7 when executed by a computer processor.
CN201910023234.0A 2019-01-10 2019-01-10 Page content display method, device, equipment and storage medium Active CN109740085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910023234.0A CN109740085B (en) 2019-01-10 2019-01-10 Page content display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910023234.0A CN109740085B (en) 2019-01-10 2019-01-10 Page content display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109740085A CN109740085A (en) 2019-05-10
CN109740085B true CN109740085B (en) 2019-12-24

Family

ID=66364303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910023234.0A Active CN109740085B (en) 2019-01-10 2019-01-10 Page content display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109740085B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112084441A (en) * 2019-06-13 2020-12-15 北京字节跳动网络技术有限公司 Information retrieval method and device and electronic equipment
CN110633433B (en) * 2019-07-19 2024-02-27 北京有竹居网络技术有限公司 Page caching method and device, electronic equipment and storage medium
CN110633434B (en) * 2019-07-19 2024-02-27 北京有竹居网络技术有限公司 Page caching method and device, electronic equipment and storage medium
CN111079054A (en) * 2019-12-25 2020-04-28 维沃移动通信有限公司 Information processing method and electronic equipment
CN111209277B (en) * 2020-01-06 2023-11-24 北京思维造物信息科技股份有限公司 Data processing method, device, equipment and medium
CN111291294A (en) * 2020-01-23 2020-06-16 北京无限光场科技有限公司 Information loading method and device, terminal and storage medium
CN111399730A (en) * 2020-03-12 2020-07-10 北京字节跳动网络技术有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111506849B (en) * 2020-04-07 2023-08-11 口碑(上海)信息技术有限公司 Page generation method and device
CN113673211B (en) * 2020-05-13 2023-09-29 百度在线网络技术(北京)有限公司 Content tag setting method, device, electronic equipment and storage medium
CN113791988B (en) * 2021-11-17 2022-02-18 畅捷通信息技术股份有限公司 Rendering method and device for reducing volume of small program package and storage medium
CN114489551A (en) * 2022-02-09 2022-05-13 广东乐心医疗电子股份有限公司 Data display method and device and electronic equipment
CN117290047B (en) * 2023-11-27 2024-04-30 深圳市微克科技股份有限公司 GUI display acceleration control method, system and storage medium on wearable product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503958A (en) * 2014-11-19 2015-04-08 百度在线网络技术(北京)有限公司 Method and device for generating document summarization
CN104951181A (en) * 2015-05-25 2015-09-30 深圳市万普拉斯科技有限公司 Multi-folder switching method and device
CN107632752A (en) * 2017-09-30 2018-01-26 广州酷狗计算机科技有限公司 Display methods, device and the computer-readable recording medium of multi-medium data
CN108647224A (en) * 2018-03-22 2018-10-12 腾讯科技(深圳)有限公司 Page display method, device, storage medium and electronic device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7793220B1 (en) * 2000-08-29 2010-09-07 Citrix Systems, Inc. Scalable derivative services
CN103530160A (en) * 2013-10-21 2014-01-22 迈普通信技术股份有限公司 Page loading method and device
CN104021140B (en) * 2014-05-08 2018-01-26 北京奇艺世纪科技有限公司 A kind of processing method and processing device of Internet video
US10324975B2 (en) * 2014-12-19 2019-06-18 Smugmug, Inc. Bulk keyword management application
CN104731974A (en) * 2015-04-13 2015-06-24 上海新炬网络信息技术有限公司 Dynamic page loading method based on big data stream type calculation
CN105608102B (en) * 2015-10-12 2019-07-05 网易传媒科技(北京)有限公司 A kind of page loading method and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503958A (en) * 2014-11-19 2015-04-08 百度在线网络技术(北京)有限公司 Method and device for generating document summarization
CN104951181A (en) * 2015-05-25 2015-09-30 深圳市万普拉斯科技有限公司 Multi-folder switching method and device
CN107632752A (en) * 2017-09-30 2018-01-26 广州酷狗计算机科技有限公司 Display methods, device and the computer-readable recording medium of multi-medium data
CN108647224A (en) * 2018-03-22 2018-10-12 腾讯科技(深圳)有限公司 Page display method, device, storage medium and electronic device

Also Published As

Publication number Publication date
CN109740085A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN109740085B (en) Page content display method, device, equipment and storage medium
US10620804B2 (en) Optimizing layout of interactive electronic content based on content type and subject matter
KR20130014581A (en) Selecting content based on interest tags that are included in an interest cloud
EP3278250A1 (en) Server-based conversion of autoplay content to click-to-play content
US11360640B2 (en) Method, device and browser for presenting recommended news, and electronic device
WO2023279843A1 (en) Content search method, apparatus and device, and storage medium
CN113886707B (en) Encyclopedia information determining method, encyclopedia information displaying method, encyclopedia information determining device, encyclopedia information displaying device, encyclopedia information determining equipment and encyclopedia information medium
CN111783508A (en) Method and apparatus for processing image
US20180088744A1 (en) Method and system for delivering real-time content
US20160188556A1 (en) Adaptive electronic document
CN111353296B (en) Article processing method, apparatus, electronic device and computer readable storage medium
CN109948084B (en) Webpage information display method, device, medium and computing equipment
US9934316B2 (en) Contextual search on digital images
US10452727B2 (en) Method and system for dynamically providing contextually relevant news based on an article displayed on a web page
US9648381B2 (en) Method and system for managing display of web-based content on portable communication devices
US9767079B1 (en) Serving expandable content items
US20190114311A1 (en) Non-Invasive, Single Use System and Methods for Selective Brain Cooling
CN114925285A (en) Book information processing method, device, equipment and storage medium
CN112911367B (en) Video playing interface processing method and device and electronic equipment
CN114416945A (en) Word cloud picture display method, device, equipment and medium
CN109684015B (en) Interface data loading method and device, electronic equipment and storage medium
CN113157165A (en) Information display method and device, electronic equipment and program product
CN107145314B (en) Display processing method and device for display processing
CN111815340B (en) Popularization information determination method, device, equipment and readable storage medium
CN110795652A (en) Promotional resource replacement method, device and computer readable medium

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