CN111414563A - Webpage interaction method and device, computer equipment and storage medium - Google Patents

Webpage interaction method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111414563A
CN111414563A CN202010209161.7A CN202010209161A CN111414563A CN 111414563 A CN111414563 A CN 111414563A CN 202010209161 A CN202010209161 A CN 202010209161A CN 111414563 A CN111414563 A CN 111414563A
Authority
CN
China
Prior art keywords
webpage
embedded
request
embedded webpage
interaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010209161.7A
Other languages
Chinese (zh)
Other versions
CN111414563B (en
Inventor
刘俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN202010209161.7A priority Critical patent/CN111414563B/en
Publication of CN111414563A publication Critical patent/CN111414563A/en
Application granted granted Critical
Publication of CN111414563B publication Critical patent/CN111414563B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The disclosure provides a method and a device for webpage interaction, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: and if the interaction management process determines that the second embedded webpage is an interactive webpage according to the identifier of the second embedded webpage, sending an acquisition request of the request content to the second embedded webpage, receiving the request content sent by the second embedded webpage by the interaction management process, and sending the request content sent by the second embedded webpage to the first embedded webpage. Through the method and the device, the webpage display jamming can be reduced.

Description

Webpage interaction method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for web page interaction, a computer device, and a storage medium.
Background
In an application, two web pages in the application usually interact with each other, and the web pages that interact with each other may be referred to as embedded web pages.
In the related art, the interactive process of the embedded webpage is as follows: the embedded webpage A sends an interaction request to a server (a background server of an application program to which the embedded webpage A belongs), and the interaction request comprises the requested content and the address of the embedded webpage B. After receiving the interaction request, the server may obtain the requested content and the address of the embedded web page B therein. And then the server sends a content acquisition request to the embedded webpage B according to the address of the embedded webpage B. And the embedded webpage B sends the content requested by the embedded webpage A to the server. And the server sends the content requested by the embedded webpage A to the embedded webpage A. In this way, the embedded web page a obtains the content to be requested from the embedded web page B.
Because the interaction of the embedded web page needs the participation of the server, the network bandwidth needs to be occupied in the communication, and thus, in the application program with high interaction, the web page display of the application program is unsmooth due to the network fluctuation.
Disclosure of Invention
The embodiment of the disclosure provides a method and a device for webpage interaction, computer equipment and a storage medium, which can solve the problem of webpage display jamming. The technical scheme is as follows:
in a first aspect, a method for web page interaction is provided, where the method includes:
receiving an interactive request sent by a first embedded webpage by an interactive management process of an application program, wherein the interactive request comprises an identifier of a second embedded webpage and an identifier of request content;
if the interaction management process determines that the second embedded webpage is an interactive webpage according to the identifier of the second embedded webpage, sending an acquisition request for requesting content to the second embedded webpage;
and the interaction management process receives the request content sent by the second embedded webpage and sends the request content sent by the second embedded webpage to the first embedded webpage.
In one possible implementation, the method further includes:
and if the identifier of the second embedded webpage exists in the interactive webpage list, determining the second embedded webpage as the interactive webpage.
In one possible implementation, the method further includes:
the interaction management process receives an interaction registration request sent by the second embedded webpage when the second embedded webpage is started;
and the interaction management process adds the identification of the second embedded webpage to the interactive webpage list.
In one possible implementation, the method further includes:
the interaction management process receives a modification message sent by the second embedded webpage, wherein the modification message comprises modification content;
and the interaction management process sends the modified content to a third embedded webpage, wherein the third embedded webpage is the embedded webpage for acquiring the modified content.
In one possible implementation, the embedded web page is an embedded web page of the hypertext markup language HTM L5 type.
In a second aspect, a method for web page interaction is provided, the method including:
the second embedded webpage receives a request for acquiring request content sent by an interactive management process in the application program;
the second embedded webpage determines the request content indicated by the acquisition request;
and the second embedded webpage sends the request content indicated by the acquisition request to the interaction management process.
In one possible implementation, the method further includes:
and the second embedded webpage sends a registration request to an interaction management process when being started, wherein the registration request comprises the identifier of the second embedded webpage.
In one possible implementation, the method further includes:
the second embedded webpage receives a modification instruction of target content to obtain modified content corresponding to the target content;
and the second embedded webpage sends the modified content to the interaction management process.
In a third aspect, an apparatus for web page interaction is provided, the apparatus comprising:
the receiving module is used for receiving an interactive request sent by a first embedded webpage, wherein the interactive request comprises an identifier of a second embedded webpage and an identifier of request content;
the sending module is used for determining that the second embedded webpage is an interactive webpage according to the identifier of the second embedded webpage, and sending an acquisition request for requesting content to the second embedded webpage;
the receiving module is further configured to receive request content sent by the second embedded webpage;
the sending module is further configured to send the request content sent by the second embedded web page to the first embedded web page.
In one possible implementation, the apparatus further includes: a determination module to:
and if the identifier of the second embedded webpage exists in the interactive webpage list, determining the second embedded webpage as the interactive webpage.
In a possible implementation manner, the receiving module is further configured to: receiving an interactive registration request sent by the second embedded webpage when the second embedded webpage is started;
the determining module is further configured to: and adding the identification of the second embedded webpage to the interactive webpage list.
In a possible implementation manner, the receiving module is further configured to: receiving a modification message sent by the second embedded webpage, wherein the modification message comprises modification content;
the sending module is further configured to: and sending the modified content to a third embedded webpage, wherein the third embedded webpage is an embedded webpage for acquiring the modified content.
In one possible implementation, the embedded web page is an embedded web page of the hypertext markup language HTM L5 type.
In a fourth aspect, an apparatus for web page interaction is provided, the apparatus comprising:
the receiving module is used for receiving an acquisition request of request content sent by an interactive management process in an application program;
a determining module, configured to determine request content indicated by the obtaining request;
and the sending module is used for sending the request content indicated by the acquisition request to the interaction management process.
In a possible implementation manner, the sending module is further configured to send a registration request to an interaction management process when the interaction management process is started, where the registration request includes an identifier of the second embedded web page.
In a possible implementation manner, the receiving module is further configured to receive a modification instruction of the target content, and obtain a modified content corresponding to the target content;
the sending module is further configured to send the modified content to the interaction management process.
In a fifth aspect, a computer device is provided, which includes a processor and a memory, where at least one computer instruction is stored, and the computer instruction is loaded and executed by the processor to implement the operations performed by the method for web page interaction according to the first aspect or the operations performed by the method for web page interaction according to the second aspect.
In a sixth aspect, a computer-readable storage medium is provided, in which at least one computer instruction is stored, the computer instruction being loaded and executed by a processor to implement the operations performed by the method for web page interaction according to the first aspect or the operations performed by the method for web page interaction according to the second aspect.
The technical scheme provided by the embodiment of the disclosure has the following beneficial effects:
in the embodiment of the disclosure, when the embedded web page in the application program is interacted, the interaction can be performed through the interaction management process in the application program, and a background server of the application program is not needed, so that the network bandwidth is not occupied, and the display pause of the web page can be reduced.
Drawings
FIG. 1 is a schematic view of a scenario of web page interaction provided by an embodiment of the present disclosure;
FIG. 2 is a flow chart of a method of web page interaction provided by an embodiment of the present disclosure;
FIG. 3 is a flow chart of a method of web page interaction provided by an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of an apparatus for web page interaction provided by an embodiment of the present disclosure;
FIG. 5 is a schematic structural diagram of an apparatus for web page interaction provided by an embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of an apparatus for web page interaction provided by an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a terminal provided in an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
In the prior art, background servers (referred to as servers) of application programs are generally used for interaction, but the embedded webpages with more interaction frequently communicate with the servers, so that more network bandwidth is occupied, webpage display cards of the application programs are possibly caused, and a method for reducing the page display card pause is needed.
The embodiment of the disclosure provides a method for webpage interaction, and an execution subject of the method can be an interaction management process of an application program (also referred to as a client). The application is installed on a terminal that includes a processor, a memory, and a transceiver. The processor may be used for performing the processing of the web page interaction process, the transceiver may be used for receiving and transmitting data in the web page interaction process, and the memory may be used for data required by the web page interaction process and generated data, etc.
As shown in fig. 1, in the embodiment of the present disclosure, an application includes a first embedded web page, a second embedded web page, and an interaction management process. The first embedded webpage is any embedded webpage in the application program, and the second embedded webpage is any embedded webpage except the second embedded webpage in the application program. And the interaction management process is used for managing the interaction processing between the first embedded webpage and the second embedded webpage.
As shown in fig. 2, a flow of a method for web page interaction is provided in the embodiment of the present disclosure:
step 201, an interaction management process of an application program receives an interaction request sent by a first embedded webpage, wherein the interaction request includes an identifier of a second embedded webpage and an identifier of request content.
The identifier of the second embedded webpage can be an address of the second embedded webpage.
In this embodiment, when the first embedded web page is displayed, an interactive request may be generated to request a part of content from the second embedded web page. And adding the identifier of the second embedded webpage and the identifier of the requested content in the interactive request, wherein the requested content is the content to be requested by the first embedded webpage from the second embedded webpage.
The first inline web page may then send an interaction request to the interaction management process. And the interaction management process receives the interaction request sent by the first embedded webpage, analyzes the interaction request and obtains the identifier of the second embedded webpage and the identifier of the request content.
Step 202, if the interaction management process determines that the second embedded webpage is an interactive webpage according to the identifier of the second embedded webpage, sending an acquisition request for requesting content to the second embedded webpage.
The interactive webpage refers to an embedded webpage capable of interacting with other embedded webpages.
In this embodiment, the interaction management process may determine whether the second embedded web page is an interactable web page using the identifier of the second embedded web page. If the interaction management process determines that the second embedded webpage is an interactive webpage, an acquisition request of the request content can be generated, wherein the acquisition request comprises the identifier of the request content. The interaction management process may then send a fetch request for the requested content to the second embedded web page using the address of the second embedded web page.
After receiving the acquisition request, the second embedded webpage can analyze the acquisition request to obtain the identifier of the requested content. And then the second embedded webpage uses the identification of the request content to determine the request content corresponding to the identification of the request content. The second embedded web page then sends the requested content to the interaction management process.
Step 203, the interactive management process receives the request content sent by the second embedded webpage and sends the request content sent by the second embedded webpage to the first embedded webpage.
In this embodiment, the interaction management process receives the request content sent by the second embedded web page, and may send the request content to the first embedded web page. And the first embedded webpage receives the request content and displays the content corresponding to the request content in the first embedded webpage according to the request content. Thus, the first embedded web page receives the content to be requested from the second embedded web page.
For example, in the embodiment of fig. 2, the first embedded web page is an a web page, the second embedded web page is a B web page, the B web page is a web page triggered by a button in the a web page, there are currently 6 buttons in the a web page, and the B web page is currently triggered by a 4 th button. The 3 rd button is deleted from the webpage A, when the webpage B is triggered again, the webpage B can request which button the webpage A belongs to trigger from the webpage A through an interactive management process, and the webpage A deletes the 3 rd button at the moment, so that the webpage B acquires the current 3 rd button, and the webpage B is triggered through the 3 rd button.
Therefore, the interaction media of the embedded webpage in the application program is the interaction management process in the application program, and a background server of the application program is not needed, so that the jamming of the webpage can be reduced.
In one possible implementation, in step 202, the interaction management process may determine that the second embedded web page is an interactable page using:
and if the identifier of the second embedded webpage exists in the interactive webpage list, determining the second embedded webpage as the interactive webpage.
In this embodiment, an interactive web page list is stored in the interaction management process, where the interactive web page list includes an identifier of an embedded web page that can be interacted.
The interaction management process may check to see if the identity of the second embedded web page exists in the list of interactable web pages. If the identifier of the second embedded webpage exists in the interactive webpage list, the interaction management process may determine that the second embedded webpage is an interactive webpage. If the identifier of the second embedded webpage does not exist in the interactive webpage list, the interaction management process may determine that the second embedded webpage is a non-interactive webpage.
In addition, when the interaction management process determines that the second embedded webpage is a non-interactive webpage, a failure message requesting for acquiring the content may be sent to the first embedded webpage. The first embedded webpage receives the acquisition failure message, can send an acquisition request of the request content to a background server of an application program to which the first embedded webpage belongs, and acquires the request content from the second embedded webpage through the server.
In a possible implementation manner, in this embodiment of the present disclosure, the interactive embedded web page is to be registered in the interaction management process to indicate that the interactive embedded web page is an interactive web page, and the processing is:
the interaction management process receives an interaction registration request sent by the second embedded webpage when the second embedded webpage is started; and the interaction management process adds the identification of the second embedded webpage to the interactive webpage list.
In this embodiment, after the second embedded web page is started, the interactive registration request may be generated, or the stored interactive registration request may be acquired. The interactive registration request includes an identification of the second inline web page. The second inline web page then sends the interactive registration request to the interactive management process.
After receiving the interactive registration request, the interactive management process may parse the interactive registration request to obtain the identifier of the second embedded web page. And then the interactive management process adds the identifier of the second embedded webpage to the interactive webpage list.
In addition, each time the application program to which the interaction management process belongs is closed, the interaction management process may delete the interactable list.
In a possible implementation manner, in this embodiment of the present disclosure, after the second embedded web page modifies its own content, other embedded web pages including the content also perform a modification process:
the interaction management process receives a modification message sent by the second embedded webpage, wherein the modification message comprises modification content; and the interaction management process sends the modified content to a third embedded webpage, wherein the third embedded webpage is the embedded webpage for acquiring the modified content.
In the disclosed embodiment, the user may modify the content of the second embedded web page during the use of the application, such that the second embedded web page includes the modified content. For example, if the second embedded web page is a web page that includes a nickname for the user, and the user modifies the nickname in the second embedded web page, then the modified content is the modified nickname.
The second inline web page may generate a modification message including the modified content in the modification message. The second inline web page then sends the modification message to the interaction management process. And the interactive management process receives the modification message, analyzes the message and acquires the modification content. The interaction management process may send the modified content to all of the embedded web pages that include the modified content (which may be referred to as a third embedded web page). Therefore, all the embedded webpages needing to acquire the modified content.
It should be noted here that, currently, some third embedded web pages may not be displayed, so the interaction management process only notifies that modified content exists, and does not pay attention to the processing results of these embedded web pages.
In a possible implementation manner, in this embodiment of the present disclosure, after the second embedded web page modifies its own content (the modified content may be referred to as modified content), the interaction management process broadcasts a processing procedure of modifying the content:
and the interactive management process receives the modification message sent by the second embedded webpage, analyzes the message and acquires the modification content. The interaction management process can send the modified content to all embedded web pages in the application program to which the interaction management process belongs. Thus, the embedded web page that wants to acquire the modified content can acquire the modified content.
It should be noted here that, currently, some embedded web pages that acquire modified content may not be displayed, so the interaction management process only notifies that modified content exists and does not pay attention to the processing results of these embedded web pages. In addition, all the embedded web pages may not need to acquire the modified content, so the interaction management process only notifies that the modified content exists and does not pay attention to the processing results of the embedded web pages.
In one possible implementation, the embedded webpages mentioned in the embodiment of the present disclosure are all embedded webpages of H5 type.
It should be noted that, in the embodiment of the present disclosure, each time the embedded web page is opened for the first time, the initialization content needs to be acquired from the background server of the application program. When the embedded webpage is opened again in the following, the interaction between the embedded webpages can be carried out in the mode of the embodiment of the disclosure.
In addition, in the embodiment of the present disclosure, in order to better understand the embodiment of the present disclosure, a signaling diagram as shown in fig. 3 is also provided:
step 301, a first embedded webpage sends an interaction request to an interaction management process;
step 302, the interactive management process receives an interactive request;
step 303, the interaction management process determines that the second embedded webpage is an interactive webpage according to the identifier of the second embedded webpage, and sends an acquisition request for requesting content to the second embedded webpage;
step 304, the second embedded webpage receives an acquisition request of the request content;
305, the second embedded webpage sends request content to the interactive management process;
step 306, the interactive management process receives the request content sent by the second embedded webpage and sends the request content sent by the second embedded webpage to the first embedded webpage;
step 307, the first embedded webpage receives the request content sent by the interaction management process.
In the embodiment of the disclosure, an interaction management process of an application program receives an interaction request sent by a first embedded webpage, wherein the interaction request comprises an identifier of a second embedded webpage and an identifier of request content, and if the interaction management process determines that the second embedded webpage is an interactive webpage according to the identifier of the second embedded webpage, an acquisition request of the request content is sent to the second embedded webpage. And the interaction management process receives the request content sent by the second embedded webpage and sends the request content sent by the second embedded webpage to the first embedded webpage. Therefore, when the embedded webpage in the application program is interacted, the interaction can be carried out through the interaction management process in the application program, a background server of the application program is not needed, and the network bandwidth is not needed to be occupied, so that the display jam of the webpage can be reduced.
Based on the same technical concept, an embodiment of the present disclosure further provides a device for web page interaction, as shown in fig. 4, the device includes:
a receiving module 410, configured to receive an interaction request sent by a first embedded web page, where the interaction request includes an identifier of a second embedded web page and an identifier of a requested content;
a sending module 420, configured to send an acquisition request for requesting content to the second embedded web page if it is determined that the second embedded web page is an interactive web page according to the identifier of the second embedded web page;
the receiving module 410 is further configured to receive request content sent by the second embedded web page;
the sending module 420 is further configured to send the request content sent by the second embedded web page to the first embedded web page.
In one possible implementation, as shown in fig. 5, the apparatus further includes: a determining module 430 configured to:
and if the identifier of the second embedded webpage exists in the interactive webpage list, determining the second embedded webpage as the interactive webpage.
In a possible implementation manner, the receiving module 410 is further configured to: receiving an interactive registration request sent by the second embedded webpage when the second embedded webpage is started;
the determining module 430 is further configured to: and adding the identification of the second embedded webpage to the interactive webpage list.
In a possible implementation manner, the receiving module 410 is further configured to: receiving a modification message sent by the second embedded webpage, wherein the modification message comprises modification content;
the sending module 420 is further configured to: and sending the modified content to a third embedded webpage, wherein the third embedded webpage is an embedded webpage for acquiring the modified content.
In one possible implementation, the embedded web page is an H5 type embedded web page.
Based on the same technical concept, an embodiment of the present disclosure further provides a device for web page interaction, as shown in fig. 6, the device includes:
a receiving module 610, configured to receive an acquisition request for request content sent by an interaction management process in an application program;
a determining module 620, configured to determine the request content indicated by the obtaining request;
a sending module 630, configured to send the requested content indicated by the obtaining request to the interaction management process.
In a possible implementation manner, the sending module 630 is further configured to send a registration request to an interaction management process at startup, where the registration request includes an identifier of the second embedded web page.
In a possible implementation manner, the receiving module 610 is further configured to receive a modification instruction of a target content, and obtain a modified content corresponding to the target content;
the sending module 630 is further configured to send the modified content to the interaction management process.
In the embodiment of the disclosure, when the embedded web page in the application program is interacted, the interaction can be performed through the interaction management process in the application program, and a background server of the application program is not needed, so that the network bandwidth is not occupied, and the display pause of the web page can be reduced.
It should be noted that: in the web page interaction device provided in the above embodiment, only the division of the above functional modules is used for illustration when web pages are interacted, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the web page interaction device and the web page interaction method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments, and are not described herein again.
Fig. 7 shows a block diagram of a terminal 700 according to an exemplary embodiment of the disclosure, where the terminal 700 may be a smart phone, a tablet pc, an MP3 player (Moving Picture Experts Group Audio L layer III, mpeg Audio layer 3), an MP4 player (Moving Picture Experts Group Audio L layer iv, mpeg Audio layer 4), a notebook pc, or a desktop pc, and the terminal 700 may also be referred to as a user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.
In general, terminal 700 includes: a processor 701 and a memory 702.
Processor 701 may include one or more Processing cores, such as a 4-core processor, an 8-core processor, etc. processor 701 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), a P L a (Programmable logic Array), processor 701 may also include a main processor and a coprocessor, the main processor being a processor for Processing data in a wake-up state, also known as a CPU (Central Processing Unit), the coprocessor being a low-power processor for Processing data in a standby state, in some embodiments, processor 701 may be integrated with a GPU (Graphics Processing Unit) for rendering and rendering content for display, in some embodiments, processor 701 may also include an AI (intelligent processor) for learning operations related to an AI (Artificial Intelligence processor) for computing operations related to display screens.
Memory 702 may include one or more computer-readable storage media, which may be non-transitory. Memory 702 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 702 is used to store at least one instruction for execution by processor 701 to implement a method of web page interaction provided by method embodiments in the present disclosure.
In some embodiments, the terminal 700 may further optionally include: a peripheral interface 703 and at least one peripheral. The processor 701, the memory 702, and the peripheral interface 703 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 704, touch screen display 705, camera 706, audio circuitry 707, positioning components 708, and power source 709.
The peripheral interface 703 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 701 and the memory 702. In some embodiments, processor 701, memory 702, and peripheral interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 701, the memory 702, and the peripheral interface 703 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 704 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 704 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 704 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 704 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 704 may also include NFC (Near Field Communication) related circuits, which are not limited by this disclosure.
The Display 705 is used to Display a UI (User Interface) that may include graphics, text, icons, video, and any combination thereof, when the Display 705 is a touch Display, the Display 705 also has the ability to capture touch signals on or over the surface of the Display 705. the touch signals may be input to the processor 701 for processing as control signals.
The camera assembly 706 is used to capture images or video. Optionally, camera assembly 706 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 706 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 707 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 701 for processing or inputting the electric signals to the radio frequency circuit 704 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 700. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 707 may also include a headphone jack.
The positioning component 708 is used to locate the current geographic location of the terminal 700 to implement navigation or L BS (L o geographic based Service.) the positioning component 708 may be a positioning component based on the united states GPS (global positioning System), the beidou System of china, the greiner System of russia, or the galileo System of the european union.
Power supply 709 is provided to supply power to various components of terminal 700. The power source 709 may be alternating current, direct current, disposable batteries, or rechargeable batteries. When power source 709 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 700 also includes one or more sensors 710. The one or more sensors 710 include, but are not limited to: acceleration sensor 711, gyro sensor 712, pressure sensor 713, fingerprint sensor 714, optical sensor 715, and proximity sensor 716.
The acceleration sensor 711 can detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the terminal 700. For example, the acceleration sensor 711 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 701 may control the touch screen 705 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 711. The acceleration sensor 711 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 712 may detect a body direction and a rotation angle of the terminal 700, and the gyro sensor 712 may cooperate with the acceleration sensor 711 to acquire a 3D motion of the terminal 700 by the user. From the data collected by the gyro sensor 712, the processor 701 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 713 may be disposed on a side bezel of terminal 700 and/or an underlying layer of touch display 705. When the pressure sensor 713 is disposed on a side frame of the terminal 700, a user's grip signal on the terminal 700 may be detected, and the processor 701 performs right-left hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 713. When the pressure sensor 713 is disposed at a lower layer of the touch display 705, the processor 701 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 705. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 714 is used for collecting fingerprints of a user, the identity of the user is identified by the processor 701 according to the fingerprints collected by the fingerprint sensor 714, or the identity of the user is identified by the fingerprint sensor 714 according to the collected fingerprints, when the identity of the user is identified as a credible identity, the user is authorized to execute relevant sensitive operations by the processor 701, the sensitive operations comprise screen unlocking, encrypted information viewing, software downloading, payment, setting change and the like, the fingerprint sensor 714 can be arranged on the front side, the back side or the side of the terminal 700, when a physical key or a manufacturer L ogo is arranged on the terminal 700, the fingerprint sensor 714 can be integrated with the physical key or the manufacturer L ogo.
The optical sensor 715 is used to collect the ambient light intensity. In one embodiment, the processor 701 may control the display brightness of the touch display 705 based on the ambient light intensity collected by the optical sensor 715. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 705 is increased; when the ambient light intensity is low, the display brightness of the touch display 705 is turned down. In another embodiment, processor 701 may also dynamically adjust the shooting parameters of camera assembly 706 based on the ambient light intensity collected by optical sensor 715.
A proximity sensor 716, also referred to as a distance sensor, is typically disposed on a front panel of the terminal 700. The proximity sensor 716 is used to collect the distance between the user and the front surface of the terminal 700. In one embodiment, when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually decreases, the processor 701 controls the touch display 705 to switch from the bright screen state to the dark screen state; when the proximity sensor 716 detects that the distance between the user and the front surface of the terminal 700 gradually becomes larger, the processor 701 controls the touch display 705 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 7 is not intended to be limiting of terminal 700 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal to perform the method of web page interaction in the above embodiments is also provided. The computer readable storage medium may be non-transitory. For example, the computer-readable storage medium may be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is intended to be exemplary only and not to limit the present disclosure, and any modification, equivalent replacement, or improvement made without departing from the spirit and scope of the present disclosure is to be considered as the same as the present disclosure.

Claims (12)

1. A method of web page interaction, the method comprising:
receiving an interactive request sent by a first embedded webpage by an interactive management process of an application program, wherein the interactive request comprises an identifier of a second embedded webpage and an identifier of request content;
if the interaction management process determines that the second embedded webpage is an interactive webpage according to the identifier of the second embedded webpage, sending an acquisition request for requesting content to the second embedded webpage;
and the interaction management process receives the request content sent by the second embedded webpage and sends the request content sent by the second embedded webpage to the first embedded webpage.
2. The method of claim 1, further comprising:
and if the identifier of the second embedded webpage exists in the interactive webpage list, determining the second embedded webpage as the interactive webpage.
3. The method of claim 2, further comprising:
the interaction management process receives an interaction registration request sent by the second embedded webpage when the second embedded webpage is started;
and the interaction management process adds the identification of the second embedded webpage to the interactive webpage list.
4. The method according to any one of claims 1 to 3, further comprising:
the interaction management process receives a modification message sent by the second embedded webpage, wherein the modification message comprises modification content;
and the interaction management process sends the modified content to a third embedded webpage, wherein the third embedded webpage is the embedded webpage for acquiring the modified content.
5. A method according to any one of claims 1 to 3, wherein the embedded web page is of the hypertext markup language HTM L5 type.
6. A method of web page interaction, the method comprising:
the second embedded webpage receives a request for acquiring request content sent by an interactive management process in the application program;
the second embedded webpage determines the request content indicated by the acquisition request;
and the second embedded webpage sends the request content indicated by the acquisition request to the interaction management process.
7. The method of claim 6, further comprising:
and the second embedded webpage sends a registration request to an interaction management process when being started, wherein the registration request comprises the identifier of the second embedded webpage.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
the second embedded webpage receives a modification instruction of target content to obtain modified content corresponding to the target content;
and the second embedded webpage sends the modified content to the interaction management process.
9. An apparatus for web page interaction, the apparatus comprising:
the receiving module is used for receiving an interactive request sent by a first embedded webpage, wherein the interactive request comprises an identifier of a second embedded webpage and an identifier of request content;
the sending module is used for sending an acquisition request for requesting content to the second embedded webpage if the second embedded webpage is determined to be an interactive webpage according to the identifier of the second embedded webpage;
the receiving module is further configured to receive request content sent by the second embedded webpage;
the sending module is further configured to send the request content sent by the second embedded web page to the first embedded web page.
10. An apparatus for web page interaction, the apparatus comprising:
the receiving module is used for receiving an acquisition request of request content sent by an interactive management process in an application program;
a determining module, configured to determine request content indicated by the obtaining request;
and the sending module is used for sending the request content indicated by the acquisition request to the interaction management process.
11. A computer device comprising a processor and a memory, the memory having stored therein at least one computer instruction, the computer instruction being loaded and executed by the processor to perform an operation performed by a method of web page interaction according to any one of claims 1 to 5, or to perform an operation performed by a method of web page interaction according to any one of claims 6 to 8.
12. A computer-readable storage medium having stored therein at least one computer instruction loaded and executed by a processor to perform operations performed by the method of web page interaction of any one of claims 1 to 5 or 6 to 8.
CN202010209161.7A 2020-03-23 2020-03-23 Webpage interaction method, device, computer equipment and storage medium Active CN111414563B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010209161.7A CN111414563B (en) 2020-03-23 2020-03-23 Webpage interaction method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010209161.7A CN111414563B (en) 2020-03-23 2020-03-23 Webpage interaction method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111414563A true CN111414563A (en) 2020-07-14
CN111414563B CN111414563B (en) 2024-03-01

Family

ID=71493198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010209161.7A Active CN111414563B (en) 2020-03-23 2020-03-23 Webpage interaction method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111414563B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160103801A1 (en) * 2014-10-14 2016-04-14 Dropbox, Inc. System and method for serving online synchronized content from a sandbox domain via a temporary address
US20160226969A1 (en) * 2015-01-30 2016-08-04 Akamai Technologies, Inc. Using resource timing data for server push in multiple web page transactions
US20180225715A1 (en) * 2017-02-08 2018-08-09 Arkadium, Inc. Automatic generation of interactive web page content
CN108416021A (en) * 2018-03-06 2018-08-17 腾讯科技(深圳)有限公司 A kind of browsing device net page content processing method, device, electronic equipment and readable medium
CN110032702A (en) * 2019-04-08 2019-07-19 腾讯科技(深圳)有限公司 Webpage display process, device, equipment and storage medium
CN110110263A (en) * 2019-05-13 2019-08-09 北京三快在线科技有限公司 Webpage display process, device, terminal and storage medium
CN110276034A (en) * 2019-06-28 2019-09-24 广州酷狗计算机科技有限公司 Content item methods of exhibiting, device, computer equipment and storage medium
CN110442400A (en) * 2019-08-15 2019-11-12 网易(杭州)网络有限公司 Browser control method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160103801A1 (en) * 2014-10-14 2016-04-14 Dropbox, Inc. System and method for serving online synchronized content from a sandbox domain via a temporary address
US20160226969A1 (en) * 2015-01-30 2016-08-04 Akamai Technologies, Inc. Using resource timing data for server push in multiple web page transactions
US20180225715A1 (en) * 2017-02-08 2018-08-09 Arkadium, Inc. Automatic generation of interactive web page content
CN108416021A (en) * 2018-03-06 2018-08-17 腾讯科技(深圳)有限公司 A kind of browsing device net page content processing method, device, electronic equipment and readable medium
CN110032702A (en) * 2019-04-08 2019-07-19 腾讯科技(深圳)有限公司 Webpage display process, device, equipment and storage medium
CN110110263A (en) * 2019-05-13 2019-08-09 北京三快在线科技有限公司 Webpage display process, device, terminal and storage medium
CN110276034A (en) * 2019-06-28 2019-09-24 广州酷狗计算机科技有限公司 Content item methods of exhibiting, device, computer equipment and storage medium
CN110442400A (en) * 2019-08-15 2019-11-12 网易(杭州)网络有限公司 Browser control method and device

Also Published As

Publication number Publication date
CN111414563B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
CN110674022B (en) Behavior data acquisition method and device and storage medium
CN110278464B (en) Method and device for displaying list
CN110368689B (en) Game interface display method, system, electronic equipment and storage medium
CN111083516B (en) Live broadcast processing method and device
CN111479120A (en) Method, device, equipment and storage medium for issuing virtual red packet in live broadcast room
CN111327694B (en) File uploading method and device, storage medium and electronic equipment
CN111159604A (en) Picture resource loading method and device
CN110569220A (en) Game resource file display method and device, terminal and storage medium
CN110677713B (en) Video image processing method and device and storage medium
CN111625315A (en) Page display method and device, electronic equipment and storage medium
CN109783176B (en) Page switching method and device
CN111008083B (en) Page communication method and device, electronic equipment and storage medium
CN112612539A (en) Data model unloading method and device, electronic equipment and storage medium
CN109819308B (en) Virtual resource acquisition method, device, terminal, server and storage medium
CN111881423A (en) Method, device and system for limiting function use authorization
CN110825465A (en) Log data processing method and device, electronic equipment and storage medium
CN113377647B (en) Page processing method, device, server, terminal and readable storage medium
CN110971692B (en) Method and device for opening service and computer storage medium
CN114785766A (en) Control method of intelligent equipment, terminal and server
CN110336881B (en) Method and device for executing service processing request
CN109189525B (en) Method, device and equipment for loading sub-page and computer readable storage medium
CN113836426A (en) Information pushing method and device and electronic equipment
CN107948171B (en) User account management method and device
CN111241451A (en) Webpage processing method and device, computer equipment and storage medium
CN112132472A (en) Resource management method and device, 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
TA01 Transfer of patent application right

Effective date of registration: 20210111

Address after: 511442 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511446 24 / F, building B-1, Wanda Plaza, Panyu District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200714

Assignee: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

Assignor: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Contract record no.: X2021440000054

Denomination of invention: Method, device, computer device and storage medium for web page interaction

License type: Common License

Record date: 20210208

EE01 Entry into force of recordation of patent licensing contract
GR01 Patent grant
GR01 Patent grant