CN110569082A - method and device for controlling page content - Google Patents

method and device for controlling page content Download PDF

Info

Publication number
CN110569082A
CN110569082A CN201910722698.0A CN201910722698A CN110569082A CN 110569082 A CN110569082 A CN 110569082A CN 201910722698 A CN201910722698 A CN 201910722698A CN 110569082 A CN110569082 A CN 110569082A
Authority
CN
China
Prior art keywords
dynamic configuration
script
configuration script
page
corresponding page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910722698.0A
Other languages
Chinese (zh)
Other versions
CN110569082B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910722698.0A priority Critical patent/CN110569082B/en
Publication of CN110569082A publication Critical patent/CN110569082A/en
Application granted granted Critical
Publication of CN110569082B publication Critical patent/CN110569082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides a method and a device for controlling page content. The method comprises the following steps: receiving a page request for a corresponding page from a user device, the page request including a corresponding page tag; based on the corresponding page tag, acquiring a dynamic configuration script aiming at the corresponding page, wherein the dynamic configuration script comprises modification operation data aiming at the corresponding page; and sending the dynamic configuration script to the user device to control the corresponding page by the user device based on the dynamic control configuration script.

Description

Method and device for controlling page content
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling page content.
Background
for a page that is already in use, the page often needs to be modified, for example, a certain control in the page needs to be temporarily closed, a reminder needs to be set in the page, a certain function control needs to be added in the page, and the like. In the prior art, when a page needs to be modified, the page logic generally needs to be modified. When the page is implemented, the scheme needs to configure related modification logic, and the page modification is difficult to implement for the modification which is not configured in the page logic. Thus, the prior art is cost prohibitive and inefficient to perform page modification.
thus, there is a need in the art for a solution that facilitates page modification.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a method and apparatus for controlling page content. By using the method and the device, the modified content aiming at the page is configured into the dynamic configuration script, and the page rendering is carried out based on the dynamic configuration script when the corresponding page is rendered, so that the control on the page content can be realized, and the efficiency of modifying the page can be improved.
According to an aspect of the present disclosure, there is provided a method of controlling page content, including: receiving a page request for a corresponding page from a user device, the page request including a corresponding page tag; based on the corresponding page tag, acquiring a dynamic configuration script aiming at the corresponding page, wherein the dynamic configuration script comprises modification operation data aiming at the corresponding page; and sending the dynamic configuration script to the user device to control the corresponding page by the user device based on the dynamic control configuration script.
Optionally, in an example, the obtaining of the dynamic configuration script for the corresponding page based on the corresponding page tag may include: acquiring at least one dynamic configuration script to be matched, wherein each dynamic configuration script to be matched in the at least one dynamic configuration script to be matched comprises a script page identifier and a dynamic configuration script corresponding to the script page identifier; and determining the dynamic configuration script aiming at the corresponding page from the dynamic configuration scripts included in each dynamic configuration script to be matched based on the corresponding page tag and the script page identifier of each dynamic configuration script to be matched.
optionally, in an example, determining, based on the corresponding page tag and the script page identifier of each dynamic configuration script to be matched, a dynamic configuration script for the corresponding page from dynamic configuration scripts included in each dynamic configuration script to be matched may include: converting each dynamic configuration script to be matched into a dynamic configuration script key value pair, wherein in the dynamic configuration script key value pair, a key is the script page identifier, and the value is the dynamic configuration script corresponding to the script page identifier; and matching the dynamic configuration script corresponding to the corresponding page based on the dynamic configuration script key-value pair and the corresponding page tag.
Optionally, in an example, based on the corresponding page tag, the dynamic configuration script for the corresponding page may include: acquiring a dynamic configuration script acquiring operation execution script, wherein the dynamic configuration script acquiring operation execution script is configured aiming at least two pages; and acquiring the dynamic configuration script aiming at the corresponding page based on the corresponding page tag by utilizing the dynamic configuration script acquisition operation execution script.
Optionally, in an example, the method may further include: and acquiring the page data of the corresponding page based on the corresponding page tag.
Optionally, in an example, based on the corresponding page tag, the dynamic configuration script for the corresponding page may include: and acquiring a dynamic configuration script aiming at the corresponding page based on the corresponding page tag by utilizing a dynamic configuration script acquisition operation execution script configured in the corresponding page data.
Optionally, in an example, based on the corresponding page tag, the dynamic configuration script for the corresponding page may include: and responding to the corresponding page request, and acquiring the dynamic configuration script aiming at the corresponding page when the modification operation aiming at the corresponding page is determined to exist.
Optionally, in one example, the dynamic configuration script may have at least two script page identifications.
According to another aspect of the present disclosure, there is also provided an apparatus for controlling page content, including: a page request receiving unit that receives a page request for a corresponding page from a user equipment, the page request including a corresponding page tag; a dynamic configuration script obtaining unit, configured to obtain a dynamic configuration script for the corresponding page based on the corresponding page tag, where the dynamic configuration script includes modification operation data for the corresponding page; and a data transmitting unit which transmits the dynamic configuration script to the user device to render the corresponding page by the user device based on the dynamic control configuration script.
Optionally, in an example, the dynamic configuration script obtaining unit may include: the dynamic configuration script acquiring module to be matched acquires at least one dynamic configuration script to be matched, wherein each dynamic configuration script to be matched in the at least one dynamic configuration script to be matched comprises a script page identifier and a dynamic configuration script corresponding to the script page identifier; and the dynamic configuration script acquisition module is used for determining the dynamic configuration script aiming at the corresponding page from the dynamic configuration scripts included in each dynamic configuration script to be matched based on the corresponding page tag and the script page identifier of each dynamic configuration script to be matched.
optionally, in an example, the dynamic configuration script obtaining module may include: a dynamic configuration script key value pair generation submodule for converting the obtained at least one dynamic configuration script to be matched into a dynamic configuration script key value pair, wherein in the dynamic configuration script key value pair, a key is the script page identifier, and the value is the dynamic configuration script; and the script matching sub-module is used for matching the dynamic configuration script corresponding to the corresponding page based on the dynamic configuration script key-value pair and the corresponding page tag.
optionally, in an example, the dynamic configuration script obtaining unit may include: the acquisition operation execution script acquisition module acquires a dynamic configuration script acquisition operation execution script, wherein the dynamic configuration script acquisition operation execution script is configured aiming at least two pages; and the dynamic configuration script acquisition module is used for acquiring the dynamic configuration script aiming at the corresponding page based on the corresponding page tag by utilizing the dynamic configuration script acquisition operation execution script.
Optionally, in an example, the apparatus further includes: and the page data acquisition unit is used for acquiring the page data of the corresponding page based on the corresponding page tag.
Optionally, in an example, the dynamic configuration script obtaining unit may obtain the dynamic configuration script for the corresponding page based on the corresponding page tag by using a dynamic configuration script obtaining execution script configured in the corresponding page data.
optionally, in an example, the dynamic configuration script obtaining unit may further obtain, in response to the corresponding page request, a dynamic configuration script for the corresponding page when it is determined that the modification operation for the corresponding page exists.
According to another aspect of the present disclosure, there is also provided a computing device comprising: at least one processor; and a memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform the method as described above.
According to another aspect of the present disclosure, there is also provided a non-transitory machine-readable storage medium storing executable instructions that, when executed, cause the machine to perform the method as described above.
By using the method and the device disclosed by the invention, when the page request is received, the dynamic configuration script aiming at the corresponding page is sent to the user equipment, so that the corresponding page is rendered by the user equipment based on the dynamic configuration script, the page modification can be carried out without the need of including modification logic in the page logic in advance, the page modification range is not limited, and the configured page logic does not need to be identified in the page modification process, thereby improving the page modification efficiency.
by utilizing the method and the device disclosed by the invention, the dynamic configuration script aiming at the corresponding page is matched based on the dynamic configuration script key value pair and the corresponding page label by generating the dynamic configuration script key value pair, so that the accuracy and the efficiency of the matching process of the dynamic configuration script can be improved, and the page is prevented from being modified wrongly.
By using the method and the device disclosed by the invention, the dynamic configuration script acquisition operation execution script configured aiming at a plurality of pages is acquired, and the dynamic configuration script aiming at the corresponding page is acquired by using the universal page script, so that the acquisition logic of the dynamic configuration script can be configured into the universal logic without configuring the acquisition logic in each page.
by using the method and the device disclosed by the invention, the dynamic configuration script is obtained when the modification operation aiming at the corresponding page is determined to exist, the page rendering efficiency can be improved, and the program resource can be saved.
By utilizing the method and the device disclosed by the invention, the dynamic configuration script is provided with a plurality of script page identifications, so that the configured dynamic configuration script can be simultaneously applied to a plurality of pages, and the execution efficiency of page modification is improved.
Drawings
A further understanding of the nature and advantages of the present disclosure may be realized by reference to the following drawings. In the drawings, similar components or features may have the same reference numerals. The accompanying drawings, which are included to provide a further understanding of the embodiments of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the detailed description serve to explain the embodiments of the disclosure without limiting the embodiments of the disclosure. In the drawings:
FIG. 1 is a flow diagram of a method of controlling page content according to one embodiment of the present disclosure;
FIG. 2 is a flow diagram of one example of a dynamic configuration script acquisition process in a method of controlling page content according to one embodiment of the present disclosure;
FIG. 3 is a flow diagram of another example of a dynamic configuration script acquisition process in a method of controlling page content according to one embodiment of the present disclosure;
FIG. 4 is a flow diagram of another example of a dynamic configuration script acquisition process in a method of controlling page content according to one embodiment of the present disclosure;
FIG. 5 is a flow diagram of a method of controlling page content according to another embodiment of the present disclosure;
FIG. 6 is a block diagram of an apparatus for controlling page content according to one embodiment of the present disclosure;
FIG. 7 is a block diagram showing an example of a dynamic configuration script obtaining unit in the apparatus for controlling page contents shown in FIG. 6;
FIG. 8 is a block diagram of an example of a dynamic configuration script acquisition module in the apparatus for controlling page content shown in FIG. 7;
fig. 9 is a block diagram showing a configuration of an example of a dynamic configuration script acquisition unit in the apparatus for controlling page contents shown in fig. 6;
FIG. 10 is a block diagram of a computing device for implementing a method of controlling page content according to one embodiment of the present disclosure.
Detailed Description
The subject matter described herein will be discussed with reference to example embodiments. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and thereby implement the subject matter described herein, and are not intended to limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements discussed without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as needed. In addition, features described with respect to some examples may also be combined in other examples.
As used herein, the term "include" and its variants mean open-ended terms in the sense of "including, but not limited to. The term "based on" means "based at least in part on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment". The term "another embodiment" means "at least one other embodiment". Other definitions, whether explicit or implicit, may be included below. The definition of a term is consistent throughout the specification unless the context clearly dictates otherwise.
The method and apparatus for controlling page content of the present disclosure will now be described with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method of controlling page content according to one embodiment of the present disclosure.
As shown in FIG. 1, at block 120, a page request for a corresponding page is received from a user device, the page request including a corresponding page tag. The user device may be, for example, a computer, a smartphone, a tablet, or the like. The page may be an internet web page, an application page, or the like. The page request may be, for example, a web address, and may be issued when the user enters the requested web address in the browser web address entry field. The page request may also be issued, for example, when the user clicks on a control of the application to request a jump to the corresponding page. The page tag indicates the corresponding page to which the page request is directed, e.g., when the page request is a page website, the corresponding page tag may be piggybacked in the website.
After receiving the page request, at block 140, a dynamic configuration script for the corresponding page is obtained based on the corresponding page tag. The dynamic configuration script includes modification operation data for a corresponding page configured in a script form. For example, when a control on a corresponding page is desired to be deactivated (e.g., a modified control), a script can be configured in the dynamic configuration script that hides or deactivates the control from the user. The dynamic configuration script may be, for example, a JS (JavaScript) script. The dynamic configuration script has a script page identification indicating a page to which the dynamic configuration script is directed. In one example, the dynamic configuration script may be for all pages, at which time the script page identification may be nulled, and may also be set to general. When the dynamic configuration script is directed to only a certain page, the script page identification may indicate that it applies to that page. The dynamic configuration script may also be empty, which indicates that there is no modified content for the corresponding page when the dynamic configuration script is empty.
The dynamic configuration script may also be stored in the memory of the server after configuration. In another example, the dynamic configuration script may be configured at a configuration center, which may be a configuration server including one or more computing devices, where an administrator may conduct the dynamic configuration script. In this example, the dynamic configuration script may be obtained from the configuration center when a page request is received.
the obtaining of the dynamic configuration script may be performed in synchronization with the obtaining of the page data of the corresponding page. The page content of the corresponding page and the dynamic configuration script aiming at the corresponding page can be synchronously acquired when the page request is received. The dynamic configuration script may also be obtained after the page content of the corresponding page is obtained. The page data of the corresponding page may be stored in a memory of the server, so that the page data may be retrieved from the memory.
after the dynamic configuration script is obtained, at block 160, the dynamic configuration script is sent to the user device to control the corresponding page by the user device based on the dynamic configuration script. The user device may modify page content of the corresponding page based on the dynamic configuration script to enable control of the corresponding page.
in one example, the user device may render the corresponding page based on the received page data and the dynamic configuration script after receiving the page content of the corresponding page and the dynamic configuration script, and the modification operation included in the dynamic configuration script may be performed during the rendering process. After receiving the page data and the dynamic configuration script of the corresponding page, the user equipment may parse the page data and execute the parsing result and the dynamic configuration script to render the corresponding page. When no dynamic configuration script or the dynamic configuration script is empty, the rendered corresponding page includes unmodified page content of the corresponding page. When the dynamic configuration script is not empty, the rendered page will include the modified page content. For example, if the dynamic configuration script includes a reminder for an event to be added to the corresponding page, the rendered page will add the reminder for the event based on the content of the page before modification to generate the modified corresponding page.
With the embodiment, when the user equipment sends a page request, the dynamic configuration script is sent to the user equipment, and the user equipment can control the content displayed on the corresponding page based on the received dynamic configuration script. When a page needs to be modified, the modification operation can be configured as a dynamic configuration script at the server side. Therefore, the modification of the page content can be realized without configuring the page modification logic during page configuration so as to realize the control of the page content. Thus, when the page content needs to be modified, the modification of the page is not limited by the configured logic, and the flexibility of page modification is enhanced. In addition, when the page is modified, the existing codes do not need to be identified and modified, so that the difficulty of page modification is reduced, and the efficiency of page modification is improved.
Fig. 2 is a flowchart of one example of a dynamic configuration script acquisition process in a method of controlling page content according to one embodiment of the present disclosure.
as shown in FIG. 2, at block 202, at least one dynamic configuration script to be matched is obtained. Each dynamic configuration script to be matched in the at least one dynamic configuration script to be matched comprises a script page identifier and a dynamic configuration script corresponding to the script page identifier. When a page request of a corresponding page is received, all dynamic configuration scripts to be matched, which are stored in a background server or in a configuration center, can be acquired.
At block 204, based on the corresponding page tag and the script page identifier of each dynamic configuration script to be matched, a dynamic configuration script for the corresponding page is determined from the dynamic configuration scripts included in each dynamic configuration script to be matched. The method shown in fig. 3 may be adopted to match the dynamic configuration scripts for the corresponding page from each dynamic configuration script to be matched. Fig. 3 is a flowchart of another example of a dynamic configuration script acquisition process in a method of controlling page content according to one embodiment of the present disclosure.
As shown in fig. 3, at block 302, the obtained at least one to-be-matched dynamic configuration script is converted into a dynamic configuration script key value pair, where in the dynamic configuration script key value pair, a key is a script page identifier, and a value is a dynamic configuration script corresponding to the script page identifier. The dynamic configuration script can be configured for a plurality of pages, so that the dynamic configuration script can be shared by the plurality of pages to improve the configuration efficiency. Each dynamic configuration script to be matched can have a plurality of script page identifiers, so that the same dynamic configuration script to be matched can be converted into a plurality of dynamic configuration script key-value pairs.
After obtaining the dynamic configuration script key-value pairs, at block 204, the dynamic configuration script corresponding to the corresponding page is matched based on the dynamic configuration script key-value pairs and the corresponding page tags. In one example, the dynamic configuration script key-value pairs and the corresponding page tags may be matched in a regular matching manner to match out the dynamic configuration script key-value pairs for the corresponding page. For example, a value of a respective dynamic configuration script key-value pair may be determined to be a dynamic configuration script for a corresponding page when the key is consistent with the corresponding page tag. In another example, a determination may be made that a respective dynamic configuration script is a dynamic configuration script for a corresponding page when a key indicates that the dynamic configuration script is for all pages.
In another example, other methods may also be employed to obtain dynamic configuration scripts for a corresponding page. For example, when the dynamic configuration script is configured at the configuration center, the corresponding page tag may be sent to the configuration center to query and feed back the dynamic configuration script for the corresponding page based on the corresponding page tag by the configuration center. For another example, the dynamic configuration script may also be stored in the server in the form of an index, so that the server may query the dynamic configuration script for the corresponding page based on the corresponding page tag and the index.
the operation of obtaining the dynamic configuration script may be configured for each page. In another example, to save data volume, the fetch operation may be configured as a script common to at least two pages with reference to the example of fig. 4. Fig. 4 is a flowchart of another example of a dynamic configuration script acquisition process in a method of controlling page content according to one embodiment of the present disclosure.
As shown in FIG. 4, at block 402, a dynamic configuration script fetch operation execution script is fetched in response to a received page request. The dynamic configuration script obtaining operation execution script is configured for at least two pages for executing a dynamic configuration script obtaining operation. In one example, a common operation data set may be configured for all pages, the common operation data set including operation data that is executed in common by the respective pages. For example, if each page displays a reminder in the page, the script displaying the reminder may be configured in a common script set. The common operation data may be, for example, a piece of Cascading Style Sheet (CSS), a JS script, or the like. In this example, the dynamic configuration script fetch operation execution script may be configured in a common script set for execution by the server in response to page requests for individual pages.
then, at block 404, the script is executed with a dynamic configuration script fetch operation to fetch a dynamic configuration script for the corresponding page based on the corresponding page tag. After the dynamic configuration script obtaining operation execution script is obtained, the dynamic configuration script obtaining operation execution script can be executed to execute the obtaining operation of the dynamic configuration script.
The operation of acquiring the dynamic configuration script is configured into the script to be called in response to the page requests of at least two pages, so that the acquisition operation of the dynamic configuration script is not required to be configured for each page, the occupied space of data can be saved, and the operation execution efficiency can be improved.
In another example, the dynamic configuration script obtaining operation execution script may also be configured in the page data of each page, so that after the page data is obtained, the dynamic configuration script obtaining operation execution script is executed to obtain the dynamic configuration script.
Fig. 5 is a flowchart of a method of controlling page content according to another embodiment of the present disclosure.
as shown in FIG. 5, page data for a corresponding page may be obtained based on a corresponding page tag at block 504 after a page request is received at block 502.
Then, at block 506, a dynamic configuration script for the corresponding page is obtained based on the corresponding page tag, and at block 508, it is determined whether a dynamic configuration script for the corresponding page is obtained. The dynamic configuration script may be obtained with reference to the examples described above. In one example, a dynamic configuration script obtaining operation execution script for executing a dynamic configuration script obtaining operation may be further configured in the page data of the corresponding page, so that after the page data is obtained, the script obtaining operation for obtaining the dynamic configuration script for the corresponding page may be executed by using the dynamic configuration script obtaining operation in the page data.
In one example, before the dynamic configuration script obtaining operation is executed, whether a modification operation exists for the corresponding page may be further determined, and the dynamic configuration script obtaining operation is executed when it is determined that the modification operation exists for the corresponding page. For example, a modification flag index of each page flag and modification operation flag may be stored at the server or the configuration center, and when a dynamic configuration script is configured for a corresponding page, the modification operation flag is set to 1, and when the dynamic configuration script is not configured or is deleted, the modification operation flag is set to 0. When a page request for a corresponding page is received, it may be confirmed whether there is a modification operation for the corresponding page based on the corresponding page tag and the stored modification identification index. When the modification operation aiming at the corresponding page does not exist, the dynamic configuration script obtaining operation can not be executed, so that the operation execution amount can be reduced when the page request is responded, and the efficiency of responding the page request is improved.
When the dynamic configuration script for the corresponding page is obtained, at block 510, the page data and the dynamic configuration script are sent to the terminal device. If no modification operation exists for the corresponding page or no dynamic configuration script is acquired, at block 512, the page data is sent to the user device. The user device may render the corresponding page based on the received page data and the dynamic configuration script.
Fig. 6 is a block diagram of an apparatus for controlling page content according to an embodiment of the present disclosure. As shown in fig. 6, the page content control apparatus 600 includes a page request receiving unit 610, a dynamic configuration script obtaining unit 620, and a data transmitting unit 630.
The page request receiving unit 610 receives a page request for a corresponding page from a user equipment, the page request including a corresponding page tag. The dynamic configuration script obtaining unit 620 obtains a dynamic configuration script for the corresponding page based on the corresponding page tag, the dynamic configuration script including modification operation data for the corresponding page. In one example, the dynamic configuration script obtaining unit may obtain the dynamic configuration script for the corresponding page when it is determined that the modification operation for the corresponding page exists in response to the corresponding page request.
The data transmitting unit 630 transmits the dynamic configuration script to the user device to render a corresponding page by the user device based on the dynamic control configuration script.
Fig. 7 is a block diagram showing an example of a dynamic configuration script acquisition unit in the apparatus for controlling page contents shown in fig. 6. As shown in fig. 6, the dynamic configuration script obtaining unit 620 may include a to-be-matched dynamic configuration script obtaining module 621 and a dynamic configuration script obtaining module 622.
The to-be-matched dynamic configuration script obtaining module 621 obtains at least one to-be-matched dynamic configuration script, where each to-be-matched dynamic configuration script in the at least one to-be-matched dynamic configuration script includes a script page identifier and a dynamic configuration script corresponding to the script page identifier. The dynamic configuration script obtaining module 622 determines a dynamic configuration script for a corresponding page from the dynamic configuration scripts included in each dynamic configuration script to be matched based on the corresponding page tag and the script page identifier of each dynamic configuration script to be matched.
Fig. 8 is a block diagram showing an example of a dynamic configuration script acquisition module in the apparatus for controlling page contents shown in fig. 7. As shown in fig. 8, the dynamic configuration script acquisition module 622 may include a dynamic configuration script key-value pair generation sub-module 6221 and a script matching sub-module 6222.
The dynamic configuration script key value pair generating sub-module 6221 converts the obtained at least one dynamic configuration script to be matched into a dynamic configuration script key value pair, where in the dynamic configuration script key value pair, a key is a script page identifier, and a value is a dynamic configuration script. The script matching sub-module 6222 matches a dynamic configuration script corresponding to the corresponding page based on the dynamic configuration script key-value pair and the corresponding page tag.
Fig. 9 is a block diagram showing an example of a dynamic configuration script acquisition unit in the apparatus for controlling page contents shown in fig. 6. As shown in fig. 9, the dynamic configuration script obtaining unit 620 may include a obtaining operation execution script obtaining module 623 and a dynamic configuration script obtaining module 624.
The acquiring operation executing script acquiring module 623 acquires a dynamic configuration script acquiring operation executing script, which is configured for at least two pages. The dynamic configuration script obtaining module 624 obtains the dynamic configuration script for the corresponding page based on the corresponding page tag by using the dynamic configuration script obtaining operation execution script.
Although not shown in the drawings, the page content control apparatus further includes a page data acquisition unit. The page data obtaining unit may obtain page data of a corresponding page based on the corresponding page tag. A dynamic configuration script obtaining operation execution script for executing a dynamic configuration script obtaining operation may be configured in the page data of the corresponding page. The dynamic configuration script obtaining unit may obtain the dynamic configuration script for the corresponding page based on the corresponding page tag using the dynamic configuration script obtaining operation execution script configured in the corresponding page data.
embodiments of a method and apparatus for controlling page content according to the present disclosure are described above with reference to fig. 1 to 9. The details mentioned in the above description of the method embodiments apply equally to the embodiments of the apparatus of the present disclosure.
The apparatus for controlling page content of the present disclosure may be implemented by hardware, or may be implemented by software, or a combination of hardware and software. The various embodiments in this specification are described in a progressive manner, with like reference to each other.
The apparatus for controlling page content of the present disclosure may be implemented by hardware, or may be implemented by software, or a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the storage into the memory for operation through the processor of the device where the software implementation is located as a logical means. In the present disclosure, the means for controlling the content of the page may be implemented, for example, with a computing device.
FIG. 10 is a block diagram of a computing device for implementing a method of controlling page content according to one embodiment of the present disclosure. As shown in fig. 10, the computing device 1000 includes a processor 1010, a storage 1020, a memory 1030, a communication interface 1040, and an internal bus 1050, and the processor 1010, the storage (e.g., a non-volatile storage) 1020, the memory 1030, and the communication interface 1040 are connected together via the bus 1050. According to one embodiment, the computing device 1000 may include at least one processor 1010, the at least one processor 1010 executing at least one computer-readable instruction (i.e., an element described above as being implemented in software) stored or encoded in a computer-readable storage medium (i.e., memory 1020).
In one embodiment, computer-executable instructions are stored in the memory 1020 that, when executed, cause the at least one processor 1010 to: receiving a page request for a corresponding page from a user device, the page request including a corresponding page tag; based on the corresponding page tag, acquiring a dynamic configuration script aiming at the corresponding page, wherein the dynamic configuration script comprises modification operation data aiming at the corresponding page; and sending the dynamic configuration script to the user device to control the corresponding page by the user device based on the dynamic control configuration script.
It should be understood that the computer-executable instructions stored in the memory 1020, when executed, cause the at least one processor 1010 to perform the various operations and functions described above in connection with fig. 1-9 in the various embodiments of the present disclosure.
According to one embodiment, a program product, such as a non-transitory machine-readable medium, is provided. A non-transitory machine-readable medium may have instructions (i.e., elements described above as being implemented in software) that, when executed by a machine, cause the machine to perform various operations and functions described above in connection with fig. 1-9 in various embodiments of the present disclosure.
Specifically, a system or apparatus may be provided which is provided with a readable storage medium on which software program code implementing the functions of any of the above embodiments is stored, and causes a computer or processor of the system or apparatus to read out and execute instructions stored in the readable storage medium.
in this case, the program code itself read from the readable medium can realize the functions of any of the above-described embodiments, and thus the machine-readable code and the readable storage medium storing the machine-readable code form part of the present invention.
Examples of the readable storage medium include floppy disks, hard disks, magneto-optical disks, optical disks (e.g., CD-ROMs, CD-R, CD-RWs, DVD-ROMs, DVD-RAMs, DVD-RWs), magnetic tapes, nonvolatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or from the cloud via a communications network.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Not all steps and elements in the above flows and system structure diagrams are necessary, and some steps or elements may be omitted according to actual needs. The execution order of the steps is not fixed, and can be determined as required. The apparatus structures described in the above embodiments may be physical structures or logical structures, that is, some units may be implemented by the same physical entity, or some units may be implemented by a plurality of physical entities, or some units may be implemented by some components in a plurality of independent devices.
The term "exemplary" used throughout this specification means "serving as an example, instance, or illustration," and does not mean "preferred" or "advantageous" over other embodiments. The detailed description includes specific details for the purpose of providing an understanding of the described technology. However, the techniques may be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form in order to avoid obscuring the concepts of the described embodiments.
alternative embodiments of the present disclosure are described in detail with reference to the drawings, however, the embodiments of the present disclosure are not limited to the specific details in the embodiments, and various simple modifications may be made to the technical solutions of the embodiments of the present disclosure within the technical concept of the embodiments of the present disclosure, and the simple modifications all belong to the protective scope of the embodiments of the present disclosure.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (17)

1. A method of controlling page content, comprising:
Receiving a page request for a corresponding page from a user device, the page request including a corresponding page tag;
Based on the corresponding page tag, acquiring a dynamic configuration script aiming at the corresponding page, wherein the dynamic configuration script comprises modification operation data aiming at the corresponding page; and
Sending the dynamic configuration script to the user device to render, by the user device, the corresponding page based on the dynamic control configuration script.
2. The method of claim 1, wherein obtaining a dynamic configuration script for the corresponding page based on the corresponding page tag comprises:
Acquiring at least one dynamic configuration script to be matched, wherein each dynamic configuration script to be matched in the at least one dynamic configuration script to be matched comprises a script page identifier and a dynamic configuration script corresponding to the script page identifier; and
And determining the dynamic configuration script aiming at the corresponding page from the dynamic configuration scripts included in each dynamic configuration script to be matched based on the corresponding page tag and the script page identifier of each dynamic configuration script to be matched.
3. the method of claim 1, wherein determining the dynamic configuration script for the corresponding page from the dynamic configuration scripts included in each dynamic configuration script to be matched based on the corresponding page tag and the script page identifier of each dynamic configuration script to be matched comprises:
Converting each dynamic configuration script to be matched into a dynamic configuration script key value pair, wherein in the dynamic configuration script key value pair, a key is the script page identifier, and the value is the dynamic configuration script corresponding to the script page identifier; and
And matching the dynamic configuration script aiming at the corresponding page based on the key-value pair of the dynamic configuration script and the corresponding page label.
4. the method of any of claims 1-3, wherein based on the corresponding page tag, dynamically configuring a script for the corresponding page comprises:
acquiring a dynamic configuration script acquiring operation execution script, wherein the dynamic configuration script acquiring operation execution script is configured aiming at least two pages; and
And acquiring the dynamic configuration script aiming at the corresponding page by utilizing the dynamic configuration script acquisition operation execution script based on the corresponding page tag.
5. The method of any of claims 1-3, further comprising:
And acquiring the page data of the corresponding page based on the corresponding page tag.
6. The method of any of claim 5, wherein based on the corresponding page tag, dynamically configuring a script for the corresponding page comprises:
And acquiring a dynamic configuration script aiming at the corresponding page based on the corresponding page tag by utilizing a dynamic configuration script acquisition operation execution script configured in the corresponding page data.
7. The method of any of claims 1-3, wherein based on the corresponding page tag, dynamically configuring a script for the corresponding page comprises:
and responding to the corresponding page request, and acquiring the dynamic configuration script aiming at the corresponding page when the modification operation aiming at the corresponding page is determined to exist.
8. The method of any of claim 3, wherein the dynamic configuration script to be matched is identified for at least two script pages.
9. An apparatus for controlling page content, comprising:
A page request receiving unit that receives a page request for a corresponding page from a user equipment, the page request including a corresponding page tag;
A dynamic configuration script obtaining unit, configured to obtain a dynamic configuration script for the corresponding page based on the corresponding page tag, where the dynamic configuration script includes modification operation data for the corresponding page; and
A data transmitting unit that transmits the dynamic configuration script to the user device to render the corresponding page by the user device based on the dynamic control configuration script.
10. The apparatus of claim 9, wherein the dynamic configuration script obtaining unit comprises:
the dynamic configuration script acquiring module to be matched acquires at least one dynamic configuration script to be matched, wherein each dynamic configuration script to be matched in the at least one dynamic configuration script to be matched comprises a script page identifier and a dynamic configuration script corresponding to the script page identifier; and
And the dynamic configuration script acquisition module is used for determining the dynamic configuration script aiming at the corresponding page from the dynamic configuration scripts included in each dynamic configuration script to be matched based on the corresponding page tag and the script page identifier of each dynamic configuration script to be matched.
11. The apparatus of claim 9, wherein the dynamic configuration script retrieving module comprises:
A dynamic configuration script key value pair generation submodule for converting the obtained at least one dynamic configuration script to be matched into a dynamic configuration script key value pair, wherein in the dynamic configuration script key value pair, a key is the script page identifier, and the value is the dynamic configuration script; and
and the script matching sub-module is used for matching the dynamic configuration script corresponding to the corresponding page based on the dynamic configuration script key-value pair and the corresponding page tag.
12. The apparatus according to any one of claims 9-11, wherein the dynamic configuration script obtaining unit comprises:
The acquisition operation execution script acquisition module acquires a dynamic configuration script acquisition operation execution script, wherein the dynamic configuration script acquisition operation execution script is configured aiming at least two pages; and
and the dynamic configuration script acquisition module acquires the dynamic configuration script aiming at the corresponding page by utilizing the dynamic configuration script acquisition operation execution script originally based on the corresponding page tag.
13. The apparatus of any of claims 9-11, further comprising:
and the page data acquisition unit is used for acquiring the page data of the corresponding page based on the corresponding page tag.
14. the apparatus according to claim 13, wherein the dynamic configuration script obtaining unit obtains the dynamic configuration script for the corresponding page based on the corresponding page tag using a dynamic configuration script obtaining operation execution script configured in the corresponding page data.
15. The apparatus according to any one of claims 9-11, wherein the dynamic configuration script obtaining unit is further responsive to the corresponding page request to obtain the dynamic configuration script for the corresponding page upon determining that there is a modify operation for the corresponding page.
16. A computing device, comprising:
At least one processor; and
A memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform the method of any one of claims 1 to 8.
17. A machine-readable storage medium storing executable instructions that, when executed, cause the machine to perform the method of any one of claims 1 to 8.
CN201910722698.0A 2019-08-06 2019-08-06 Method and device for controlling page content Active CN110569082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910722698.0A CN110569082B (en) 2019-08-06 2019-08-06 Method and device for controlling page content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910722698.0A CN110569082B (en) 2019-08-06 2019-08-06 Method and device for controlling page content

Publications (2)

Publication Number Publication Date
CN110569082A true CN110569082A (en) 2019-12-13
CN110569082B CN110569082B (en) 2023-03-14

Family

ID=68774679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910722698.0A Active CN110569082B (en) 2019-08-06 2019-08-06 Method and device for controlling page content

Country Status (1)

Country Link
CN (1) CN110569082B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110078555A1 (en) * 2009-09-30 2011-03-31 Microsoft Corporation Profiler for Page Rendering
WO2012051370A1 (en) * 2010-10-13 2012-04-19 Bitstream, Inc. System and method for displaying complex scripts with a cloud computing architecture
US20130073382A1 (en) * 2011-09-16 2013-03-21 Kontera Technologies, Inc. Methods and systems for enhancing web content based on a web search query
US20130091425A1 (en) * 2011-10-10 2013-04-11 Shannon Ray Hughes Server-side internationalization and localization of web applications using a scripting language
US20130254646A1 (en) * 2012-03-20 2013-09-26 A9.Com, Inc. Structured lighting-based content interactions in multiple environments
US8595613B1 (en) * 2012-07-26 2013-11-26 Viasat Inc. Page element identifier pre-classification for user interface behavior in a communications system
CN103577526A (en) * 2013-08-01 2014-02-12 星云融创(北京)信息技术有限公司 Method and system as well as browser for verifying page modification
CN105159677A (en) * 2015-09-09 2015-12-16 深圳Tcl数字技术有限公司 Controlled display method of terminal user interface and controlled display device of terminal user interface
CN106100936A (en) * 2016-08-10 2016-11-09 乐视控股(北京)有限公司 Webpage method for monitoring performance and device and the webserver, client
CN106202100A (en) * 2015-05-05 2016-12-07 腾讯科技(深圳)有限公司 The loading method of the page and device
CN106874023A (en) * 2015-12-14 2017-06-20 腾讯科技(深圳)有限公司 Dynamic page loading method and device
CN106933890A (en) * 2015-12-31 2017-07-07 华为技术有限公司 A kind of processing method and processing device of static page
CN108282518A (en) * 2017-12-26 2018-07-13 阿里巴巴集团控股有限公司 A kind of customer terminal webpage generation method and device
CN108345456A (en) * 2018-03-07 2018-07-31 平安普惠企业管理有限公司 Page code generation method, device, computer equipment and storage medium
CN109086114A (en) * 2018-07-26 2018-12-25 郑州云海信息技术有限公司 A kind of method, apparatus and terminal generating web front-end interactive interface
CN109471988A (en) * 2018-10-12 2019-03-15 平安科技(深圳)有限公司 Page info update method, device, computer equipment and storage medium
CN109857971A (en) * 2019-02-01 2019-06-07 天津字节跳动科技有限公司 Page rendering method and apparatus
CN110020297A (en) * 2017-10-31 2019-07-16 北京国双科技有限公司 A kind of loading method of web page contents, apparatus and system
CN110083383A (en) * 2019-03-18 2019-08-02 平安普惠企业管理有限公司 Browser style compatibility method, device, computer equipment and storage medium

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110078555A1 (en) * 2009-09-30 2011-03-31 Microsoft Corporation Profiler for Page Rendering
WO2012051370A1 (en) * 2010-10-13 2012-04-19 Bitstream, Inc. System and method for displaying complex scripts with a cloud computing architecture
US20120092345A1 (en) * 2010-10-13 2012-04-19 Bitstream, Inc. System and method for displaying complex scripts with a cloud computing architecture
US20130073382A1 (en) * 2011-09-16 2013-03-21 Kontera Technologies, Inc. Methods and systems for enhancing web content based on a web search query
US20130091425A1 (en) * 2011-10-10 2013-04-11 Shannon Ray Hughes Server-side internationalization and localization of web applications using a scripting language
US20130254646A1 (en) * 2012-03-20 2013-09-26 A9.Com, Inc. Structured lighting-based content interactions in multiple environments
US8595613B1 (en) * 2012-07-26 2013-11-26 Viasat Inc. Page element identifier pre-classification for user interface behavior in a communications system
CN103577526A (en) * 2013-08-01 2014-02-12 星云融创(北京)信息技术有限公司 Method and system as well as browser for verifying page modification
CN106202100A (en) * 2015-05-05 2016-12-07 腾讯科技(深圳)有限公司 The loading method of the page and device
CN105159677A (en) * 2015-09-09 2015-12-16 深圳Tcl数字技术有限公司 Controlled display method of terminal user interface and controlled display device of terminal user interface
CN106874023A (en) * 2015-12-14 2017-06-20 腾讯科技(深圳)有限公司 Dynamic page loading method and device
CN106933890A (en) * 2015-12-31 2017-07-07 华为技术有限公司 A kind of processing method and processing device of static page
CN106100936A (en) * 2016-08-10 2016-11-09 乐视控股(北京)有限公司 Webpage method for monitoring performance and device and the webserver, client
CN110020297A (en) * 2017-10-31 2019-07-16 北京国双科技有限公司 A kind of loading method of web page contents, apparatus and system
CN108282518A (en) * 2017-12-26 2018-07-13 阿里巴巴集团控股有限公司 A kind of customer terminal webpage generation method and device
CN108345456A (en) * 2018-03-07 2018-07-31 平安普惠企业管理有限公司 Page code generation method, device, computer equipment and storage medium
CN109086114A (en) * 2018-07-26 2018-12-25 郑州云海信息技术有限公司 A kind of method, apparatus and terminal generating web front-end interactive interface
CN109471988A (en) * 2018-10-12 2019-03-15 平安科技(深圳)有限公司 Page info update method, device, computer equipment and storage medium
CN109857971A (en) * 2019-02-01 2019-06-07 天津字节跳动科技有限公司 Page rendering method and apparatus
CN110083383A (en) * 2019-03-18 2019-08-02 平安普惠企业管理有限公司 Browser style compatibility method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110569082B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN109254773B (en) Skeleton page generation method, device, equipment and storage medium
CN109766082B (en) Method and device for application program page jump
US9075893B1 (en) Providing files with cacheable portions
US11310559B2 (en) Method and apparatus for recommending video
EP3518124A1 (en) Webpage rendering method and related device
US20170371974A1 (en) Method for loading webpage, client and programmable device
US20190114365A1 (en) Method and apparatus for displaying information
CN110046169B (en) Computing service implementation scheme based on structured query language statements
US20160232252A1 (en) Method for loading webpage, device and browser thereof
CN107784552B (en) Information push task execution method and device, computer equipment and storage medium
CN108846753B (en) Method and apparatus for processing data
CN107291759B (en) Method and device for processing browser page resources
CN105205080B (en) Redundant file method for cleaning, device and system
US8826122B2 (en) Method, system and device for displaying a web page
US9996512B2 (en) Customized processing of DOM objects
CN107071007B (en) Method, device and client for obtaining configuration resources
CN102981846A (en) Method for treating password input box element and browser for treating the password input box element
CN101626339A (en) Method and system for downloading network data
US20240061565A1 (en) Method and apparatus for generating image processing interface, device, and storage medium
CN113360106B (en) Webpage printing method and device
CN111294288A (en) Traffic identification method and device, application program interface gateway and storage medium
CN112818270B (en) Data cross-domain transfer method and device and computer equipment
CN110569082B (en) Method and device for controlling page content
US11562344B2 (en) Data processing method based on NFC label, system and server thereof
CN106933615B (en) APP awakening method and device

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: 20201012

Address after: English genus

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: English genus

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201012

Address after: English genus

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant