CN109145244A - Display methods, electronic equipment and computer readable storage medium - Google Patents
Display methods, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109145244A CN109145244A CN201810802234.6A CN201810802234A CN109145244A CN 109145244 A CN109145244 A CN 109145244A CN 201810802234 A CN201810802234 A CN 201810802234A CN 109145244 A CN109145244 A CN 109145244A
- Authority
- CN
- China
- Prior art keywords
- information
- target webpage
- advertisement
- screen
- url
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000004590 computer program Methods 0.000 claims description 5
- 238000005516 engineering process Methods 0.000 abstract description 2
- 230000001360 synchronised effect Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 230000000903 blocking effect Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000003550 marker Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present embodiments relate to electronic technology fields, disclose a kind of display methods, electronic equipment and computer readable storage medium, display methods disclosed in embodiment of the present invention, applied to the electronic equipment with the first screen and the second screen, comprising: obtain target webpage to be shown;Judge in target webpage to be shown whether to include advertising information;If in target webpage including advertising information, advertising information is isolated into target webpage;Advertising information is shown in the second screen, shows the target webpage after isolating advertising information in the first screen.Display methods disclosed in embodiment of the present invention, electronic equipment and computer readable storage medium have and can show advertising information under the premise of not influencing user's browsing normal webpage, and user is facilitated to get the advertising information of oneself needs when there is browse advertisements demand.
Description
Technical Field
Embodiments of the present invention relate to the field of electronic technologies, and in particular, to a display method, an electronic device, and a computer-readable storage medium.
Background
In recent years, with the great popularization and promotion of mobile terminals, the development of mobile internet services is promoted in a crossing manner, and a traditional PC platform is being transitioned to a mobile terminal platform based on the way that people acquire information and information. On the other hand, a large amount of mobile advertisements are full of all corners of the browsing information of the user, which greatly affects the user experience. The mobile advertisement is an advertisement displayed when a mobile application or a mobile webpage is accessed through a mobile device (a mobile phone, a tablet computer, etc.), and the advertisement form comprises: pictures, text, commercial breaks, html5, links, video, etc. Which is essentially network data traffic generated by the IP protocol. For most users, the contents are not contents that the users intend to browse, the users can only select to browse, many contents cannot be closed at all, even if many malicious advertisements induce the users to download malicious applications or log in related accounts, and great potential safety hazards exist.
For mobile advertisements, a large number of advertisement blocking methods exist in the prior art, for example, advertisements can be effectively blocked by installing advertisement blocking software in a mobile terminal or installing advertisement blocking plug-ins, such as Adblock, in a browser.
However, the inventor of the present invention finds that, in the advertisement blocking method in the prior art, no matter the advertisement blocking software or the advertisement blocking plugin can block all advertisements, and the advertisements are not displayed; however, although most of the advertisements in the mobile advertisement have no browsing value, there are some advertisements that may be needed by the user, and all advertisements are blocked, and although the user does not influence the browsing of the normal web page, the user cannot obtain the advertisement information that the user needs.
Invention information
An object of embodiments of the present invention is to provide a display method, an electronic device, and a computer-readable storage medium, which can display advertisement information without affecting a user browsing a normal webpage, and facilitate the user to obtain needed advertisement information when there is an advertisement browsing demand.
In order to solve the above technical problem, an embodiment of the present invention provides a display method applied to an electronic device having a first screen and a second screen, including: acquiring a target webpage to be displayed; judging whether the target webpage to be displayed contains advertisement information or not; if the target webpage contains the advertisement information, separating the advertisement information into the target webpage; and displaying the advertisement information on the second screen, and displaying the target webpage after the advertisement information is separated on the first screen.
An embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the display method described above.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the aforementioned display method.
Compared with the prior art, the method and the device have the advantages that after the target webpage to be displayed is obtained and before the target webpage is displayed, the content of the target webpage is analyzed, whether the current target webpage contains the advertisement information or not is judged, if the target webpage contains the advertisement information, the advertisement information is separated into the target webpage, and then the advertisement information is displayed on the second screen; and the target webpage after the advertisement information is separated does not contain the advertisement information any more, and is displayed on the first screen. The target webpage after the advertisement information is separated does not contain any advertisement information any more, and the target webpage does not contain any advertisement information after being displayed on the first screen, so that a user can browse the target webpage through the first screen, and the influence on browsing the target webpage due to the interference of the advertisement information is avoided; the separated advertisement information is displayed on the second screen, so that a user can browse the advertisement information on the second screen, and the advertisement information which is interesting or useful for the user is prevented from being intercepted and not displayed, so that the advertisement information can be displayed on the premise of not influencing the user to browse a normal webpage, and the user can conveniently acquire the advertisement information required by the user when the user has the advertisement browsing requirement.
In addition, the displaying the advertisement information on the second screen and the displaying the target webpage after separating the advertisement information on the first screen specifically include: and synchronously displaying the advertisement information and the target webpage after the advertisement information is separated on the second screen and the first screen respectively. And synchronously displaying the advertisement information and the target webpage after separating the advertisement information on a second screen and a first screen respectively. Because the content of the advertisement information is possibly related to the content of the target webpage, the advertisement information displayed on the second screen can be displayed simultaneously with the target webpage displayed on the first screen after the advertisement information is separated, and a user can conveniently and synchronously browse the content and the advertisement content of the target webpage; the advertisement information displayed on the second screen is closed along with the closing of the target webpage displayed on the first screen after the advertisement information is separated, so that the waste of power resources caused by the long-time display of the advertisement information and the influence on the display of other contents on the second screen are prevented.
In addition, the acquiring of the target webpage to be displayed specifically includes: and sending an access request of the target webpage to a server, and receiving a hypertext markup language (HTML) source code of the target webpage returned by the server.
In addition, the determining whether the target webpage to be displayed contains advertisement information specifically includes: analyzing a hypertext markup language (HTML) source code of the target webpage to acquire information of the target webpage; judging whether the information of the target webpage has advertisement identification characters or not; if the advertisement identification character exists in the information of the target webpage, judging that the target webpage contains advertisement information; and if the advertisement identification character does not exist in the information of the target webpage, judging that the target webpage does not contain advertisement information. Whether the advertisement information exists in the target webpage is judged through the advertisement identification characters, so that the identification calculation amount can be reduced, and meanwhile, the advertisement information in the target webpage can still be accurately identified.
In addition, the determining whether the information of the target webpage contains the advertisement identification character specifically includes: judging whether the information of the target webpage contains Uniform Resource Locator (URL) information or not; if the information of the target webpage contains the uniform resource locator URL information, judging whether the uniform resource locator URL information contains the advertisement identification characters; if the Uniform Resource Locator (URL) information contains the advertisement identification character, judging that the advertisement identification character exists in the information of the target webpage; if the information of the target webpage does not contain the uniform resource locator URL information, or the information of the target webpage contains the uniform resource locator URL information but the uniform resource locator URL information does not contain the advertisement identification characters, it is determined that the advertisement identification characters do not exist in the information of the target webpage. The URL information is the address of the webpage resource, whether the advertisement information is contained or not is judged through the URL information, the calculation amount is small, and the identification speed of the advertisement information is high.
In addition, the identifying the advertisement information and separating the advertisement information into the target webpage specifically includes: identifying the URL information containing the advertisement identification character; separating the Uniform Resource Locator (URL) information containing the advertisement identification character from the information of the target webpage. Since the URL information is the address of the webpage resource, the URL information of the uniform resource locator containing the advertisement identification characters in the target webpage is separated, and the advertisement information in the target webpage can be effectively separated.
In addition, the displaying the advertisement information on the second screen and the displaying the target webpage after separating the advertisement information on the first screen specifically include: acquiring the advertisement information according to the URL information containing the advertisement identification characters, and displaying the advertisement information on the second screen; and after the URL containing the advertisement identification characters is separated from the target webpage, the rest information is displayed on the first screen.
In addition, still include: and presetting the advertisement identification characters. The advertisement identification characters are preset, different advertisement identification characters can be preset according to different requirements, and the use is flexible.
Drawings
FIG. 1 is a flowchart of a display method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a display method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present invention in its various embodiments. However, the technical solution claimed in the present invention can be implemented without these technical details and various changes and modifications based on the following embodiments.
A first embodiment of the present invention relates to a display method applied to an electronic device having a first screen and a second screen, as shown in fig. 1, including the steps of:
step S101: and acquiring a target webpage to be displayed.
Specifically, in this step, address information of the target web page is obtained, for example, URL information which is the most widely used uniform resource locator is used, and in this embodiment, the URL information is used for description, it is understood that other methods for identifying a web page address are also applicable, and may be specifically selected according to actual needs. For example, when a user needs to access a certain address, the user may input URL information at a corresponding location of a browser, and the electronic device may obtain the URL information of a target webpage to be displayed, or may obtain an icon or a link of a webpage clicked by the user, and at this time, the electronic device may also obtain the URL information of the target webpage to be displayed. It can be understood that there are many methods for obtaining the URL information of the target web page, and once again, two methods are listed for illustration and are not limited to these two methods, and in the actual use process, other methods may also be used to obtain the URL information of the target web page.
After the URL information of the target webpage is obtained, an access request message of the target webpage is sent to a server side, wherein the request message contains the URL information of the target webpage; after receiving the request message, the server analyzes the request message to obtain the URL information of the target webpage, and feeds back the HTML source code of the target webpage to the browser according to the URL information of the target webpage contained in the request message, and after receiving the HTML source code fed back by the server, the browser analyzes the HTML source code to obtain the content of the target webpage. It should be understood that the HTML source code returned by the server is only the most widely used source code, and may also be other kinds of source code, which is again only for example and is not limited, and the specific source code kind may be selected according to actual needs.
Step S102: judging whether the target webpage to be displayed contains the advertisement information, if the target webpage to be displayed does not contain the advertisement information, executing the step S103; if the target webpage to be displayed contains the advertisement information, step S104 is executed.
Specifically, in this step, after the electronic device has analyzed the HTML source code fed back by the server and obtained the information of the target web page, it may determine whether the information of the target web page includes the advertisement identification character. If there is no advertisement character, it indicates that there is no advertisement information in the information of the target webpage, and then step S103 is executed; if the advertisement identification character exists, it indicates that the advertisement information exists in the information of the target webpage, and then step S104 is executed.
In the following, how to determine whether the advertisement identification character exists in the information of the target webpage is described, it is understood that the method for determining whether the advertisement identification character exists in the information of the target webpage described below is only a specific example in the present embodiment, and in the actual application process, other determination methods may be used, which are not listed one by one again.
Specifically, after the information of the target webpage is obtained, whether URL information exists in the information of the target webpage or not is judged, and the advertisement information is added to the information of the target webpage after the content setting of the target webpage is completed, so that all the advertisement information is not doped into the information of the target webpage, but the URL information of the advertisement information is added to the information of the target webpage, and the URL information is accessed in the loading process of the target webpage, so that the advertisement information is loaded; therefore, if there is no URL information in the information of the target web page, that is, there is no address link of another web page, that is, there is no advertisement information, that is, it is determined that the information of the target web page does not include advertisement information, step S103 is executed; if the information of the target webpage contains URL information, the information indicating the target webpage contains address information of other webpages, when the target webpage is loaded, a coworker goes to other webpages, but the URL information contained in the information of the target webpage does not point to advertisement information, and possibly some sub webpages rendering the target webpage, at this time, the electronic device identifies the URL information contained in the target webpage, judges whether advertisement identification characters exist in the URL information, if the advertisement identification characters do not exist, indicates that the URL information points to a subnet page rendering the current target webpage, and then executes step S103; if there is an advertisement identification character in the URL information, it indicates that the URL information includes URL information pointing to an advertisement web page, and at this time, step S104 is executed.
It should be noted that, in this step, the advertisement identification character includes an obvious advertisement tag in the URL information, for example, the URL information includes characters such as "advertisement" or "advertisement"; the advertisement identification character setting device further comprises a preset advertisement mark, namely an advertisement identification character set according to actual needs. It is understood that the advertisement identification characters may also include other types, which may be selected according to actual needs, and are not listed here.
Among them, HTML, i.e., hypertext markup language, is an application under a standard general markup language, and is a specification, a standard, which marks various parts of a web page to be displayed by markup symbols. The web page file is a text file, and by adding a marker in the text file, the browser can be informed of how to display the contents (such as how to process words, how to arrange pictures, how to display pictures, etc.). The browser reads the webpage files in sequence, then explains and displays the marked content according to the marker, the written error mark does not indicate the error, the explanation execution process is not stopped, and the builder can only analyze the error reason and the error part through the display effect. It should be noted that different browsers may have different interpretations of the same token and thus different display effects.
The URL, i.e. the uniform resource locator, is a compact representation of the location and access method of a resource available from the internet, and is the address of a standard resource on the internet. Each file on the internet has a unique URL that contains information indicating the location of the file and how the browser should handle it.
In the use process, a plurality of URLs can be arranged in one HTML, and one URL can only point to one HTML.
Step S103: and displaying the target webpage to be displayed on the first screen or the second screen.
Specifically, in this step, if the URL information is not detected in the information of the target web page in step S102, the information of the target web page is directly loaded, and the target web page is displayed on the first screen or the second screen. If the URL information is detected in the information of the target web page but the advertisement identification character is not detected in the URL information in step S102, the information of the target web page and the URL information are loaded and the target web page and the sub-web page pointed by the URL information are simultaneously displayed on the first screen or the second screen.
It should be noted that, in this step, specifically, the target web page is displayed on the first screen or the second screen, and may be selected according to a preset default screen, that is, a default display screen is preset in the first screen and the second screen, and in the case of no other operation, the default screen is preferentially displayed, or a user may directly specify which screen to display on, and of course, there are many other methods, and specific methods may be selected according to actual needs, and are not listed here.
Step S104: and separating the advertisement information into a target webpage to be displayed.
Specifically, if it is determined in step S102 that the information of the target web page includes URL information and the URL information includes an advertisement identification feature, in this step, URL information with an advertisement tag feature is specifically selected, the URL information including the advertisement identification feature is separated into information of the target web page, and URL information and other information that do not include the advertisement identification feature in the target web page are retained.
Step S105: and displaying the target webpage after the advertisement information is separated on the first screen, and displaying the separated advertisement information on the second screen.
Specifically, after the URL information with the advertisement identification feature is separated into the target web page information in step S104, the advertisement information pointed by the URL information with the advertisement identification feature is acquired according to the separated URL information with the advertisement identification feature, and then the acquired advertisement information is displayed on the second screen; and after the URL information with the advertisement identification characteristic is separated, the rest information of the target webpage is displayed on the first screen.
It can be understood that, the first screen and the second screen are relatively speaking, the screen on which the advertisement information is displayed may be used as the second screen, or the screen on which the information of the remaining target web page is displayed after the URL information with the advertisement identification feature is separated may be used as the second screen, but there is no fixed display screen, and which kind of information is specifically displayed on which screen may be determined according to a preset default screen or according to an instruction of a user, and these may be flexibly selected according to actual needs.
In this step, the advertisement and the target web page are not limited to being displayed on two different screens, but may be displayed on a plurality of screens, for example, advertisement information may be classified and advertisement information of different categories may be displayed on different screens; the multiple screens are not limited to be located on the same electronic device, and can also be located on different electronic devices, and particularly can be flexibly used according to actual needs.
Compared with the prior art, in the first embodiment of the present invention, after the information of the target webpage is acquired, the information of the target webpage is analyzed to identify the advertisement information in the information of the target webpage, the identified advertisement information is separated into the information of the target webpage, the separated advertisement information is displayed on the second screen, and after the advertisement information is separated, the remaining information of the target webpage is displayed on the first screen, that is, the two are displayed separately. After the advertisement information is separated, the information of the remaining target webpage does not contain the advertisement information any more, so that the advertisement information cannot be displayed when the information is displayed on the first screen, and the user cannot be interfered by the advertisement information when browsing the information of the target webpage through the first screen; meanwhile, the advertisement information is not intercepted and is displayed on the second screen, and when a user browses a target webpage, the user can acquire the required information from the advertisement information only by switching the screens to browse the advertisement information. Therefore, the advertisement information can be displayed on the premise of not influencing the normal webpage browsing of the user, and the user can conveniently acquire the required advertisement information when needing to browse the advertisement. Furthermore, methods of judging whether the target webpage has the advertisement information or not through the advertisement identification characters, judging whether the target webpage has the advertisement information or not through the URL information and the like can ensure the accuracy of the judgment result through smaller calculation amount.
A second embodiment of the present invention relates to a display method. The second embodiment is a further improvement of the first embodiment, and as shown in fig. 2, includes the following steps:
step S201: and acquiring a target webpage to be displayed.
Step S202: judging whether the target webpage to be displayed contains the advertisement information, if the target webpage to be displayed does not contain the advertisement information, executing the step S203; if the target webpage to be displayed contains the advertisement information, step S204 is executed.
Step S203: and displaying the target webpage to be displayed on the first screen or the second screen.
Step S204: and separating the advertisement information into a target webpage.
It can be understood that, since steps S201 to S204 in this embodiment are substantially the same as steps S101 to S104 in the first embodiment, the information of the target web page to be displayed is obtained, and then whether the advertisement information exists in the target web page is determined, if the advertisement information does not exist, the advertisement information is directly displayed on the first screen, and if the advertisement information exists, the advertisement information is separated from the information of the target web page, which is not described herein again.
Step S205: and synchronously displaying the separated advertisement information on the second screen when the target webpage after the advertisement information is separated is displayed on the first screen.
Specifically, after the advertisement information is separated into the information of the target web page in step S204, in this step, the information of the remaining target web page after the advertisement information is separated is displayed on the first screen, and the separated advertisement information is synchronously displayed on the second screen. That is, the separated advertisement information is displayed on the second screen while the information of the remaining target web page is displayed on the first screen, and when the information of the remaining target web page displayed on the first screen disappears while the target web page is closed, the separated advertisement information displayed on the second screen also disappears.
Preferably, the display screens of the advertisement information and the target webpage are switched in real time according to the operation of the user.
In the following, specific implementation details of the synchronous display will be described in detail, it being understood that the following description is only one embodiment and is not a necessity of the present embodiment.
When the advertisement display method provided by this embodiment is implemented by an electronic device, the electronic device needs to include a synchronization control circuit, more than one motherboard, and more than two screens, at least one screen is inserted and connected to any one motherboard, the synchronization control circuit includes a frame synchronization control circuit and a reference clock generation circuit, a signal output end of the frame synchronization control circuit is connected to a signal input end of each motherboard, a signal output end of the reference clock generation circuit is connected to a clock signal input end of each screen, a display signal output end of each screen is connected to the frame synchronization control circuit, the frame synchronization control circuit generates a reference frame synchronization signal or takes a frame synchronization signal of a display channel of a preset screen as a reference frame synchronization signal, and determines a deviation range between the frame synchronization signal of the display channel of each screen and the reference frame synchronization signal, and each screen adjusts the frame synchronization signal of each corresponding display channel according to the deviation range of each corresponding display channel. And each mainboard synchronously adjusts the frame synchronous signals of the display channels of each corresponding screen according to the reference frame synchronous signals of the frame synchronous control circuit. The synchronous display device comprises a synchronous display device, a frame synchronization control circuit and a reference clock generation circuit, wherein all mainboards in the synchronous display device are connected with the same frame synchronization control circuit, all screens are connected with the same reference clock generation circuit, clock signals of all screens are synchronized through reference clock signals generated by the same clock reference clock generation circuit, synchronous output is carried out according to the reference frame synchronization signals generated or determined by the frame synchronization control circuit, namely, the same reference frame synchronization signals and the reference clock signals are adopted to jointly complete display synchronization.
Compared with the prior art, in the second embodiment of the invention, the advertisement information and the target webpage information left after the advertisement information and the separated advertisement information are displayed in a split screen mode in the first embodiment, so that the advertisement information can be displayed on the premise of not influencing the normal webpage browsing of a user, the user can conveniently acquire the required advertisement information and other technical effects when needing to browse the advertisement, the advertisement information and the target webpage information are synchronously displayed on the second screen and the first screen, the target webpage is displayed on the first screen, the advertisement information is displayed on the second screen, the user can browse webpage content and advertisement content synchronously, and the browsing experience of the user is improved; the advertisement information displayed on the second screen is closed along with the closing of the target webpage displayed on the first screen after the advertisement information is separated, so that the waste of power resources caused by the long-time display of the advertisement information and the influence on the display of other contents on the second screen are prevented. Furthermore, the display screens of the advertisement information and the target webpage information can be converted in real time according to the operation of the user, so that the conversion between the browsing of the target webpage and the browsing of the advertisement by the user is further facilitated, and the user experience is improved.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present invention relates to an electronic apparatus, as shown in fig. 3, including: at least one processor 301; and a memory 302 communicatively coupled to the at least one processor 301; the memory 302 stores instructions executable by the at least one processor 301, and the instructions are executed by the at least one processor 301 to enable the at least one processor 301 to execute the electronic device as described above.
Where the memory 302 and the processor 301 are coupled in a bus, the bus may comprise any number of interconnected buses and bridges, the buses coupling one or more of the various circuits of the processor 301 and the memory 302. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 301 is transmitted over a wireless medium through an antenna, which further receives the data and transmits the data to the processor 301.
The processor 301 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 302 may be used to store data used by processor 301 in performing operations.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.
Claims (10)
1. A display method applied to an electronic device having a first screen and a second screen, comprising:
acquiring a target webpage to be displayed;
judging whether the target webpage to be displayed contains advertisement information or not;
if the target webpage contains the advertisement information, separating the advertisement information into the target webpage;
and displaying the advertisement information on the second screen, and displaying the target webpage after the advertisement information is separated on the first screen.
2. The display method according to claim 1, wherein the displaying the advertisement information on the second screen and the displaying the target web page after separating the advertisement information on the first screen specifically include:
and synchronously displaying the advertisement information and the target webpage after the advertisement information is separated on the second screen and the first screen respectively.
3. The display method according to claim 1, wherein the acquiring the target webpage to be displayed specifically comprises:
and sending an access request of the target webpage to a server, and receiving a hypertext markup language (HTML) source code of the target webpage returned by the server.
4. The method according to claim 3, wherein the determining whether the target webpage to be displayed includes advertisement information specifically comprises:
analyzing a hypertext markup language (HTML) source code of the target webpage to acquire information of the target webpage;
judging whether the information of the target webpage has advertisement identification characters or not;
if the advertisement identification character exists in the information of the target webpage, judging that the target webpage contains advertisement information;
and if the advertisement identification character does not exist in the information of the target webpage, judging that the target webpage does not contain advertisement information.
5. The method according to claim 4, wherein the determining whether the information of the target webpage contains the advertisement identification character specifically comprises:
judging whether the information of the target webpage contains Uniform Resource Locator (URL) information or not;
if the information of the target webpage contains the uniform resource locator URL information, judging whether the uniform resource locator URL information contains the advertisement identification characters;
if the Uniform Resource Locator (URL) information contains the advertisement identification character, judging that the advertisement identification character exists in the information of the target webpage;
if the information of the target webpage does not contain the uniform resource locator URL information, or the information of the target webpage contains the uniform resource locator URL information but the uniform resource locator URL information does not contain the advertisement identification characters, it is determined that the advertisement identification characters do not exist in the information of the target webpage.
6. The display method according to claim 5, wherein the separating the advertisement information into the target webpage specifically comprises:
identifying the URL information containing the advertisement identification character;
separating the Uniform Resource Locator (URL) information containing the advertisement identification character from the information of the target webpage.
7. The method according to claim 6, wherein the displaying the advertisement information on the second screen and the displaying the target web page after separating the advertisement information on the first screen specifically include:
acquiring the advertisement information according to the URL information containing the advertisement identification characters, and displaying the advertisement information on the second screen;
and after the URL containing the advertisement identification characters is separated from the target webpage, the rest information is displayed on the first screen.
8. The display method according to any one of claims 4 to 7, further comprising:
and presetting the advertisement identification characters.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a display method according to any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the display method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810802234.6A CN109145244A (en) | 2018-07-20 | 2018-07-20 | Display methods, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810802234.6A CN109145244A (en) | 2018-07-20 | 2018-07-20 | Display methods, electronic equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109145244A true CN109145244A (en) | 2019-01-04 |
Family
ID=64801212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810802234.6A Pending CN109145244A (en) | 2018-07-20 | 2018-07-20 | Display methods, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109145244A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111327768A (en) * | 2020-02-25 | 2020-06-23 | 维沃移动通信(杭州)有限公司 | Display control method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1363061A (en) * | 2000-02-21 | 2002-08-07 | 汤普汉德公司 | Data processing system using a dual monitor and controlling method of network system thereby |
CN1363060A (en) * | 2000-02-03 | 2002-08-07 | 汤普汉德公司 | System and method for Internet advertisement using monitor inducing main display and sub display |
CN102929871A (en) * | 2011-08-08 | 2013-02-13 | 腾讯科技(深圳)有限公司 | Webpage browsing method and device and mobile terminal |
CN103946882A (en) * | 2011-12-02 | 2014-07-23 | 索尼公司 | Information processing device and program |
-
2018
- 2018-07-20 CN CN201810802234.6A patent/CN109145244A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1363060A (en) * | 2000-02-03 | 2002-08-07 | 汤普汉德公司 | System and method for Internet advertisement using monitor inducing main display and sub display |
CN1363061A (en) * | 2000-02-21 | 2002-08-07 | 汤普汉德公司 | Data processing system using a dual monitor and controlling method of network system thereby |
CN102929871A (en) * | 2011-08-08 | 2013-02-13 | 腾讯科技(深圳)有限公司 | Webpage browsing method and device and mobile terminal |
CN103946882A (en) * | 2011-12-02 | 2014-07-23 | 索尼公司 | Information processing device and program |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111327768A (en) * | 2020-02-25 | 2020-06-23 | 维沃移动通信(杭州)有限公司 | Display control method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102436987B1 (en) | Method and terminal device for extracting web page content | |
CN104426925B (en) | Web page resources acquisition methods and device | |
EP2648388B1 (en) | Method, system, and device for displaying page | |
CN105528408A (en) | Page display method and apparatus | |
US20170192941A1 (en) | Computer-Automated Generation of Application Deep Links | |
CN113382083B (en) | Webpage screenshot method and device | |
CN101860734B (en) | Method for implementing incremental transmission and display of dynamic images through AJAX | |
CN104317570B (en) | The apparatus and method of dynamic analysis Web applications | |
EP3528474B1 (en) | Webpage advertisement anti-shielding methods and content distribution network | |
CN104731869B (en) | The page shows method and device | |
CN112685671A (en) | Page display method, device, equipment and storage medium | |
CN102662837A (en) | Testing method and system of browser | |
EP3080722B1 (en) | Web page rendering on wireless devices | |
CN103678343A (en) | Method and device for prompting webpage loading progress | |
CN106549989A (en) | A kind of data transmission method and its system, user terminal, application server | |
CN106599023A (en) | Picture display optimization method and apparatus | |
CN110895481A (en) | Rendering method, device and system of desktop application | |
CN103488508B (en) | Browser working method, browser and terminal equipment | |
CN111431767A (en) | Multi-browser resource synchronization method and device, computer equipment and storage medium | |
CN111125605A (en) | Page element acquisition method and device | |
CN110647327A (en) | Method and device for dynamic control of user interface based on card | |
CN104731817A (en) | Webpage display method and device | |
CN109684570A (en) | Web information processing method and device | |
CN111783010B (en) | Webpage blank page monitoring method, device, terminal and storage medium | |
CN109145244A (en) | Display methods, electronic equipment and computer readable storage 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190104 |
|
RJ01 | Rejection of invention patent application after publication |