CN116010744A - Page data processing method and device, electronic equipment and readable storage medium - Google Patents

Page data processing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN116010744A
CN116010744A CN202310119146.7A CN202310119146A CN116010744A CN 116010744 A CN116010744 A CN 116010744A CN 202310119146 A CN202310119146 A CN 202310119146A CN 116010744 A CN116010744 A CN 116010744A
Authority
CN
China
Prior art keywords
page
target page
component
target
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310119146.7A
Other languages
Chinese (zh)
Inventor
原健航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu com Times Technology Beijing Co Ltd
Original Assignee
Baidu com Times Technology Beijing 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 Baidu com Times Technology Beijing Co Ltd filed Critical Baidu com Times Technology Beijing Co Ltd
Priority to CN202310119146.7A priority Critical patent/CN116010744A/en
Publication of CN116010744A publication Critical patent/CN116010744A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a page data processing method, a page data processing device, electronic equipment and a readable storage medium, and relates to the field of computers, in particular to the technical field of application programs or the technical field of front-end development. The specific implementation scheme is as follows: in response to receiving an access request of terminal equipment to a target page, determining page data of the target page, wherein the page data comprises component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component correspond to the access request, the target page integral component corresponds to an integral region of the target page, the target page local component corresponds to a partial region of the target page, and the target page local component is nested in the target page integral component; and returning the page data to the terminal equipment so that the terminal equipment can render the target page based on the page data. Based on the scheme, the matched page content can be displayed for different access requests of the same page, and the use experience of a user is improved.

Description

Page data processing method and device, electronic equipment and readable storage medium
Technical Field
The disclosure relates to the field of computer technology, in particular to the field of application program technology or front-end development technology, and specifically relates to a page data processing method, a device, an electronic device and a readable storage medium.
Background
With the rapid development of internet technology, people increasingly acquire information by browsing application pages or web pages.
The content of the page presented by the page can affect the user experience. If the matched page content can be displayed for different access requests aiming at the same page, the use experience of the user can be effectively improved. Therefore, how to present matched page contents for different access requests of the same page becomes an important technical problem.
Disclosure of Invention
In order to solve at least one of the defects, the disclosure provides a page data processing method, a page data processing device, an electronic device and a readable storage medium.
According to a first aspect of the present disclosure, there is provided a page data processing method, the method comprising:
in response to receiving an access request of terminal equipment to a target page, determining page data of the target page, wherein the page data comprises component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component correspond to the access request, the target page integral component corresponds to an integral region of the target page, the target page local component corresponds to a partial region of the target page, and the target page local component is nested in the target page integral component;
And returning the page data to the terminal equipment so that the terminal equipment can render the target page based on the page data.
According to a second aspect of the present disclosure, there is provided another page data processing method, the method comprising:
sending an access request to a target page to a server;
and responding to the received page data of the target page returned by the server, rendering the page data based on the page data to obtain the target page, wherein the page data comprises component data of a whole target page component and component data of a partial target page component, the whole target page component and the partial target page component correspond to the access request, the whole target page component corresponds to the whole region of the target page, the partial target page component corresponds to the partial region of the target page, and the partial target page component is nested in the whole target page component.
According to a third aspect of the present disclosure, there is provided a page data processing apparatus comprising:
the page data determining module is used for determining page data of the target page in response to receiving an access request of the terminal equipment to the target page, wherein the page data comprises component data of a whole target page component and component data of a partial target page component, the whole target page component and the partial target page component correspond to the access request, the whole target page component corresponds to a whole region of the target page, the partial target page component corresponds to a partial region of the target page, and the partial target page component is nested in the whole target page component;
And the page data returning module is used for returning the page data to the terminal equipment so as to enable the terminal equipment to render the target page based on the page data.
According to a fourth aspect of the present disclosure, there is provided another page data processing apparatus, comprising:
the page access request sending module is used for sending an access request for a target page to the server;
the page data processing module is used for responding to the page data of the target page returned by the server, rendering is conducted on the basis of the page data to obtain the target page, the page data comprise component data of a whole target page component and component data of a partial target page component, the whole target page component and the partial target page component correspond to the access request, the whole target page component corresponds to the whole region of the target page, the partial target page component corresponds to the partial region of the target page, and the partial target page component is nested in the whole target page component.
According to a fifth aspect of the present disclosure, there is provided an electronic device comprising:
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 page data processing method.
According to a sixth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the above-described page data processing method.
According to a seventh aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the above-described page data processing method.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a flow chart of a page data processing method according to an embodiment of the disclosure;
FIG. 2 is a flow chart of another method for processing page data according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of a specific implementation of a page data processing method according to an embodiment of the disclosure;
FIG. 4 is a schematic diagram of a page data processing apparatus according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of another page data processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a block diagram of an electronic device for implementing a page data processing method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The content of the page presented by the page can affect the user experience. If the matched page content (such as the matched layout style or interaction logic) can be displayed for different access requests aiming at the same page, the personalized requirements of different users on different layout styles or interaction logic can be met, and therefore the use experience of the users is effectively improved. Therefore, how to present matched page contents for different access requests of the same page becomes an important technical problem.
In the related art, when a flow test is performed on a page, only different page versions can be generally distinguished, and analysis is performed on user behavior data in the pages of the different page versions. If the matched page contents are displayed on the same page for different access requests, how to analyze the user behavior data generated by the different page contents displayed by the page becomes an important technical problem when the page is subjected to flow test.
The embodiment of the disclosure provides a page data processing method, a device, an electronic device and a readable storage medium, which aim to solve at least one of the above technical problems in the prior art.
Fig. 1 shows a flow chart of a page data processing method according to an embodiment of the disclosure, where, as shown in fig. 1, the method may mainly include:
step S110: in response to receiving an access request of terminal equipment to a target page, determining page data of the target page, wherein the page data comprises component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component correspond to the access request, the target page integral component corresponds to an integral region of the target page, the target page local component corresponds to a partial region of the target page, and the target page local component is nested in the target page integral component;
Step S120: and returning the page data to the terminal equipment so that the terminal equipment can render the target page based on the page data.
The page whole assembly is an assembly developed at the root of the page and corresponds to the page whole area and is used for bearing the whole page content.
The page local assembly is nested in the page integral assembly and corresponds to a partial area of the page, and is used for bearing local page content. In particular, the page content may be divided into different blocks, each block being accepted by the page local component, and style layout and interaction logic implemented within the page local component.
Pages referred to in embodiments of the present disclosure include, but are not limited to, applet pages, web pages, application pages, and the like.
The target page is a page aimed by the access request, the target page whole component is a page whole component contained in the target page, and the target page partial component is a page partial component contained in the target page. The number of the whole target page components can be one, and the number of the partial target page components can be one or more.
In the embodiment of the disclosure, a user can initiate an access request to a target page through a terminal device, a server can determine a target page integral component corresponding to the access request and a corresponding target page local component, then determine page data of the target page, wherein the page data comprises component data of the target page integral component and page data of the component data of the target page local component, so that after the page data is returned to the terminal device, the terminal device renders the target page based on the page data, the rendered target page comprises the target page integral component corresponding to the access request and the corresponding target page local component, a layout pattern or interaction logic matched with the access request can be provided, namely, matched page content is provided for the access request, personalized requirements of different users on different layout patterns or interaction logic can be met, and the use experience of the user is improved.
According to the method provided by the embodiment of the disclosure, page data of a target page is determined by responding to a received access request of terminal equipment to the target page, wherein the page data comprises component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component are corresponding to the access request, the target page integral component corresponds to an integral area of the target page, the target page local component corresponds to a partial area of the target page, and the target page local component is nested in the target page integral component; and returning the page data to the terminal equipment so that the terminal equipment can render the target page based on the page data. Based on the scheme, the matched page content can be displayed for different access requests of the same page, and the use experience of a user is improved.
In the embodiment of the disclosure, when the style difference of the whole page content is large or the interaction logic difference is large, corresponding page whole components can be respectively developed aiming at different style styles or different interaction logics, namely, each page whole component corresponds to at least one similar style or at least one similar interaction logic. And the page contents corresponding to the same page integral component are similar in overall style or similar in interactive logic, only partial page contents are different, corresponding page local components can be respectively developed for the page contents with the differences, and the page contents with the differences can be adapted by adapting the corresponding page local components and nesting the corresponding page local components in the page integral component.
In the embodiment of the disclosure, by adopting the mode of respectively adapting the page integral component and the page local component, the page content matched with the access request can be rapidly and effectively determined, and meanwhile, the page component is more universal, so that the development efficiency is improved.
In the embodiment of the disclosure, the page integral component can also contain some general page contents, the general page contents do not need to be adapted to different access requests, and the development amount of the component can be effectively reduced and the development efficiency can be improved through multiplexing the general page contents.
In the embodiment of the disclosure, the page local component can be configured for the page content with smaller granularity so as to ensure the accurate control of the page display effect and the page interaction logic.
In an optional manner of the disclosure, determining page data of a target page includes:
determining a target grouping identifier corresponding to the access request;
determining a target page integral assembly corresponding to the target grouping identification based on a preset first corresponding relation and a target grouping identification, wherein the first corresponding relation is a corresponding relation between the grouping identification and the page integral assembly;
determining a target page local assembly corresponding to the target grouping identification based on a preset second corresponding relation and a target grouping identification, wherein the second corresponding relation is a corresponding relation between the grouping identification and the page local assembly;
The page data of the target page is determined based on the component data of the target page global component and the component data of the target page local component.
In the embodiment of the disclosure, the target grouping identifier corresponding to the access request can be determined, and then the adaptation of the whole page component and the local page component is performed based on the target grouping identifier.
Specifically, a first correspondence between the group identifier and the page integral component may be preconfigured, and a target page integral component corresponding to the target group identifier is determined according to the first correspondence. A second corresponding relation between the grouping identification and the page local assembly can be preconfigured, and the target page local assembly corresponding to the target grouping identification is determined according to the second corresponding relation.
In an optional manner of the disclosure, determining a target packet identifier corresponding to an access request includes:
acquiring a target user identifier carried in an access request, wherein the target user identifier is a user identifier of a user initiating the access request;
and determining a target grouping identifier corresponding to the target user identifier based on a preset third corresponding relationship and the target user identifier, wherein the third corresponding relationship is the corresponding relationship between the grouping identifier and the user identifier.
In embodiments of the present disclosure, the group identity may be determined based on a target user identity of the user of the access request.
Specifically, a third correspondence between the group identifier and the user identifier may be preconfigured, and a target group identifier corresponding to the target user identifier is determined according to the third correspondence.
As an example, a traffic slicing function may be configured for determining a target packet identity from a target user identity, i.e. based on the traffic slicing function, packets of access requests can be implemented.
In practical use, the target packet identifier corresponding to the access request may also be determined based on other feature information carried by the access request, for example, an IP address corresponding to the access request, a device identifier of a terminal device that initiates the access request, and so on.
In an optional manner of the disclosure, the method further includes:
and receiving user behavior data returned by the terminal equipment, wherein the user behavior data is collected through the target page local component.
In practical application, there may be a need for performing a flow test on a page provided in the present scheme, in order to facilitate the implementation of the flow test, a local page component provided in the present disclosure is further required to have a statistics function, where each local page component may collect user behavior data for itself and output the data, and then the terminal device sends the counted user behavior data to a server for analysis.
As one example, because the page local components are nested in the page global components, the page local components can transmit the collected user behavior data to the page global components by virtue of the communication capability among the components, and the page global components can output the collected user behavior data of each page local component after summarizing. Compared with the method that the page local assembly directly outputs the user behavior data, the page integral assembly gathers the user behavior data collected by each page local assembly and outputs the user behavior data, so that the number of data interfaces for transmitting the user behavior data can be reduced, and development difficulty is reduced.
In the embodiment of the disclosure, the user behavior data can be bound with the target group identifier and used for analyzing the user behavior aiming at different group identifiers.
Fig. 2 is a flow chart illustrating another method for processing page data according to an embodiment of the disclosure, where, as shown in fig. 2, the method may mainly include:
step S210: sending an access request to a target page to a server;
step S220: and responding to the received page data of the target page returned by the server, rendering the page data based on the page data to obtain the target page, wherein the page data comprises component data of a whole target page component and component data of a partial target page component, the whole target page component and the partial target page component correspond to the access request, the whole target page component corresponds to the whole region of the target page, the partial target page component corresponds to the partial region of the target page, and the partial target page component is nested in the whole target page component.
The page whole assembly is an assembly developed at the root of the page and corresponds to the page whole area and is used for bearing the whole page content.
The page local assembly is nested in the page integral assembly and corresponds to a partial area of the page, and is used for bearing local page content. In particular, the page content may be divided into different blocks, each block being accepted by the page local component, and style layout and interaction logic implemented within the page local component.
Pages referred to in embodiments of the present disclosure include, but are not limited to, applet pages, web pages, application pages, and the like.
The target page is a page aimed by the access request, the target page whole component is a page whole component contained in the target page, and the target page partial component is a page partial component contained in the target page. The number of the whole target page components can be one, and the number of the partial target page components can be one or more.
In the embodiment of the disclosure, a user can initiate an access request to a target page through a terminal device, a server can determine a target page integral component corresponding to the access request and a corresponding target page local component, then determine page data of the target page, wherein the page data comprises component data of the target page integral component and page data of the component data of the target page local component, so that after the page data is returned to the terminal device, the terminal device renders the target page based on the page data, the rendered target page comprises the target page integral component corresponding to the access request and the corresponding target page local component, a layout pattern or interaction logic matched with the access request can be provided, namely, matched page content is provided for the access request, personalized requirements of different users on different layout patterns or interaction logic can be met, and the use experience of the user is improved.
According to the method provided by the embodiment of the disclosure, an access request for a target page is sent to a server; and responding to the received page data of the target page returned by the server, rendering the page data based on the page data to obtain the target page, wherein the page data comprises component data of a whole target page component and component data of a partial target page component, the whole target page component and the partial target page component correspond to the access request, the whole target page component corresponds to the whole region of the target page, the partial target page component corresponds to the partial region of the target page, and the partial target page component is nested in the whole target page component. Based on the scheme, the matched page content can be displayed for different access requests of the same page, and the use experience of a user is improved.
According to the method provided by the embodiment of the disclosure, page data of a target page is determined by responding to a received access request of terminal equipment to the target page, wherein the page data comprises component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component are corresponding to the access request, the target page integral component corresponds to an integral area of the target page, the target page local component corresponds to a partial area of the target page, and the target page local component is nested in the target page integral component; and returning the page data to the terminal equipment so that the terminal equipment can render the target page based on the page data. Based on the scheme, the matched page content can be displayed for different access requests of the same page, and the use experience of a user is improved.
In the embodiment of the disclosure, when the style difference of the whole page content is large or the interaction logic difference is large, corresponding page whole components can be respectively developed aiming at different style styles or different interaction logics, namely, each page whole component corresponds to at least one similar style or at least one similar interaction logic. And the page contents corresponding to the same page integral component are similar in overall style or similar in interactive logic, only partial page contents are different, corresponding page local components can be respectively developed for the page contents with the differences, and the page contents with the differences can be adapted by adapting the corresponding page local components and nesting the corresponding page local components in the page integral component.
In the embodiment of the disclosure, by adopting the mode of respectively adapting the page integral component and the page local component, the page content matched with the access request can be rapidly and effectively determined, and meanwhile, the page component is more universal, so that the development efficiency is improved.
In the embodiment of the disclosure, an associated page component which depends on the page content of the page local component to realize loading may also exist in the page, after the page local component completes the adaptation, the page local component may transmit notification information to the associated page component, and the associated page component may acquire the page content of the page local component in response to receiving the notification information, so as to realize subsequent page loading.
In one alternative of the present disclosure, a target page event for a target page local component is generated in response to within the target page;
sending event information of a target page event to a page integral component;
and transmitting event information of the target page event to the target page local component through the page integral component, so that the target page local component responds to the target page event.
In the embodiment of the disclosure, the target page local component needs to respond to the target page event, but the target page local component may not directly acquire the target page event. Therefore, it is desirable to pass event information for a target page event into the page local component so that the page local component can respond to the target page event.
Specifically, because the target page local assembly is nested in the target page integral assembly, the event information of the target page event can be sent to the target page integral assembly first, and then the event information of the target page event is transferred to the target page local assembly through the target page integral assembly by means of the inter-assembly communication capability.
In one alternative of the present disclosure, the target page event includes any one of the following:
A user interaction event;
page lifecycle events.
The user interaction event refers to an event generated when a user performs an operation in a target page, for example, a click event, a page scroll event, and the like.
Page lifecycle events may include page load, unload, update, destroy, and so on.
In an optional manner of the disclosure, the method further includes:
user behavior data is collected by the target page local component,
and sending the user behavior data to a server.
In practical application, there may be a need for performing a flow test on a page provided in the present scheme, in order to facilitate the implementation of the flow test, a local page component provided in the present disclosure is further required to have a statistics function, where each local page component may collect user behavior data for itself and output the data, and then the terminal device sends the counted user behavior data to a server for analysis.
As one example, because the page local components are nested in the page global components, the page local components can transmit the collected user behavior data to the page global components by virtue of the communication capability among the components, and the page global components can output the collected user behavior data of each page local component after summarizing. Compared with the method that the page local assembly directly outputs the user behavior data, the page integral assembly gathers the user behavior data collected by each page local assembly and outputs the user behavior data, so that the number of data interfaces for transmitting the user behavior data can be reduced, and development difficulty is reduced.
In the embodiment of the disclosure, the user behavior data can be bound with the target group identifier and used for analyzing the user behavior aiming at different group identifiers.
As an example, fig. 3 is a schematic flow chart of a specific implementation of a page data processing method provided in an embodiment of the disclosure. This example may be applied to traffic analysis experiments on pages.
As shown in fig. 3, the traffic entry is a uniform address provided for the page. Different terminal devices for the experiment may initiate access requests to the page based on the address.
Experiment A, experiment B and experiment C can be used for different terminal equipment of experiments, and the terminals are equipment which can initiate access requests to pages based on uniform page addresses.
The page integral component a, the page integral component b and the page integral component c are different page integral components. The access request initiated by the terminal equipment for performing experiment A corresponds to the page whole component a, the access request initiated by the terminal equipment for performing experiment B corresponds to the page whole component B, and the access request initiated by the terminal equipment for performing experiment C corresponds to the page whole component C.
The page local component 1, the page local component 2 and the page local component 3 are all page local components embedded in the page integral component b.
Traffic identification, i.e. packet identification. Content input, i.e. inputting content to be displayed. The matched page local assembly can be determined based on the flow identification, and the page content can be displayed based on the style in the page local assembly.
And outputting the event, wherein the page local component can respond to the page event after receiving the event information of the page event, namely outputting the event.
A plurality of page partial components are generally nested in the page whole component, so that the functions of the page partial components can be integrated. The page whole component is further used for receiving event information of the page event and transmitting the event information to the page partial component.
Based on the same principle as the method shown in fig. 1, fig. 4 shows a schematic structural diagram of a page data processing apparatus provided by an embodiment of the present disclosure, and as shown in fig. 4, the page data processing apparatus 40 may include:
the page data determining module 410 is configured to determine, in response to receiving an access request from the terminal device to the target page, page data of the target page, where the page data includes component data of a global component of the target page and component data of a local component of the target page, the global component of the target page and the local component of the target page both correspond to the access request, the global component of the target page corresponds to a global area of the target page, the local component of the target page corresponds to a partial area of the target page, and the local component of the target page is nested in the global component of the target page;
And the page data returning module 420 is configured to return page data to the terminal device, so that the terminal device renders the target page based on the page data.
According to the device provided by the embodiment of the disclosure, page data of a target page is determined by responding to a received access request of terminal equipment to the target page, wherein the page data comprises component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component are corresponding to the access request, the target page integral component corresponds to an integral area of the target page, the target page local component corresponds to a partial area of the target page, and the target page local component is nested in the target page integral component; and returning the page data to the terminal equipment so that the terminal equipment can render the target page based on the page data. Based on the scheme, the matched page content can be displayed for different access requests of the same page, and the use experience of a user is improved.
Optionally, the page data determining module is specifically configured to, when determining the page data of the target page:
determining a target grouping identifier corresponding to the access request;
Determining a target page integral assembly corresponding to the target grouping identification based on a preset first corresponding relation and a target grouping identification, wherein the first corresponding relation is a corresponding relation between the grouping identification and the page integral assembly;
determining a target page local assembly corresponding to the target grouping identification based on a preset second corresponding relation and a target grouping identification, wherein the second corresponding relation is a corresponding relation between the grouping identification and the page local assembly;
the page data of the target page is determined based on the component data of the target page global component and the component data of the target page local component.
Optionally, the page data determining module is specifically configured to, when determining the target packet identifier corresponding to the access request:
acquiring a target user identifier carried in an access request, wherein the target user identifier is a user identifier of a user initiating the access request;
and determining a target grouping identifier corresponding to the target user identifier based on a preset third corresponding relationship and the target user identifier, wherein the third corresponding relationship is the corresponding relationship between the grouping identifier and the user identifier.
Optionally, the apparatus further includes:
and the user behavior data receiving module is used for receiving user behavior data returned by the terminal equipment, wherein the user behavior data is collected through the target page local component.
It will be appreciated that the above-described modules of the page data processing apparatus in the embodiments of the present disclosure have functions of implementing the respective steps of the page data processing method in the embodiment shown in fig. 1. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules may be software and/or hardware, and each module may be implemented separately or may be implemented by integrating multiple modules. For the functional description of each module of the above page data processing apparatus, reference may be specifically made to the corresponding description of the page data processing method in the embodiment shown in fig. 1, which is not repeated herein.
Based on the same principle as the method shown in fig. 2, fig. 5 shows a schematic structural diagram of a page data processing apparatus provided by an embodiment of the present disclosure, and as shown in fig. 5, the page data processing apparatus 50 may include:
a page access request sending module 510, configured to send an access request to a target page to a server;
the page data processing module 520 is configured to respond to receiving page data of a target page returned by the server, render the target page based on the page data, where the page data includes component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component both correspond to the access request, the target page integral component corresponds to an integral area of the target page, the target page local component corresponds to a partial area of the target page, and the target page local component is nested in the target page integral component.
The device provided by the embodiment of the disclosure sends an access request to a target page to a server; and responding to the received page data of the target page returned by the server, rendering the page data based on the page data to obtain the target page, wherein the page data comprises component data of a whole target page component and component data of a partial target page component, the whole target page component and the partial target page component correspond to the access request, the whole target page component corresponds to the whole region of the target page, the partial target page component corresponds to the partial region of the target page, and the partial target page component is nested in the whole target page component. Based on the scheme, the matched page content can be displayed for different access requests of the same page, and the use experience of a user is improved.
Optionally, the device further includes a page event processing module, where the page event processing module is configured to:
generating a target page event for a target page local component in response to the target page;
sending event information of a target page event to a page integral component;
and transmitting event information of the target page event to the target page local component through the page integral component, so that the target page local component responds to the target page event.
Optionally, the target page event includes any one of the following:
a user interaction event;
page lifecycle events.
Optionally, the device further comprises a user behavior data processing module, and the user behavior data processing module is used for:
user behavior data is collected by the target page local component,
and sending the user behavior data to a server.
It will be appreciated that the above-described modules of the page data processing apparatus in the embodiments of the present disclosure have functions of implementing the respective steps of the page data processing method in the embodiment shown in fig. 2. The functions can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules may be software and/or hardware, and each module may be implemented separately or may be implemented by integrating multiple modules. For the functional description of each module of the above-mentioned page data processing apparatus, reference may be specifically made to the corresponding description of the page data processing method in the embodiment shown in fig. 2, which is not repeated herein.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user accord with the regulations of related laws and regulations, and the public order colloquial is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
The electronic device includes: 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 a page data processing method as provided by embodiments of the present disclosure.
Compared with the prior art, the electronic device determines page data of a target page by responding to the access request of the terminal device to the target page, wherein the page data comprises component data of a whole target page component and component data of a partial target page component, the whole target page component and the partial target page component correspond to the access request, the whole target page component corresponds to the whole region of the target page, the partial target page component corresponds to the partial region of the target page, and the partial target page component is nested in the whole target page component; and returning the page data to the terminal equipment so that the terminal equipment can render the target page based on the page data. Based on the scheme, the matched page content can be displayed for different access requests of the same page, and the use experience of a user is improved.
The readable storage medium is a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform a page data processing method as provided by an embodiment of the present disclosure.
Compared with the prior art, the readable storage medium determines page data of a target page by responding to the access request of terminal equipment to the target page, wherein the page data comprises component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component are corresponding to the access request, the target page integral component corresponds to an integral area of the target page, the target page local component corresponds to a partial area of the target page, and the target page local component is nested in the target page integral component; and returning the page data to the terminal equipment so that the terminal equipment can render the target page based on the page data. Based on the scheme, the matched page content can be displayed for different access requests of the same page, and the use experience of a user is improved.
The computer program product comprises a computer program which, when executed by a processor, implements a page data processing method as provided by embodiments of the present disclosure.
Compared with the prior art, the computer program product determines page data of a target page by responding to the access request of the terminal equipment to the target page, wherein the page data comprises component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component correspond to the access request, the target page integral component corresponds to an integral area of the target page, the target page local component corresponds to a partial area of the target page, and the target page local component is nested in the target page integral component; and returning the page data to the terminal equipment so that the terminal equipment can render the target page based on the page data. Based on the scheme, the matched page content can be displayed for different access requests of the same page, and the use experience of a user is improved.
Fig. 6 shows a schematic block diagram of an example electronic device 60 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the electronic device 60 includes a computing unit 610 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 620 or a computer program loaded from a storage unit 680 into a Random Access Memory (RAM) 630. In RAM630, various programs and data required for the operation of device 60 may also be stored. The computing unit 610, ROM620, and RAM630 are connected to each other by a bus 640. An input/output (I/O) interface 650 is also connected to bus 640.
Various components in device 60 are connected to I/O interface 650, including: an input unit 660 such as a keyboard, a mouse, etc.; an output unit 670 such as various types of displays, speakers, and the like; a storage unit 680 such as a magnetic disk, an optical disk, or the like; and a communication unit 690 such as a network card, modem, wireless communication transceiver, etc. The communication unit 690 allows the device 60 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 610 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 610 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 610 performs the page data processing method provided in the embodiments of the present disclosure. For example, in some embodiments, performing the page data processing methods provided in the embodiments of the present disclosure may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 680. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 60 via ROM620 and/or communication unit 690. One or more steps of the page data processing method provided in the embodiments of the present disclosure may be performed when the computer program is loaded into the RAM630 and executed by the computing unit 610. Alternatively, in other embodiments, the computing unit 610 may be configured to perform the page data processing methods provided in embodiments of the present disclosure in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (19)

1. A method of page data processing, comprising:
in response to receiving an access request of terminal equipment to a target page, determining page data of the target page, wherein the page data comprises component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component correspond to the access request, the target page integral component corresponds to an integral region of the target page, the target page local component corresponds to a partial region of the target page, and the target page local component is nested in the target page integral component;
And returning the page data to the terminal equipment so that the terminal equipment renders the target page based on the page data.
2. The method of claim 1, wherein the determining the page data of the target page comprises:
determining a target packet identifier corresponding to the access request;
determining a target page integral component corresponding to the target grouping identifier based on a preset first corresponding relationship and the target grouping identifier, wherein the first corresponding relationship is a corresponding relationship between the grouping identifier and the page integral component;
determining a target page local assembly corresponding to the target grouping identification based on a preset second corresponding relation and the target grouping identification, wherein the second corresponding relation is a corresponding relation between the grouping identification and the page local assembly;
and determining the page data of the target page based on the component data of the whole target page component and the component data of the local target page component.
3. The method of claim 2, wherein the determining the destination packet identification corresponding to the access request comprises:
acquiring a target user identifier carried in the access request, wherein the target user identifier is a user identifier of a user initiating the access request;
And determining a target grouping identifier corresponding to the target user identifier based on a preset third corresponding relationship and the target user identifier, wherein the third corresponding relationship is a corresponding relationship between the grouping identifier and the user identifier.
4. A method according to any one of claims 1-3, further comprising:
and receiving user behavior data returned by the terminal equipment, wherein the user behavior data is collected through the target page local component.
5. A method of page data processing, comprising:
sending an access request to a target page to a server;
and responding to the received page data of the target page returned by the server, rendering the target page based on the page data, wherein the page data comprises component data of a whole target page component and component data of a partial target page component, the whole target page component and the partial target page component correspond to the access request, the whole target page component corresponds to the whole area of the target page, the partial target page component corresponds to the partial area of the target page, and the partial target page component is nested in the whole target page component.
6. The method of claim 5, further comprising:
generating a target page event for the target page local component in response to the target page;
sending the event information of the target page event to the page integral component;
and transmitting event information of the target page event to the target page local component through the page integral component, so that the target page local component responds to the target page event.
7. The method of claim 6, wherein the target page event comprises any of:
a user interaction event;
page lifecycle events.
8. The method of any of claims 5-7, further comprising:
user behavior data is collected by the target page local component,
and sending the user behavior data to the server.
9. A page data processing apparatus comprising:
the system comprises a page data determining module, a target page data processing module and a target page data processing module, wherein the page data determining module is used for determining page data of a target page in response to receiving an access request of terminal equipment to the target page, the page data comprises component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component correspond to the access request, the target page integral component corresponds to an integral area of the target page, the target page local component corresponds to a partial area of the target page, and the target page local component is nested in the target page integral component;
And the page data returning module is used for returning the page data to the terminal equipment so that the terminal equipment can render the target page based on the page data.
10. The apparatus of claim 9, wherein the page data determination module, when determining the page data of the target page, is specifically configured to:
determining a target packet identifier corresponding to the access request;
determining a target page integral component corresponding to the target grouping identifier based on a preset first corresponding relationship and the target grouping identifier, wherein the first corresponding relationship is a corresponding relationship between the grouping identifier and the page integral component;
determining a target page local assembly corresponding to the target grouping identification based on a preset second corresponding relation and the target grouping identification, wherein the second corresponding relation is a corresponding relation between the grouping identification and the page local assembly;
and determining the page data of the target page based on the component data of the whole target page component and the component data of the local target page component.
11. The apparatus of claim 10, wherein the page data determining module, when determining the target packet identifier corresponding to the access request, is specifically configured to:
Acquiring a target user identifier carried in the access request, wherein the target user identifier is a user identifier of a user initiating the access request;
and determining a target grouping identifier corresponding to the target user identifier based on a preset third corresponding relationship and the target user identifier, wherein the third corresponding relationship is a corresponding relationship between the grouping identifier and the user identifier.
12. The apparatus of any of claims 9-11, further comprising:
and the user behavior data receiving module is used for receiving the user behavior data returned by the terminal equipment, wherein the user behavior data is collected through the target page local component.
13. A page data processing apparatus comprising:
the page access request sending module is used for sending an access request for a target page to the server;
the page data processing module is used for responding to the page data of the target page returned by the server, rendering the target page based on the page data, wherein the page data comprises component data of a target page integral component and component data of a target page local component, the target page integral component and the target page local component correspond to the access request, the target page integral component corresponds to an integral area of the target page, the target page local component corresponds to a partial area of the target page, and the target page local component is nested in the target page integral component.
14. The apparatus of claim 13, further comprising a page event handling module to:
generating a target page event for the target page local component in response to the target page;
sending the event information of the target page event to the page integral component;
and transmitting event information of the target page event to the target page local component through the page integral component, so that the target page local component responds to the target page event.
15. The apparatus of claim 14, wherein the target page event comprises any of:
a user interaction event;
page lifecycle events.
16. The apparatus of any of claims 13-15, further comprising a user behavior data processing module to:
user behavior data is collected by the target page local component,
and sending the user behavior data to the server.
17. An electronic device, comprising:
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 method of any one of claims 1-8.
18. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-8.
19. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-8.
CN202310119146.7A 2023-01-31 2023-01-31 Page data processing method and device, electronic equipment and readable storage medium Pending CN116010744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310119146.7A CN116010744A (en) 2023-01-31 2023-01-31 Page data processing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310119146.7A CN116010744A (en) 2023-01-31 2023-01-31 Page data processing method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116010744A true CN116010744A (en) 2023-04-25

Family

ID=86028256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310119146.7A Pending CN116010744A (en) 2023-01-31 2023-01-31 Page data processing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116010744A (en)

Similar Documents

Publication Publication Date Title
CN112559086B (en) Applet page rendering method and device, electronic equipment and readable storage medium
CN114095567B (en) Data access request processing method and device, computer equipment and medium
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN114389969B (en) Method and device for testing client, electronic equipment and storage medium
CN114417780B (en) State synchronization method and device, electronic equipment and storage medium
CN117040799A (en) Page interception rule generation and page access control method and device and electronic equipment
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN111324310A (en) Data reading method and device and computer system
CN114138397B (en) Page display method and device, electronic equipment and storage medium
CN113495841B (en) Compatibility detection method, device, equipment, storage medium and program product
CN114374703B (en) Cloud mobile phone information acquisition method, device, equipment and storage medium
CN116126719A (en) Interface testing method and device, electronic equipment and storage medium
CN113590447B (en) Buried point processing method and device
CN113747423B (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN112925623B (en) Task processing method, device, electronic equipment and medium
CN116010744A (en) Page data processing method and device, electronic equipment and readable storage medium
CN114386577A (en) Method, apparatus, and storage medium for executing deep learning model
CN113691403A (en) Topological node configuration method, related device and computer program product
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN113239296B (en) Method, device, equipment and medium for displaying small program
CN113032040B (en) Method, apparatus, device, medium, and article for processing tasks
CN115840604B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN114996557B (en) Service stability determination method, device, equipment and storage medium
CN114461502B (en) Model monitoring method and device
CN114428646B (en) Data processing method and device, electronic equipment and 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