CN111079049A - Display content processing method and device of terminal equipment and storage medium - Google Patents

Display content processing method and device of terminal equipment and storage medium Download PDF

Info

Publication number
CN111079049A
CN111079049A CN201911235253.6A CN201911235253A CN111079049A CN 111079049 A CN111079049 A CN 111079049A CN 201911235253 A CN201911235253 A CN 201911235253A CN 111079049 A CN111079049 A CN 111079049A
Authority
CN
China
Prior art keywords
page
terminal device
network
application program
present application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911235253.6A
Other languages
Chinese (zh)
Inventor
桂再勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Microphone Holdings Co Ltd
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings 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 Shenzhen Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN201911235253.6A priority Critical patent/CN111079049A/en
Publication of CN111079049A publication Critical patent/CN111079049A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The application provides a display content processing method and device of terminal equipment, wherein the method comprises the following steps: when the application program is in a first network, acquiring first page information of the application program; acquiring operation on a target control in a first page; and storing the operation of the target control in the terminal equipment, and stopping acquiring the first page information when the application program is switched to the second network. The method and the device for processing the display content solve the technical problem that the intelligent degree is not enough when the terminal device processes the display content, and have the technical effects that the intelligent degree is higher and the user experience is better when the terminal device processes the display content.

Description

Display content processing method and device of terminal equipment and storage medium
Technical Field
The present application relates to terminal technologies, and in particular, to a method and an apparatus for processing display content of a terminal device, and a storage medium.
Background
With the continuous development of terminal technology and mobile communication network technology, different content providers provide more and more contents to terminal device users for browsing through the network, and the presentation forms are more and more complex, so that when the terminal device views the network contents through the browser, more network traffic needs to be consumed.
In the prior art, when a terminal device accesses display contents such as a microblog and a WeChat through a browser or an application program, once a user opens a certain page, the terminal device preloads all contents in the whole page, and it is ensured that the user can complete browsing of a current page through the preloaded contents even if the user breaks the network during browsing the page.
However, in the prior art, when the network condition changes, the terminal device cannot meet the further requirement of the user for the display content in the page, and the degree of intelligence is insufficient when the display content is processed.
Disclosure of Invention
The application provides a display content processing method and device of a terminal device and a storage medium, which are used for solving the technical problem of insufficient intelligent degree when the terminal device processes display content.
A first aspect of the present application provides a method for processing display content of a terminal device, including:
when an application program is in a first network, acquiring first page information of the application program;
acquiring operation on a target control in the first page;
storing the operation of the target control in the terminal equipment;
and when the application program is switched to a second network, stopping acquiring the first page information.
In an embodiment of the first aspect of the present application, the method further includes:
and when the application program is switched to the first network, sending the operation of the target control stored in the terminal equipment.
In an embodiment of the first aspect of the present application, the second network includes: the terminal device is connected to a mobile communication network, and the first network comprises: the terminal equipment is connected with a non-mobile communication network;
alternatively, the first network comprises: the terminal device is not connected to a network, and the second network includes: the terminal equipment is connected with a network.
In an embodiment of the first aspect of the present application, when obtaining the operation performed on the target control in the first page, the application program is in the second network, and after obtaining the operation performed on the target control in the first page, the method further includes:
and reading second page information corresponding to the target control from the storage equipment according to the operation, and displaying the second page.
In an embodiment of the first aspect of the present application, the method further includes: and deleting the content stored in the storage device when a preset condition is met.
In an embodiment of the first aspect of the present application, before acquiring the first page information of the application, the method further includes:
displaying the first prompt message; the first prompt message is used for prompting whether to start an offline mode of the application program;
and when first determination information is received, determining to start the offline mode of the application program.
In an embodiment of the first aspect of the present application, the displaying the second page includes:
displaying the second page and second prompt information; the second prompt message is used for prompting that the second page is stored in advance.
In an embodiment of the first aspect of the present application, the preset condition includes: and receiving second determination information, reaching the preset time or enabling the space occupied by the stored content to be larger than a preset threshold value.
A second aspect of the present application provides a display content processing apparatus for a terminal device, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring first page information of an application program when the application program is in a first network;
the receiving module is used for acquiring the operation of the target control in the first page;
the storage module is used for storing the operation of the target control in the terminal equipment;
the acquisition module is further configured to stop acquiring the first page information when the application is switched to a second network.
In an embodiment of the second aspect of the present application, the method further includes: and the sending module is used for sending the operation of the target control stored in the terminal equipment when the application program is switched to the first network.
In an embodiment of the second aspect of the present application, the second network includes: the terminal device is connected to a mobile communication network, and the first network comprises: the terminal equipment is connected with a non-mobile communication network;
alternatively, the second network comprises: the terminal device is not connected to a network, and the first network includes: the terminal equipment is connected with a network.
In an embodiment of the second aspect of the present application, the method further includes: and the display module is used for reading second page information corresponding to the target control from the storage device according to the operation and displaying the second page.
In an embodiment of the second aspect of the present application, the storage module is further configured to delete a page stored in the storage device when a preset condition is met.
In an embodiment of the second aspect of the present application, the display module is further configured to display a first prompt message; the first prompt message is used for prompting whether to start an offline mode of the application program;
the obtaining module is further configured to determine to start the offline mode of the application program when receiving the first determination information.
In an embodiment of the second aspect of the present application, the display module is further configured to display the second page and second prompt information; the second prompt message is used for prompting that the second page is stored in advance.
In an embodiment of the second aspect of the present application, the preset condition includes: and receiving second determination information, reaching the preset time or enabling the space occupied by the stored content to be larger than a preset threshold value.
A third aspect of the present application provides a display content processing apparatus of a terminal device, which is configured to execute the display content processing method of the terminal device provided in the first aspect of the present application, and the apparatus includes a function for implementing a behavior of the terminal device in the implementation of the method. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
Illustratively, the apparatus may comprise: a memory and a processor;
the processor is configured to execute the computer program stored in the memory to implement the steps of the display content processing method of the terminal device according to any one of the first aspect of the present application.
A fourth aspect of the present application provides a computer program product containing instructions which, when run on an apparatus, cause the apparatus to perform the method of the implementation of the first aspect described above.
A fifth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method as in the first aspect above.
A sixth aspect of the present application provides a chip system, where the chip system includes a processor and may further include a memory, and is configured to implement the functions of the terminal device in the method of the first aspect. The chip system may be formed by a chip, and may also include a chip and other discrete devices.
In summary, the present application provides a method and an apparatus for processing display content of a terminal device, where the method includes: when the application program is in a first network, acquiring first page information of the application program; acquiring operation on a target control in a first page; and storing the operation of the target control in the terminal equipment, and stopping acquiring the first page information when the application program is switched to the second network. The application provides a terminal equipment can show first page when application is in first network, the information of first page is saved simultaneously, and the operation to the target control of first page is saved, when switching to the second network, send the operation of saving, when making terminal equipment be in the second network, still can be from showing the page that saves according to user's instruction, and the operation on the storage page, thereby the not enough technical problem of intelligent degree when having overcome terminal equipment and handling the display content, intelligent degree is higher when having terminal equipment to the display content processing, user experience is better technological effect.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of an application scenario according to an embodiment of the present application;
FIG. 2 is a schematic diagram of another application scenario of the present application;
fig. 3 is a schematic flowchart of an embodiment of a method for processing display content of a terminal device according to the present application;
fig. 4 is a schematic diagram of an embodiment of a page displayed by a terminal device provided in the present application;
fig. 5 is a schematic flowchart of another embodiment of a method for processing display content of a terminal device according to the present application;
fig. 6 is a schematic diagram of another embodiment of a page displayed by a terminal device provided in the present application;
fig. 7 is a schematic diagram of another embodiment of a page displayed by a terminal device provided in the present application;
fig. 8 is a schematic diagram of another embodiment of a page displayed by a terminal device provided in the present application;
fig. 9 is a schematic diagram of another embodiment of a page displayed by a terminal device provided in the present application;
fig. 10 is a schematic structural diagram of an embodiment of a display content processing apparatus of a terminal device provided in the present application;
fig. 11 is a schematic structural diagram of an apparatus according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Before formally describing the embodiments of the present application, a description will be given of the application scenarios and problems of the prior art with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an application scenario in an embodiment of the present application, and fig. 1 shows a display interface of a terminal device, where the terminal device may be any electronic device having a display screen and capable of displaying a page, for example: mobile phones, tablet computers, notebook computers, desktop computers, and the like. In the embodiments of the present application, a terminal device is taken as an example for explanation, but not limited thereto.
In the display interface 1A shown in fig. 1, after the terminal device connects to the internet through Wireless Fidelity (WiFi) and can browse the web page content through the WiFi connection, assuming that the user opens a certain portal site "X" through a browser application program, the terminal device obtains a home page from a server of the portal site through the internet to display, and the home page of the portal site includes click controls such as "news", "military", "financial", "sports", "entertainment", and "weather". Then, after the user clicks the "weather" control on the display interface 1A, the browser application program may further obtain, from the server of the portal website, and display the display interface 1B corresponding to the weather according to the "weather" control clicked by the user.
However, after the terminal device has acquired the display interface 1A from the server and displayed, the user disconnects the network connection of the terminal device, or the terminal device moves to a location where there is no network connection. At this time, if the user continues to click the "weather" control on the display interface 1A, since the terminal device is not connected to the internet, the weather display interface 1B corresponding to the "weather" control cannot be continuously obtained from the server of the portal website. In some terminal devices, when the network connection is disconnected and the page cannot be continuously obtained, a dialog box is displayed in, for example, the display interface 1C to prompt the user that the current page cannot be continuously accessed.
Therefore, as can be seen from the embodiment shown in fig. 1, when the browser application of the terminal device accesses the display content through the internet, the browser application usually only obtains a page from the web server according to the instruction of the user and displays the page, and in this process, once the network connection of the terminal device is unstable or the location of the terminal device is not convenient for connecting to the network, the browser application cannot further obtain the interface selected by the user, and further the user of the terminal device cannot continue to browse the page, which results in a low degree of intelligence of the terminal device when processing the display content, and also severely reduces the user experience of the terminal device.
Fig. 2 is a schematic view of another application scenario in the embodiment of the present application, and fig. 2 shows a display interface of a terminal device, where the terminal device may be any electronic device having a display screen and capable of displaying a page, for example: mobile phones, tablet computers, notebook computers, desktop computers, and the like. In the embodiments of the present application, a terminal device is taken as an example for explanation, but not limited thereto.
In the display interface 2A shown in fig. 2, after the browser application of the terminal device connects to the internet through Wireless Fidelity (WiFi) and browses the web page content through the WiFi connection, it is assumed that the user comments in the news page of the portal site "X" and inputs the character "too good! "later, click on the control" to make comments, "at which time the browser application will" too good "the character entered by the user! "the server of the portal website completes the comment sending process during sending, and some terminal devices display a dialog box in, for example, the display interface 2B to prompt the user that the input comment has been successfully sent after the comment is sent.
However, when the browser application has displayed the display interface 2A, the user cuts off the network connection of the terminal device, or the terminal device moves to a location where there is no network connection. At this time, if the user continues to click the comment-posting control on the display interface 2A, since the terminal device is not connected to the internet, the browser application cannot send the comment of the user to the server of the portal site, and in some terminal devices, in the case where the network connection is disconnected and the comment cannot be sent, a dialog box is displayed in the display interface 2C to prompt the user, and the current page cannot be continuously accessed.
Therefore, as can be seen from the embodiment shown in fig. 2, when the browser application of the terminal device sends content to the server according to the operation of the user in the page, once the network connection of the terminal device is unstable or the terminal device is located at a position inconvenient to connect to the network, the terminal device cannot further send an instruction to the server, so that the content output by the user is invalid, the user needs to re-input the content in the browser application after the terminal device connects to the network and re-send the content, so that the degree of intelligence of the terminal device in the content display process is low, and the user experience of the terminal device is also severely reduced.
Therefore, based on the above problems in fig. 1 and fig. 2, the present application provides a method for processing display content of a terminal device, so as to overcome the technical problem of insufficient intelligence degree when the terminal device processes the display content.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 3 is a schematic flowchart of an embodiment of a method for processing display content of a terminal device according to the present application, where the embodiment shown in fig. 3 is applicable to the scenario shown in fig. 1. Specifically, the method comprises the following steps:
s101: when the application program is in the first network, first page information in the application program is acquired.
Specifically, the execution main body of this embodiment may be a terminal device, and the terminal device may specifically obtain, through the internet, first webpage information from a server, where the first webpage information includes the first webpage itself and second pages corresponding to all controls in the first webpage. For example, fig. 4 is a schematic diagram of an embodiment of a page displayed by the terminal device, where in the display interface 3A, the application is a browser application, and a home page of a web portal "X" in the figure is a first page, the first page at least includes six controls of "news", "military", "finance", "sports", "entertainment", and "weather", and these six controls can be all marked as target controls, and since each target control can be obtained after being clicked by the user, the page corresponding to the target control is marked as a second page. In S101, the terminal device further acquires a second page corresponding to each target control included in the first page, in addition to acquiring the first page from the server through the internet.
Optionally, in step S101 in this embodiment, the application may be configured to start an offline mode, where the offline mode is that when the user browses the first page through the application, the terminal device obtains and stores the first page from the server, and also obtains and stores a second page corresponding to the target control in the first page from the server.
More specifically, in S101, as shown in the display interface 3A of fig. 4, the first page information, that is, the first page and the second page, further obtained by the terminal device is stored, and the storage device is not limited, and may be, for example, a Secure Digital Memory Card (SD) in the terminal device, a Random Access Memory (RAM), a Read Only Memory (ROM), or the like.
S102: acquiring operation on a target control in a first page;
s103: and storing the obtained operation of the target control in the first page in the terminal equipment.
Optionally, in this embodiment of the application, S102 and S103 may be executed when the application is in the first network, and may also be executed when the application is in the second network, specifically, the operation performed by the user on the target control in the first page is stored, where the operation may be a click operation on the control, and the operation is not limited in this application.
Illustratively, as shown in the display interface 3B of fig. 4, the terminal device may receive a preset operation of the target control "weather" by the user. The preset operation may be a click operation, a long-press operation, a sliding operation, and the like on the target control, and after receiving the operation, the terminal device may store the operation, or directly execute the subsequent steps.
S104: and when the application program is switched to a second network, stopping acquiring the first page information.
Specifically, in S104, when the application switches from the first network to the second network, the first page information cannot be continuously acquired from the server, and thus acquisition of the first page information is stopped. Recording a mobile communication network (a 3G, 4G or 5G cellular mobile communication network) connected with the terminal equipment as a second network, wherein the terminal equipment is connected with the Internet by using mobile data traffic, and recording the state of a non-mobile communication network (WiFi, hot spot or Bluetooth and the like) connected with the terminal equipment as a first network; or, in this embodiment, a state in which the terminal device is not connected to any network may be regarded as being connected to the second network, and a network (a mobile communication network or a non-mobile communication network) to which the terminal device is connected may be regarded as being the first network. It should be noted that, in this embodiment, the application is in the first network or the second network, which is equivalent to that the terminal device itself is in the first network or the second network.
Subsequently, optionally, in the method shown in fig. 1, after S101, when the operation performed by the target control of the first page is acquired in S102, the application program has switched to the second network, then after S102, the method further includes:
s105: reading second page information corresponding to the target control from the storage device according to the operation, and displaying a second page,
exemplarily, in S104, as shown in the display interface 3C of fig. 4, the terminal device obtains the second webpage corresponding to the "weather" control from the storage device according to the "weather" control clicked by the user, and then displays the second webpage on the display interface. The information of the second webpage is obtained by the terminal device in S101 according to all the controls in the first webpage, and the second webpage corresponding to all the controls is stored in the storage device.
It is understood that the page corresponding to each control in the first page is included in the storage device, and is stored in a mapping relationship, for example. In S104, a second page corresponding to the target control may be obtained from the storage device according to the target control corresponding to the preset operation and by combining the mapping relationship, and displayed. Optionally, the storage device may store a plurality of instructions in a queue.
More specifically, in the display process shown in fig. 4, when the terminal device displays the interface 3C, the network state where the terminal device is currently located is a state of connecting to a non-mobile communication network or a state of not connecting to a network. Therefore, in the embodiment shown in fig. 4, when the terminal device displays the display interface 3A through the browser application, the terminal device may be in the first network, and acquire the first page and the second pages corresponding to the controls in all the first pages from the internet through the connection relationship with the internet to store the first page and the second pages. In the subsequent display interfaces 3B and 3C, the terminal device may be in the second network, and since the terminal device cannot connect to the internet, the terminal device cannot acquire the second page from the internet, and therefore, after the terminal device detects the click operation of the user on the "weather" control on the first page, the terminal device acquires the second page corresponding to the "weather" control from the storage device thereof, and displays the second page in the display interface 3C.
It can be seen that in the display interfaces 3B and 3C as in fig. 4, the terminal device is already in the second network at this time, and cannot acquire display content from the internet, nor transmit any content to the internet. However, in this embodiment, since the terminal device has further acquired and stored all the second pages according to the first page browsed by the user when the terminal device is in the first network in the display interface 3A, even if the network status changes thereafter, and changes to the connected status of the non-mobile communication network or the status of no network connection, the terminal device can acquire and display the second pages that have been locally stored from the storage device. Therefore, the embodiment greatly improves the intelligent degree of the terminal device in the process of further processing the display content under the condition of weak network or no network connection, so that when a user browses a certain first webpage content, the user can further click the control in the first webpage according to the second webpage which is preloaded and stored by the terminal device before even if the network state changes, and further improves the user experience.
It should be noted that, in the examples shown in fig. 3 to 4, the terminal device browses the web pages of the web portal as an exemplary illustration, and is not limited. In other possible implementation manners, the first page browsed by the terminal device may also be contents such as a microblog, a wechat, a public number, and the like; the second page may also be data such as title, text (including words and pictures), comments, forwarding, praise, and the like.
Optionally, in the above embodiment, the number of the second pages corresponding to the control in the first page loaded by the terminal device may be set, for example, the number may be adjusted in real time according to the storage capability of the storage device of the terminal device, so as to prevent occupation of excessive storage resources of the terminal device.
Fig. 5 is a schematic flowchart of another embodiment of a method for processing display content of a terminal device according to the present application, and the embodiment shown in fig. 5 can be applied to the scenario shown in fig. 2. If the method shown in fig. 5 can be executed independently, the second page refers to any interface displayed by the terminal device; alternatively, the method shown in fig. 5 may be implemented in combination with the method shown in fig. 4, and the second page is the second page acquired from the storage device and displayed when the terminal device is in the second network in the embodiment shown in fig. 4. As shown in fig. 5, the method includes:
s201: and acquiring a target instruction on the second page.
Specifically, the execution subject of this embodiment may be a terminal device having a display interface, for example, fig. 6 is a schematic diagram of another embodiment of a page displayed by the terminal device provided in this application, where in the display interface 6A, it is noted that a page of the news of the X portal website, which is currently acquired by the terminal device through the browser application, is a second page, and after the user clicks a "comment" control on the second page, at this time, the terminal device needs to "get good" the content input by the user in the text box |! "send to the server of the X portal website, note the sent content as the target instruction. It is to be understood that the target instructions may also be praise, forward, etc. in the figure.
S202: the target instruction is stored in the storage device when the terminal device is in the second network.
In the second network, the terminal device does not allow to send the instruction associated with the application program, and the description about the second network may refer to the embodiment shown in fig. 3, which is not described again.
Specifically, in S202, as shown in the display interface 6A of fig. 6, in the second network state, the terminal device cannot send the target instruction acquired in S201 to the server, and therefore, the target instruction is stored in the local storage device of the terminal device first. The target instruction may be an operation performed by a user on a target control on a page.
S203: and when the terminal equipment is switched from the second network to the first network, sending the target instruction in the storage equipment to the server.
In the first network state, the terminal device allows sending the instruction associated with the application program, and the description about the first network state may refer to the embodiment shown in fig. 3, which is not described again.
Specifically, in S203, as shown in the display interface 4B of fig. 6, after the terminal device switches from the second network to the first network, the terminal device may send the target instruction stored in the storage device to the server. The terminal device may sequentially send the stored instructions to the corresponding servers one by one in the first network state. The instruction may be an instruction corresponding to an operation performed by the target control.
Optionally, in this embodiment, when the terminal device is switched to the first network state, the state of the display interface is not limited, for example, in the display interface 4B, after the terminal device is switched to the first network state in the system homepage of the terminal device, the terminal device may send an instruction in the storage device in the background; or, in the display interface 4C, after the terminal device may be switched to the first network, the instruction in the storage device is sent in the background in the screen locking state.
In summary, in the example shown in fig. 6, the terminal device may be in the second network when displaying the display interface 4A, and at this time, although the target instruction issued by the user on the display interface 4A cannot be sent to the server, the target instruction may be stored first. In the subsequent display interface 4B or 4C, once the terminal device switches from the second network state to the first network state, the terminal device may send the target instruction stored in the storage device to the server, so that the target instruction sent by the user in the offline state can still be retained and then sent. Therefore, the intelligent degree of storing and subsequently sending the instruction after the terminal device receives the instruction in the second network state is greatly improved, so that the user does not need to input the instruction for many times, and the user experience is further improved.
5-6, the terminal device browsing the web pages of the web portal is used as an example for illustration and not for limitation. In other possible implementation manners, the second page browsed by the terminal device may also be contents such as a microblog, a wechat, a public number, and the like; the target instruction can also be an instruction corresponding to operations such as comment, forwarding and approval in the second page.
Variations of possible implementations of the present embodiment are described below by way of example with reference to fig. 7-9.
On the basis of the foregoing embodiments, optionally, if the display content processing manner provided in fig. 3 to fig. 6 of the present application may be referred to as an "offline mode", then it may be freely selected for a user of the terminal device whether to turn on the "offline mode". For example, fig. 7 is a schematic diagram of another embodiment of a page displayed by a terminal device according to the present application, and in the display interface 5A shown in fig. 7, it is shown that after a user of the terminal device opens a browser application for the first time, a prompt message for asking the user whether to start an offline mode for the browser application is displayed in the display interface. Subsequently, after the user clicks the "open" control, the terminal device receives the determination information, and then determines to open the offline mode of the application program, so that when the user subsequently uses the browser application program to browse each webpage, the pages corresponding to all the controls in each webpage are pre-loaded and stored as in the embodiments of fig. 3 to 4, and the offline instruction is also stored as in the embodiments of fig. 5 to 6, and is sent after the network is switched.
Optionally, in each of the above embodiments, when the terminal device displays the first page, the terminal device may also simultaneously display a prompt message for prompting that the terminal device is acquiring and storing the second page corresponding to the control in the first page, for example, as shown in the display interface 5A of fig. 7, when the terminal device displays the first page, the terminal device also simultaneously displays a dynamic circular control to indicate the loading and storing progress of the second page corresponding to all the controls.
Optionally, in the foregoing embodiments, when the second interface displayed by the terminal device is obtained from the storage device, rather than directly from the server via the internet, as shown in the display interface 5B of fig. 7, when the terminal device displays the second page, a prompt message "offline" is also displayed at the same time, so as to prompt that the currently displayed second page is obtained from the terminal device when the terminal device is in the first network and is stored in advance.
Fig. 8 is a schematic view of another embodiment of a page displayed by the terminal device according to the present application, and optionally, as in the display interface 6A shown in fig. 8, after the terminal device acquires the target instruction to be sent in the second network state, in addition to adding the target instruction into the storage device for storage, a prompt message such as "added to a queue to be sent" may be displayed on the display interface to prompt that the current information is stored and to be sent, so that the user does not need to input again.
Still alternatively, in the display interface 6B shown in fig. 8, after the terminal device sends all the instructions stored in the storage device in the first network state, a prompt message, such as "the queue to be sent has been sent", may also be displayed on the display interface, so as to prompt that all the instructions in the storage device have been sent.
Fig. 9 is a schematic diagram of another embodiment of a page displayed by a terminal device according to the present application, and optionally, as shown in fig. 9, a possible implementation manner of a display interface for managing whether an application is in an offline mode is shown, where a switch of the offline mode may be displayed in the display interface shown in fig. 9, so that a user turns on or off the offline mode; and moreover, a cache cleaning switch can be displayed, and after the click operation of the user on the 'immediate cleaning' control is acquired, the terminal equipment can delete the webpages corresponding to all the controls stored in the storage equipment.
In addition, the terminal device may set a preset condition, and delete the page stored in the storage device after the terminal device receives the click operation of the user in the display interface shown in fig. 9. The preset conditions include: certain information sent by the user as shown in fig. 9 is received, a preset time is reached (for example, 0 o' clock every day), or the total occupied area of the page stored in the storage device is greater than a preset threshold (for example, 500M).
In summary, in the embodiments provided in the present application, the method provided in the embodiments of the present application is introduced from the perspective of the terminal device. In order to implement the functions in the method provided by the embodiment of the present application, the terminal device may include a hardware structure and/or a software module, and implement the functions in the form of a hardware structure, a software module, or a hardware structure and a software module. Whether any of the above-described functions is implemented as a hardware structure, a software module, or a hardware structure plus a software module depends upon the particular application and design constraints imposed on the technical solution.
Fig. 10 is a schematic structural diagram of an embodiment of a display content processing apparatus of a terminal device provided in the present application, where the apparatus shown in fig. 10 may be used to execute a page processing method of the terminal device described in any of the foregoing embodiments of the present application, where the apparatus includes: the device comprises an acquisition module 1001, a receiving module 1002, a storage module 1003, a sending module 1004 and a display module 1005.
In a possible implementation manner, the obtaining module 1001 is configured to obtain first page information of an application when the application is in a first network; the receiving module 1002 is configured to obtain an operation performed on a target control in the first page; the storage module 1003 is configured to store the operation performed on the target control in the terminal device; the obtaining module 1001 is further configured to stop obtaining the first page information when the application is switched to a second network.
Optionally, the apparatus may further include: a sending module 1004, configured to send, when the application is switched to the first network, an operation performed on the target control stored in the terminal device.
Optionally, the second network comprises: the terminal device is connected to a mobile communication network, and the first network comprises: the terminal equipment is connected with a non-mobile communication network; alternatively, the second network comprises: a state in which the terminal device is not connected to a network, the first network including: the terminal equipment is connected with a network.
Optionally, the apparatus may further include: a display module 1005, where the display module 1004 is specifically configured to read the second page information corresponding to the target control from the storage device according to the operation, and display the second page.
Optionally, the storage module 1003 is further configured to delete the page stored in the storage device when a preset condition is met.
Optionally, the display module 1005 is further configured to display a first prompt message; the first prompt message is used for prompting whether to start an offline mode of the application program; the obtaining module 1001 is further configured to determine to start the offline mode of the application program when receiving the first determination information.
Optionally, the display module 1005 is further configured to display the second page and second prompt information; the second prompt message is used for prompting that the second page is stored in advance.
Optionally, the preset condition includes: and receiving second determination information, reaching the preset time or enabling the space occupied by the stored content to be larger than a preset threshold value.
The division of the modules in the embodiments of the present application is schematic, and only one logical function division is provided, and in actual implementation, there may be another division manner, and in addition, each functional module in each embodiment of the present application may be integrated in one processor, may also exist alone physically, or may also be integrated in one module by two or more modules. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Fig. 11 is a schematic structural diagram of an apparatus according to an embodiment of the present disclosure. The apparatus shown in fig. 11 may be a terminal device in the foregoing embodiments of the present application, or a page processing apparatus of the terminal device, and the apparatus 400 may include: a processor 41 (e.g., CPU), memory 42, transceiver 43; the transceiver 43 is coupled to the processor 41, and the processor 41 controls the transceiving action of the transceiver 43; the memory 42 may include a random-access memory (RAM) and a non-volatile memory (NVM), such as at least one disk memory, and the memory 42 may store various instructions for performing various processing functions and implementing the method steps of the present application. Optionally, the apparatus to which the present application relates may also include a communication bus 44. The transceiver 43 may be integrated in a transceiver of the communication device or may be a separate transmit/receive antenna on the device. The communication bus 44 is used to enable communication connections between the elements. The communication port is used for realizing connection and communication between the communication device and other peripherals.
In the embodiment of the present application, the memory 42 is used for storing computer executable program codes, and the program codes include instructions; when the processor 41 executes the instruction, the instruction causes the processor 41 of the communication apparatus to execute the processing action of the terminal device in the foregoing embodiment or the optional embodiment, and causes the transceiver 43 to execute the receiving action or the sending action of the terminal device in the foregoing method embodiment, which has similar implementation principle and technical effect, and is not described herein again.
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of the present application.
It should be understood that, in the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
It is understood that, in the embodiment of the present application, the memory may be a non-volatile memory, such as a Hard Disk Drive (HDD) or a solid-state drive (SSD), and may also be a volatile memory (RAM), for example. The memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The method provided by the embodiment of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a network appliance, a terminal, or other programmable apparatus. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., Digital Video Disk (DVD)), or a semiconductor medium (e.g., SSD), among others.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A display content processing method of a terminal device is characterized by comprising the following steps:
when an application program is in a first network, acquiring first page information of the application program;
acquiring operation on a target control in the first page;
storing the operation of the target control in the terminal equipment;
and when the application program is switched to a second network, stopping acquiring the first page information.
2. The method of claim 1, further comprising:
and when the application program is switched to the first network, sending the operation of the target control stored in the terminal equipment.
3. The method of claim 1,
the second network includes: the terminal device is connected to a mobile communication network, and the first network comprises: the terminal equipment is connected with a non-mobile communication network;
alternatively, the second network comprises: the terminal device is not connected to a network, and the first network includes: the terminal equipment is connected with a network.
4. The method of claim 1, wherein the application program is in the second network when the operation on the target control in the first page is obtained, and wherein after the obtaining of the operation on the target control in the first page, the method further comprises:
and reading second page information corresponding to the target control from the storage equipment according to the operation, and displaying the second page.
5. The method according to any one of claims 1-4, further comprising:
and deleting the content stored in the storage device when a preset condition is met.
6. The method according to any one of claims 1-4, wherein before the obtaining the first page information of the application, further comprising:
displaying the first prompt message; the first prompt message is used for prompting whether to start an offline mode of the application program;
and when first determination information is received, determining to start the offline mode of the application program.
7. The method of claim 4, wherein said displaying the second page comprises:
displaying the second page and second prompt information; the second prompt message is used for prompting that the second page is stored in advance.
8. The method of claim 5,
the preset conditions include: and receiving second determination information, reaching the preset time or enabling the space occupied by the stored content to be larger than a preset threshold value.
9. A display content processing apparatus of a terminal device, comprising:
a memory and a processor;
the processor is adapted to execute the computer program stored in the memory to implement the steps of the display content processing method of the terminal device according to any of claims 1-8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the display content processing method of a terminal device according to any one of claims 1 to 8.
CN201911235253.6A 2019-12-05 2019-12-05 Display content processing method and device of terminal equipment and storage medium Pending CN111079049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911235253.6A CN111079049A (en) 2019-12-05 2019-12-05 Display content processing method and device of terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911235253.6A CN111079049A (en) 2019-12-05 2019-12-05 Display content processing method and device of terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111079049A true CN111079049A (en) 2020-04-28

Family

ID=70313073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911235253.6A Pending CN111079049A (en) 2019-12-05 2019-12-05 Display content processing method and device of terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111079049A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113722628A (en) * 2021-08-31 2021-11-30 北京百度网讯科技有限公司 Method, apparatus, device and medium for displaying information stream

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113722628A (en) * 2021-08-31 2021-11-30 北京百度网讯科技有限公司 Method, apparatus, device and medium for displaying information stream
WO2023029443A1 (en) * 2021-08-31 2023-03-09 北京百度网讯科技有限公司 Method and apparatus for displaying information flow, device, and medium

Similar Documents

Publication Publication Date Title
JP7013466B2 (en) Application data processing methods, equipment, and computer programs
US8949739B2 (en) Creating and maintaining images of browsed documents
EP3335411B1 (en) Electronic device and method of managing application programs thereof
US10911565B2 (en) Method, device and system for associating a service account
US20140208326A1 (en) File presenting method and apparatus for a smart terminal
CN104133828A (en) Drag-and-drop clipboard for HTML documents
CN103530160A (en) Page loading method and device
CN104142966A (en) Web page displaying method and client
CN105324753A (en) Invoking an application from a web page or other application
CN104462571A (en) Webpage loading method and device and browser client-side
US20150153921A1 (en) Apparatuses and methods for inputting a uniform resource locator
US20210191580A1 (en) Method and Apparatus for Displaying Application Program, Terminal Device, and Storage Medium
CN111125595B (en) Multi-page control method and device, electronic equipment and storage medium
CN103677519A (en) Method for collecting multimedia resource, terminal and server
CN114265653A (en) Interface display method, device, equipment, storage medium and program product
CN111079049A (en) Display content processing method and device of terminal equipment and storage medium
CN107943921B (en) Page sharing information generation method and device, computer equipment and storage medium
CN104572981A (en) Web page caching method and mobile terminal device
CN113127783B (en) Page display method and device, equipment and medium
CN112291602B (en) Video playing method, electronic equipment and storage medium
JP6464031B2 (en) Electronic device, web page display method, and web page display program
CN111274513B (en) Window display method, device, terminal and storage medium
CN113760273A (en) Page control method and page control device
CN110622135B (en) System and method for providing content items in situations involving suboptimal network conditions
CN107409327B (en) Processing operation method and equipment

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