CN108255847B - Page generation method and device - Google Patents

Page generation method and device Download PDF

Info

Publication number
CN108255847B
CN108255847B CN201611242566.0A CN201611242566A CN108255847B CN 108255847 B CN108255847 B CN 108255847B CN 201611242566 A CN201611242566 A CN 201611242566A CN 108255847 B CN108255847 B CN 108255847B
Authority
CN
China
Prior art keywords
page
component
identifier
script
function component
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.)
Active
Application number
CN201611242566.0A
Other languages
Chinese (zh)
Other versions
CN108255847A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611242566.0A priority Critical patent/CN108255847B/en
Publication of CN108255847A publication Critical patent/CN108255847A/en
Application granted granted Critical
Publication of CN108255847B publication Critical patent/CN108255847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

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

Abstract

The invention discloses a page generation method and device. Wherein, the method comprises the following steps: acquiring a page access request, wherein the page access request carries a first identifier, and the first identifier is used for indicating a page function component to be configured in a target page to be accessed by the page access request; responding to the page access request to obtain a page template used for generating a target page and a page script matched with the page template, wherein the page script is used for obtaining a component script of a page function component matched with the first identifier; acquiring a component script of a page function component through the page script, and adding the page function component corresponding to the component script into the page template by using the component script to generate a target page; and displaying a target page, wherein the target page is provided with a page function component. The invention solves the technical problem of low page publishing efficiency caused by generating the publishing page through manual coding in the prior art.

Description

Page generation method and device
Technical Field
The invention relates to the field of computers, in particular to a page generation method and device.
Background
Currently, many operation actors often put forward product requirements to front-end page developers so that the page developers can develop new activity pages according to the requirements. Among them, the page developer typically manually releases the page generated by manual coding to the server.
However, the operation activities often have higher requirements on timeliness and a larger number of activities, and if the above-mentioned method is still used to generate the page, not only the method of manually coding and developing a new active page will greatly affect the generation efficiency of the new active page, but also the operations to be executed when the server maintains and modifies the stored active page are also complicated, and the generation efficiency of the modified and updated page will also be reduced accordingly.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a page generation method and a page generation device, which are used for at least solving the technical problem of low page release efficiency caused by the fact that a release page is generated through manual coding in the prior art.
According to an aspect of the embodiments of the present invention, there is provided a page generation method, including: acquiring a page access request, wherein the page access request carries a first identifier, and the first identifier is used for indicating a page function component to be configured in a target page to be accessed by the page access request; responding to the page access request to acquire a page template used for generating the target page and a page script matched with the page template, wherein the page script is used for acquiring a component script of the page function component matched with the first identifier; acquiring the component script of the page function component through the page script, and adding the page function component corresponding to the component script into the page template by using the component script to generate the target page; and displaying the target page, wherein the page function component is configured in the target page.
According to another aspect of the embodiments of the present invention, there is also provided a page generating apparatus, including: a first obtaining unit, configured to obtain a page access request, where the page access request carries a first identifier, and the first identifier is used to indicate a page function component to be configured in a target page to be accessed by the page access request; a second obtaining unit, configured to obtain, in response to the page access request, a page template used for generating the target page and a page script matched with the page template, where the page script is used to obtain a component script of the page function component matched with the first identifier; a generating unit, configured to obtain the component script of the page function component through the page script, and add the page function component corresponding to the component script to the page template by using the component script to generate the target page; and the display unit is used for displaying the target page, wherein the page function component is configured in the target page.
In the embodiment of the invention, after the page template and the page script matched with the page template are obtained in response to the obtained page access request, wherein, the page access request carries a first identifier for indicating the page function component to be configured in the target page to be accessed by the page access request, acquiring a component script of the page function component matched with the first identifier through the page script, adding the page function component corresponding to the component script and the component script into the page template by using the component script, so as to directly generate and display the target page configured with the page function component in the access process, without the need of executing the complicated page development and page publishing processes according to the operation requirements by developers, thereby achieving the effect of improving the page generation efficiency, and further, the problem of low generation efficiency of the page caused by the fact that the page to be generated can be developed and obtained only through manual coding test in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative page generation method according to an embodiment of the present invention;
FIG. 2 is a flow diagram of an alternative page generation method according to an embodiment of the invention;
FIG. 3 is an interface diagram of an alternative page generation method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an alternative page generation apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative page generation apparatus according to an embodiment of the present invention;
FIG. 6 is a flow diagram of an alternative page generation method according to an embodiment of the invention;
FIG. 7 is a diagram of an alternative page generation apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In an embodiment of the present invention, an embodiment of the above-mentioned page generation method is provided. As an optional implementation manner, the terminal 102 obtains a page access request, where the page access request carries a first identifier, where the first identifier is used to indicate a page function component to be configured in a target page to be accessed by the page access request, and obtains, through the network 104 and from the server 106, a page template used to generate the target page and a page script matched with the page template in response to the page access request, where the page script is used to obtain a component script of the page function component matched with the first identifier; acquiring a component script of the page functional component through the page script, and adding the page functional component corresponding to the component script into the page template by using the component script to generate a target page; and then, displaying the target page, wherein the target page is provided with the page function component.
In this embodiment, after the page template and the page script matching with the page template are obtained in response to the obtained page access request, wherein, the page access request carries a first identifier for indicating the page function component to be configured in the target page to be accessed by the page access request, acquiring a component script of the page function component matched with the first identifier through the page script, adding the page function component corresponding to the component script and the component script into the page template by using the component script, so as to directly generate and display the target page configured with the page function component in the access process, without the need of executing the complicated page development and page publishing processes according to the operation requirements by developers, thereby achieving the effect of improving the page generation efficiency, and further, the problem of low generation efficiency of the page caused by the fact that the page to be generated can be developed and obtained only through manual coding test in the related technology is solved.
Optionally, in this embodiment, the terminal may include, but is not limited to, at least one of the following: the mobile phone, the tablet computer, the notebook computer, the PC and other hardware equipment applying the data access process. Optionally, in this embodiment, the network may include, but is not limited to, at least one of the following: wide area networks, metropolitan area networks, and local area networks. The above is only an example, and this is not limited in this embodiment.
According to an embodiment of the present invention, there is provided a page generation method, as shown in fig. 2, the method including:
s202, a page access request is obtained, wherein the page access request carries a first identifier, and the first identifier is used for indicating a page function component to be configured in a target page to be accessed by the page access request;
s204, responding to the page access request, acquiring a page template for generating a target page and a page script matched with the page template, wherein the page script is used for acquiring a component script of a page function component matched with the first identifier;
s206, acquiring a component script of the page function component through the page script, and adding the page function component corresponding to the component script into the page template by using the component script to generate a target page;
s208, displaying a target page, wherein the target page is provided with a page function component.
Optionally, in this embodiment, the page generation method may be applied to, but not limited to, a page development or a page operation and maintenance process. For example, taking page development as an example, an operator may directly configure a mapping relationship between a first identifier and a page function component on a configuration interface displayed by a terminal (also referred to as an access terminal in this embodiment) and store the mapping relationship in a server, so that the terminal receiving a page access request may directly obtain, from the server, a component script of the page function component that matches the first identifier carried in the page access request through the page script, thereby implementing that the component script calls the corresponding page function component to add to a page template to generate a target page to be accessed, without performing a complex encoding and test development process, thereby saving a page publishing process and achieving an effect of improving page generation efficiency. In addition, for example, the operation and maintenance of the page can be performed, and when the generated page needs to be updated and modified, the page function component in the target page to be accessed can be updated and modified by directly changing the mapping relationship between the first identifier and the page function component, so that the operation and maintenance process is simplified, and the page generation efficiency is also ensured. The above is only an example, and this is not limited in this embodiment.
It should be noted that, in this embodiment, after the page template and the page script matched with the page template are obtained in response to the obtained page access request, where the page access request carries a first identifier for indicating a page function component to be configured in a target page to be accessed by the page access request, a component script of the page function component matched with the first identifier is obtained through the page script, and the component script and the page function component corresponding to the component script are added to the page template, so as to directly generate and display the target page configured with the page function component in the access process, and do not need to execute a tedious page development and page publishing process according to an operation requirement by a developer, thereby achieving an effect of improving page generation efficiency, and further overcoming a problem of low page generation efficiency caused by that a page to be generated can be developed and obtained only through a manual coding test in the related art .
Optionally, in this embodiment, the page script matched with the page template may be, but is not limited to, a js (javascript) script code, and is configured to parse a first identifier carried in the page access request, and obtain, according to the first identifier, a component script of the page functional component matched with the first identifier.
Optionally, in this embodiment, the manner of acquiring the component script of the page function component matching the first identifier by the page script may include, but is not limited to: the page script acquires configuration information from a configuration server, wherein the configuration information is used for recording the mapping relation between the first identifier and the component identifier of the page function component; and acquiring the component identification of the page function component matched with the first identification from the acquired configuration information, and acquiring the corresponding component script according to the component identification.
It should be noted that, the configuration information may be, but is not limited to, configured and generated by selecting a component identifier of a page function component to be configured on a configuration interface of the terminal. In addition, in this embodiment, the configuration information may be, but is not limited to, stored in a configuration server, and may also be, but is not limited to, stored in a Content Delivery Network (CDN) server, where the page script and the page template may also be, but is not limited to, deployed in a Content Delivery Network (CDN) server.
Optionally, in this embodiment, the page template may be, but is not limited to, a uniform carrier for carrying the page function component, and is used to configure a display style of the page function component in the page, such as a page head (head), a page body (body), and the like. That is, the different target pages to be accessed by the page access request can be generated based on, but not limited to, the page template. This is not limited in this embodiment.
It should be noted that, in this embodiment, the system for executing the page generation method may be, but is not limited to, an online generation system. That is, the online system may directly configure a mapping relationship between the first identifier and the component identifier of the page function component, and store the mapping relationship in a preset path in the server database. Further, after a terminal of the online system acquires a page access request, a page template and a corresponding page script can be acquired by responding to the page access request, and configuration information for recording the mapping relation is acquired from a preset path through the page script, so that the component identification of the page functional component matched with the first identification is acquired according to the configuration information, and the page functional component matched with the component identification is added in the page template, so that a target page to be accessed is generated quickly.
For example, assuming that the mapping relationship is a mapping relationship between the first identifier and the component identifier of the page function component, the configured mapping relationship is shown in table 1:
TABLE 1
First mark Component identification of page functional components
ID-1 Voting
ID-2 Comments
ID-1 Statistics of
That is to say, after the page component parses the page access request to obtain the first identifier, assuming that the first identifier is ID-1, the component identifiers of the voting page function component and the statistical page function component are obtained through the mapping relationship, and then the corresponding script component, for example, voting js and statistics js, is obtained through downloading, so as to add the service interface of the page service corresponding to the voting page function component and the statistical page function component to the target page when the target page to be accessed is generated.
Optionally, in this embodiment, the obtaining, in response to the page access request, a page template used for generating the target page and a page script matched with the page template includes: and downloading and acquiring a page template and a page script according to a request address indicated by the page access request, wherein the page template is at least provided with a display style of the page functional component. For example, the display style of the page function component may include: display color, display shape, display position, and the like. The above is only an example, and this is not limited in this embodiment.
Optionally, in this embodiment, the page function component is configured to provide one or more page services on the target page. The page function component may be, but not limited to, a component having a certain function and used for implementing one or more page servers, for example, voting, commenting, counting, barrage, red packet, and the like. For example, it is assumed here that the voting page function component is taken as an example, and the voting page function component is used for providing page services related to voting on a target page and comprises the following steps: and page services such as frequency control anti-refreshing, bill verification, data consistency inspection, user information storage, voting data storage and the like are provided.
Optionally, in this embodiment, the page service indicated by the page function component may be, but is not limited to being, executed in at least one of the following cases:
1) executing the page service indicated by the page function component when the target page is generated;
for example, the statistical page function component will perform statistical operations to count the number of page accesses while generating and displaying the target page.
2) After a target page is generated, receiving a first operation instruction generated after a trigger operation is executed on a trigger button displayed in the target page, wherein the trigger button corresponds to a page function component; and responding to the first operation instruction, and executing the page service indicated by the page function component.
For example, take the example that the target page is configured with a voting page function component. After the target page is generated and a first operation instruction generated by executing voting operation on a voting button displayed on the target page is acquired, the voting service indicated by the voting page function component is executed, and a voting result corresponding to voting content is acquired.
That is to say, in this embodiment, a required service interface may be directly called, and by calling different service interfaces, the execution code for executing the page service indicated by the service interface may be implemented; the service background can also be built by using a high-concurrency tafnode framework based on nodes to realize execution codes of a plurality of page services indicated by the execution service interface, for example, a plurality of monitoring page services such as necessary security and frequency control are executed to ensure the stability of the background and the service security.
By the embodiment provided by the application, after the page template and the page script matched with the page template are obtained in response to the obtained page access request, wherein, the page access request carries a first identifier for indicating the page function component to be configured in the target page to be accessed by the page access request, acquiring a component script of the page function component matched with the first identifier through the page script, adding the page function component corresponding to the component script and the component script into the page template by using the component script, so as to realize the direct generation and display of the target page configured with the page function component in the access process, thereby achieving the effect of improving the page generation efficiency, and further, the problem of low generation efficiency of the page caused by the fact that the page to be generated can be developed and obtained only through manual coding test in the related technology is solved.
As an optional solution, the obtaining of the component script of the page function component through the page script includes:
s1, acquiring the pre-configured component identifier of the page function component matched with the first identifier from the database of the server through the page script;
and S2, acquiring a component script matched with the component identification, wherein the component script is used for requesting to call a service interface of the page service indicated by the page function component, and the page function component is used for providing one or more page services on the target page.
Optionally, in this embodiment, the page script may be, but is not limited to, configured to obtain, from a database of the server, a component identifier of a page function component that matches the first identifier. In addition, in this embodiment, the page script may be, but is not limited to, address information further indicating the server, where the address information is used to indicate a stored path in the server for storing the configuration information matching the first identifier. Optionally, in this embodiment, the component script may be, but is not limited to, a service interface for requesting to call a page service indicated by the page function component, so as to execute the page service indicated by the page function component.
It should be noted that the component script may be, but is not limited to, deployed in a Content Delivery Network (CDN) server together with a page script. Therefore, the terminal can conveniently download and obtain the page script and the component script, and further realize the execution of corresponding operation by using the script.
According to the embodiment provided by the application, the service interface of the page service is called by using the component script, so that the background capability of the page function component in the target page to be generated to be accessed by the page access request is enhanced, and the generated target page can realize more complex operation and interaction.
As an optional scheme, obtaining, by the page script, a component identifier of a preconfigured page function component matching the first identifier from a database of the server includes:
s1, acquiring address information indicated by the page script, wherein the address information is used for indicating a path for storing configuration information matched with the first identifier in the server, and the configuration information is used for recording the mapping relation between the first identifier and the component identifier of the page function component;
and S2, acquiring the configuration information according to the path, and acquiring the component identifier of the page function component matched with the first identifier from the mapping relation recorded by the configuration information.
Optionally, in this embodiment, the page script may, but is not limited to, carry address information for storing configuration information. That is to say, after the page script is obtained, the page access request may be analyzed by the page script to obtain the first identifier, and according to the address information indicated by the page script, a path in which the configuration information matched with the first identifier is stored in the server is obtained, and according to the path, the component identifier of the page function component matched with the analyzed first identifier recorded in the configuration information is obtained. For example, the address information carried by the page script is an interface Uniform Resource Locator (URL).
Optionally, in this embodiment, the configuration information may be used to record a mapping relationship between the first identifier and a component identifier of the page function component, and after obtaining the component identifier of the page function component, obtain a component script matched with the component identifier according to the component identifier; the configuration information can also be used for recording the mapping relation among the first identifier, the component identifier of the page function component and the component script, and after the component identifier of the page function component is obtained, the component script matched with the component identifier is directly obtained through the mapping relation. This is not limited in this embodiment.
As an optional scheme, before obtaining the page access request, the method further includes:
s1, acquiring a component identifier for establishing a mapping relation with the first identifier on the configuration interface, wherein the component identifier of the page function component is displayed on the configuration interface.
Optionally, in this embodiment, the first identifier may be, but is not limited to, a configuration process for uniquely identifying the configuration interface. That is, after acquiring the component identifier of the page function component for establishing the mapping relationship on the configuration interface at a predetermined time, the configuration information obtained by uniquely identifying the above-mentioned configuration process of the page function component for the target page by using the first identifier is obtained. In other words, when the configuration interface configures the component identifiers of the same page function component for the same target page, but the configuration time is different, the first identifier may be a different identifier.
It should be noted that, in this embodiment, after the configuration information is obtained, a corresponding access link is generated according to the configuration information and the first identifier, and for example, the access link is provided to the access terminal in a Uniform Resource Locator (URL) form through sending, sharing or other manners. In this embodiment, the address indicated by the access link may be, but is not limited to, a storage address of the page template and a page script, where the page script carries address information for storing the configuration information.
Optionally, in this embodiment, the obtaining, in response to the page access request, a page template used for generating the target page and a page script matched with the page template includes: and downloading and acquiring a page template and a page script according to a request address indicated by the page access request, wherein the page template is at least provided with a display style of the page functional component.
It should be noted that the request address indicated by the page access request may be, but is not limited to, the access link generated according to the configuration information. That is to say, after the access terminal obtains the page access request, it will access the request address (i.e. access link) indicated by the page access request, and according to the pre-convention, it will obtain the general page template and page script used for generating the target page from the request address (i.e. access link), so that different access terminals can quickly obtain the stored page template and page script, and it is convenient to obtain the pre-configured configuration information according to the address information indicated by the page script, thereby achieving the purpose of improving the generation efficiency of generating the target page to be accessed.
In addition, in this embodiment, the request address (i.e., the access link) and the address information indicated by the page script may be deployed at different locations in the same server, or may be deployed in different servers, for example, the request address (i.e., the access link) is deployed in a CDN server, and the address information indicated by the page script is deployed in a configuration server. The above is only an example, and this is not limited in this embodiment.
Optionally, in this embodiment, before the configuration interface acquires the component identifier for establishing the mapping relationship with the first identifier, at least one of the following is further included:
1) displaying component identifications of all page functional components on a configuration interface;
2) displaying a selection list on the configuration interface, wherein the selection list is used for expanding and displaying component identifications of all page functional components after receiving a second operation instruction;
3) and displaying a search input box on the configuration interface, wherein the search input box is used for searching the component identifications of all page functional components.
Specifically, the following example is used for explanation, and it is assumed that the configuration interface takes fig. 3 as an example, component identifiers of all page function components are displayed on the configuration interface, and it is assumed that the displayed component identifiers of the page function components include: voting, commenting and counting. By checking the corresponding component identifier (e.g., vote) and creating a first identifier (e.g., ID-1) for the checked component identifier (e.g., vote), the mapping relationship between the first identifier and the checked component identifier is established.
In addition, in this embodiment, the component identifier of the page function component for establishing the mapping relationship may also be obtained by selecting a list or searching an input box, and the like, which is not described herein again in this embodiment.
According to the method and the device for displaying the page function component, the page function component to be displayed in the target page is directly configured on the visual interface, so that the configuration steps are simplified, the development process is saved, and the effect of improving the page generation efficiency is achieved.
As an optional scheme, the method further comprises the following steps:
1) and when the page function component indicates the first type, executing the page service indicated by the page function component when the target page is generated.
For example, the first type page function component takes a statistical page function component as an example, and performs a statistical operation on a target page while generating the target page, so as to count the number of page accesses to the target page.
2) When the page function component indicates a second type, after a target page is generated, receiving a first operation instruction generated after a trigger operation is executed on a trigger button displayed in the target page, wherein the trigger button corresponds to the page function component; and responding to the first operation instruction, and executing the page service indicated by the page function component.
For example, the second type page function component takes the voting page function component as an example, after the target page is generated, and after a first operation instruction generated after the voting operation is performed on the voting button corresponding to the voting page function component is received, the voting service indicated by the voting page function component is executed, and the voting result corresponding to the voting content is obtained.
It should be noted that, in this embodiment, the component script may be, but is not limited to, directly call a service interface corresponding to one page service, and may also be, but is not limited to, call service interfaces of multiple page services, for example, a service background is built by using a nodejs-based high-concurrency tafnode framework, and call service interfaces of different page services.
Optionally, in this embodiment, for the read-write requirements corresponding to different target pages, different storage modes may be configured, but are not limited to: for example, the low-frequency read-write operation uses a mysql database to store the content, and the high-frequency read-write operation uses the dcache of the MIG, so that the timely response of the interface is ensured.
According to the embodiment provided by the application, the page service can be directly executed when the target page is generated according to the characteristics of different page services, and the page service can also be executed according to the operation instruction of the target page after the target page is generated. Thereby realizing the flexibility of executing the page service.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is also provided a page generating apparatus for implementing the page generating method, as shown in fig. 4, the apparatus includes:
1) a first obtaining unit 402, configured to obtain a page access request, where the page access request carries a first identifier, and the first identifier is used to indicate a page function component to be configured in a target page to be accessed by the page access request;
2) a second obtaining unit 404, configured to obtain, in response to the page access request, a page template used for generating a target page and a page script matched with the page template, where the page script is used to obtain a component script of a page function component matched with the first identifier;
3) a generating unit 406, configured to obtain a component script of the page function component through the page script, and add the page function component corresponding to the component script to the page template by using the component script to generate a target page;
4) the display unit 408 is configured to display a target page, where the target page is configured with a page function component.
Optionally, in this embodiment, the page generating apparatus may be applied to, but not limited to, a page development process or a page operation and maintenance process. For example, taking page development as an example, an operator may directly configure a mapping relationship between a first identifier and a page function component on a configuration interface displayed by a terminal (also referred to as an access terminal in this embodiment) and store the mapping relationship in a server, so that the terminal receiving a page access request may directly obtain, from the server, a component script of the page function component that matches the first identifier carried in the page access request through the page script, thereby implementing that the component script calls the corresponding page function component to add to a page template to generate a target page to be accessed, without performing a complex encoding and test development process, thereby saving a page publishing process and achieving an effect of improving page generation efficiency. In addition, for example, the operation and maintenance of the page can be performed, and when the generated page needs to be updated and modified, the page function component in the target page to be accessed can be updated and modified by directly changing the mapping relationship between the first identifier and the page function component, so that the operation and maintenance process is simplified, and the page generation efficiency is also ensured. The above is only an example, and this is not limited in this embodiment.
The method can be applied to the page development or page operation and maintenance process. For example, taking page development as an example, an operator may directly configure a mapping relationship between a first identifier and a page function component on a configuration interface displayed by a terminal (also referred to as an access terminal in this embodiment) and store the mapping relationship in a server, so that the terminal receiving a page access request may directly obtain, from the server, a component script of the page function component that matches the first identifier carried in the page access request through the page script, thereby implementing that the component script calls the corresponding page function component to add to a page template to generate a target page to be accessed, without performing a complex encoding and test development process, thereby saving a page publishing process and achieving an effect of improving page generation efficiency. In addition, for example, the operation and maintenance of the page can be performed, and when the generated page needs to be updated and modified, the page function component in the target page to be accessed can be updated and modified by directly changing the mapping relationship between the first identifier and the page function component, so that the operation and maintenance process is simplified, and the page generation efficiency is also ensured. The above is only an example, and this is not limited in this embodiment.
For example, assuming that the mapping relationship is a mapping relationship between the first identifier and the component identifier of the page function component, the configured mapping relationship is shown in table 2:
TABLE 2
First mark Component identification of page functional components
ID-1 Voting
ID-2 Comments
ID-1 Statistics of
That is to say, after the page component parses the page access request to obtain the first identifier, assuming that the first identifier is ID-1, the component identifiers of the voting page function component and the statistical page function component are obtained through the mapping relationship, and then the corresponding script component, for example, voting js and statistics js, is obtained through downloading, so as to add the service interface of the page service corresponding to the voting page function component and the statistical page function component to the target page when the target page to be accessed is generated.
Optionally, in this embodiment, the obtaining, in response to the page access request, a page template used for generating the target page and a page script matched with the page template includes: and downloading and acquiring a page template and a page script according to a request address indicated by the page access request, wherein the page template is at least provided with a display style of the page functional component. For example, the display style of the page function component may include: display color, display shape, display position, and the like. The above is only an example, and this is not limited in this embodiment.
Optionally, in this embodiment, the page function component is configured to provide one or more page services on the target page. The page function component may be, but not limited to, a component having a certain function and used for implementing one or more page servers, for example, voting, commenting, counting, barrage, red packet, and the like. For example, it is assumed here that the voting page function component is taken as an example, and the voting page function component is used for providing page services related to voting on a target page and comprises the following steps: and page services such as frequency control anti-refreshing, bill verification, data consistency inspection, user information storage, voting data storage and the like are provided.
Optionally, in this embodiment, the page service indicated by the page function component may be, but is not limited to being, executed in at least one of the following cases:
1) executing the page service indicated by the page function component when the target page is generated;
for example, the statistical page function component will perform statistical operations to count the number of page accesses while generating and displaying the target page.
2) After a target page is generated, receiving a first operation instruction generated after a trigger operation is executed on a trigger button displayed in the target page, wherein the trigger button corresponds to a page function component; and responding to the first operation instruction, and executing the page service indicated by the page function component.
For example, take the example that the target page is configured with a voting page function component. After the target page is generated and a first operation instruction generated by executing voting operation on a voting button displayed on the target page is acquired, the voting service indicated by the voting page function component is executed, and a voting result corresponding to voting content is acquired.
That is to say, in this embodiment, a required service interface may be directly called, and by calling different service interfaces, the execution code for executing the page service indicated by the service interface may be implemented; the service background can also be built by using a high-concurrency tafnode framework based on nodes to realize execution codes of a plurality of page services indicated by the execution service interface, for example, a plurality of monitoring page services such as necessary security and frequency control are executed to ensure the stability of the background and the service security.
By the embodiment provided by the application, after the page template and the page script matched with the page template are obtained in response to the obtained page access request, wherein, the page access request carries a first identifier for indicating the page function component to be configured in the target page to be accessed by the page access request, acquiring a component script of the page function component matched with the first identifier through the page script, adding the page function component corresponding to the component script and the component script into the page template by using the component script, so as to realize the direct generation and display of the target page configured with the page function component in the access process, thereby achieving the effect of improving the page generation efficiency, and further, the problem of low generation efficiency of the page caused by the fact that the page to be generated can be developed and obtained only through manual coding test in the related technology is solved.
As an alternative, as shown in fig. 5, the generating unit 406 includes:
1) a first obtaining module 502, configured to obtain, from a database of the server, a component identifier of a preconfigured page function component that matches the first identifier through the page script;
2) and a second obtaining module 504, configured to obtain a component script that matches the component identifier, where the component script is used to request to call a service interface of the page service indicated by the page function component, and the page function component is used to provide one or more page services on the target page.
Optionally, in this embodiment, the page script may be, but is not limited to, configured to obtain, from a database of the server, a component identifier of a page function component that matches the first identifier. In addition, in this embodiment, the page script may be, but is not limited to, address information further indicating the server, where the address information is used to indicate a stored path in the server for storing the configuration information matching the first identifier. Optionally, in this embodiment, the component script may be, but is not limited to, a service interface for requesting to call a page service indicated by the page function component, so as to execute the page service indicated by the page function component.
It should be noted that the component script may be, but is not limited to, deployed in a Content Delivery Network (CDN) server together with a page script. Therefore, the terminal can conveniently download and obtain the page script and the component script, and further realize the execution of corresponding operation by using the script.
According to the embodiment provided by the application, the service interface of the page service is called by using the component script, so that the background capability of the page function component in the target page to be generated to be accessed by the page access request is enhanced, and the generated target page can realize more complex operation and interaction.
As an optional solution, the first obtaining module includes:
1) the first obtaining submodule is used for obtaining address information indicated by the page script, wherein the address information is used for indicating a path for storing configuration information matched with the first identifier in the server, and the configuration information is used for recording a mapping relation between the first identifier and a component identifier of the page functional component;
2) and the second obtaining sub-module is used for obtaining the configuration information according to the path and obtaining the component identifier of the page function component matched with the first identifier from the mapping relation recorded by the configuration information.
Optionally, in this embodiment, the page script may, but is not limited to, carry address information for storing configuration information. That is to say, after the page script is obtained, the page access request may be analyzed by the page script to obtain the first identifier, and according to the address information indicated by the page script, a path in which the configuration information matched with the first identifier is stored in the server is obtained, and according to the path, the component identifier of the page function component matched with the analyzed first identifier recorded in the configuration information is obtained. For example, the address information carried by the page script is an interface Uniform Resource Locator (URL).
Optionally, in this embodiment, the configuration information may be used to record a mapping relationship between the first identifier and a component identifier of the page function component, and after obtaining the component identifier of the page function component, obtain a component script matched with the component identifier according to the component identifier; the configuration information can also be used for recording the mapping relation among the first identifier, the component identifier of the page function component and the component script, and after the component identifier of the page function component is obtained, the component script matched with the component identifier is directly obtained through the mapping relation. This is not limited in this embodiment.
According to the embodiment provided by the application, after the address information indicated by the page script matched with the page template is acquired, the component identifier of the page function component matched with the first identifier, which is recorded in the pre-configured configuration information stored in the server and indicated by the address information, is acquired according to the path indicated by the address information, so that the corresponding component script is acquired by using the component identifier, and further, the page function component corresponding to the component script is added into the corresponding page template to generate the target page to be accessed, processes such as issuing, auditing and the like on the target page to be generated are not needed, and the effect of improving the generation efficiency is achieved.
As an optional scheme, the method further comprises the following steps:
1) and the configuration unit is used for acquiring the component identifier for establishing the mapping relation with the first identifier on a configuration interface before acquiring the page access request, wherein the component identifier of the page function component is displayed on the configuration interface.
Optionally, in this embodiment, the first identifier may be, but is not limited to, a configuration process for uniquely identifying the configuration interface. That is, after acquiring the component identifier of the page function component for establishing the mapping relationship on the configuration interface at a predetermined time, the configuration information obtained by uniquely identifying the above-mentioned configuration process of the page function component for the target page by using the first identifier is obtained. In other words, when the configuration interface configures the component identifiers of the same page function component for the same target page, but the configuration time is different, the first identifier may be a different identifier.
It should be noted that, in this embodiment, after the configuration information is obtained, a corresponding access link is generated according to the configuration information and the first identifier, and for example, the access link is provided to the access terminal in a Uniform Resource Locator (URL) form through sending, sharing or other manners. In this embodiment, the address indicated by the access link may be, but is not limited to, a storage address of the page template and a page script, where the page script carries address information for storing the configuration information.
Optionally, in this embodiment, the second obtaining unit includes: and the downloading module is used for downloading and acquiring the page template and the page script according to the request address indicated by the page access request, wherein the page template is at least provided with a display style of the page functional component.
It should be noted that the request address indicated by the page access request may be, but is not limited to, the access link generated according to the configuration information. That is to say, after the access terminal obtains the page access request, it will access the request address (i.e. access link) indicated by the page access request, and according to the pre-convention, it will obtain the general page template and page script used for generating the target page from the request address (i.e. access link), so that different access terminals can quickly obtain the stored page template and page script, and it is convenient to obtain the pre-configured configuration information according to the address information indicated by the page script, thereby achieving the purpose of improving the generation efficiency of generating the target page to be accessed.
In addition, in this embodiment, the request address (i.e., the access link) and the address information indicated by the page script may be deployed at different locations in the same server, or may be deployed in different servers, for example, the request address (i.e., the access link) is deployed in a CDN server, and the address information indicated by the page script is deployed in a configuration server. The above is only an example, and this is not limited in this embodiment.
Optionally, in this embodiment, at least one of the following is further included:
1) the first display unit is used for displaying the component identifiers of all the page function components on the configuration interface before the component identifiers used for establishing the mapping relation with the first identifiers are acquired on the configuration interface;
2) the second display unit is used for displaying a selection list on the configuration interface before the configuration interface acquires the component identifier used for establishing the mapping relation with the first identifier, wherein the selection list is used for expanding and displaying the component identifiers of all the page functional components after receiving a second operation instruction;
3) and the third display unit displays a search input box on the configuration interface before the configuration interface acquires the component identifier for establishing the mapping relation with the first identifier, wherein the search input box is used for searching the component identifiers of all the page function components.
Specifically, the following example is used for explanation, and it is assumed that the configuration interface takes fig. 3 as an example, component identifiers of all page function components are displayed on the configuration interface, and it is assumed that the displayed component identifiers of the page function components include: voting, commenting and counting. By checking the corresponding component identifier (e.g., vote) and creating a first identifier (e.g., ID-1) for the checked component identifier (e.g., vote), the mapping relationship between the first identifier and the checked component identifier is established.
In addition, in this embodiment, the component identifier of the page function component for establishing the mapping relationship may also be obtained by selecting a list or searching an input box, and the like, which is not described herein again in this embodiment.
According to the method and the device for displaying the page function component, the page function component to be displayed in the target page is directly configured on the visual interface, so that the configuration steps are simplified, the development process is saved, and the effect of improving the page generation efficiency is achieved.
As an optional scheme, the method further comprises the following steps:
1) the execution unit is used for executing the page service indicated by the page function component when the page function component indicates the first type and a target page is generated; or when the page function component indicates a second type, after the target page is generated, receiving a first operation instruction generated after a trigger operation is executed on a trigger button displayed in the target page, wherein the trigger button corresponds to the page function component; and responding to the first operation instruction, and executing the page service indicated by the page function component.
For example, the first type page function component takes a statistical page function component as an example, and performs a statistical operation on a target page while generating the target page, so as to count the number of page accesses to the target page.
For another example, the second-type page function component takes a voting page function component as an example, and after the target page is generated and the first operation instruction generated after the voting operation is performed on the voting button corresponding to the voting page function component is received, the voting service indicated by the voting page function component is executed, and the voting result corresponding to the voting content is obtained.
It should be noted that, in this embodiment, the component script may be, but is not limited to, directly call a service interface corresponding to one page service, and may also be, but is not limited to, call service interfaces of multiple page services, for example, a service background is built by using a nodejs-based high-concurrency tafnode framework, and call service interfaces of different page services.
Optionally, in this embodiment, for the read-write requirements corresponding to different target pages, different storage modes may be configured, but are not limited to: for example, the low-frequency read-write operation uses a mysql database to store the content, and the high-frequency read-write operation uses the dcache of the MIG, so that the timely response of the interface is ensured.
According to the embodiment provided by the application, the page service can be directly executed when the target page is generated according to the characteristics of different page services, and the page service can also be executed according to the operation instruction of the target page after the target page is generated. Thereby realizing the flexibility of executing the page service.
Example 3
The application environment of the page generation method provided by the embodiment of the present invention may be, but is not limited to, the application environment in embodiment 1, and details thereof are not described again in this embodiment.
Optionally, in this embodiment, the above page generating method may be applied, but not limited to, to a page generating system as shown in fig. 6, where the system includes: a configuration server 602, a terminal 604, and a CDN server 606. It should be noted that the configuration information of the page function component matched with the first identifier, configured for the target page to be generated through the terminal visual configuration interface, is stored in the configuration server 602, and the page template and the page script used for generating the target page are stored in the CDN server 606. The specific execution steps are as shown in fig. 6:
in step S602, the terminal 604 obtains a page access request, where the page access request carries a first identifier for indicating a page function component to be configured in a target page to be accessed by the page access request, and in response to the page access request, the terminal 604 downloads and obtains a page template for generating the target page and a page script matched with the page template from the CDN server 606, in step S604. Then, the terminal 604 obtains the first identifier by using the page script, and obtains the address information indicated by the page script in step S606, and further obtains the configuration information from the configuration server 602 according to the path indicated by the address information in step S608, obtains the component identifier of the page function component matching the first identifier from the mapping relationship recorded in the configuration information, and further obtains the corresponding component script through the component identifier, so as to call the service interface corresponding to the page function component by using the component script, and in step S610, adds the page function component corresponding to the component script to the page template, and generates the target page to be accessed by the page access request.
Example 4
According to an embodiment of the present invention, there is also provided a page generating apparatus for implementing the page generating method, as shown in fig. 7, the apparatus includes:
1) a communication interface 702 configured to obtain a page access request, where the page access request carries a first identifier, and the first identifier is used to indicate a page function component to be configured in a target page to be accessed by the page access request;
2) a processor 704, connected to the communication interface 702, configured to respond to the page access request to obtain a page template for generating the target page and a page script matched with the page template, where the page script is used to obtain a component script of the page function component matched with the first identifier; and acquiring the component script of the page function component through the page script, and adding the page function component corresponding to the component script into the page template by using the component script to generate the target page.
3) A display 706 connected to the processor 704 and configured to display the target page;
4) the memory 708, coupled to the communication interface 702, the processor 704, and the display 706, is configured to store a target page.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 and embodiment 2, and this embodiment is not described herein again.
Example 5
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the storage medium may be located in at least one of a plurality of network devices in a network.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, acquiring a page access request, wherein the page access request carries a first identifier, and the first identifier is used for indicating a page function component to be configured in a target page to be accessed by the page access request;
s2, responding to the page access request, acquiring a page template for generating a target page and a page script matched with the page template, wherein the page script is used for acquiring a component script of a page function component matched with the first identifier;
s3, acquiring a component script of the page function component through the page script, and adding the page function component corresponding to the component script into the page template by using the component script to generate a target page;
and S4, displaying the target page, wherein the target page is provided with the page function component. .
Optionally, the storage medium is further arranged to store program code for performing the steps of:
s1, acquiring the pre-configured component identifier of the page function component matched with the first identifier from the database of the server through the page script;
and S2, acquiring a component script matched with the component identification, wherein the component script is used for requesting to call a service interface of the page service indicated by the page function component, and the page function component is used for providing one or more page services on the target page.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 and embodiment 2, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (16)

1. A page generation method is characterized by comprising the following steps:
in the process of target page development, a page access request is obtained, wherein the page access request carries a first identifier, and the first identifier is used for indicating a page function component to be configured in a target page to be accessed by the page access request;
responding to the page access request to obtain a page template used for generating the target page and a page script matched with the page template, wherein the page script is used for obtaining a component script of the page functional component matched with the first identifier, and the page template is used for configuring a display style of the page functional component in the target page;
acquiring the component script of the page function component through the page script, and adding the page function component corresponding to the component script to the page template by using the component script to generate the target page;
displaying the target page, wherein the page function component is configured in the target page;
and executing the page service indicated by the page function component when the target page is generated under the condition that the page function component is a statistical page function component.
2. The method of claim 1, wherein said obtaining the component script of the page function component through the page script comprises:
acquiring a preset component identifier of the page function component matched with the first identifier from a database of a server through the page script;
and acquiring the component script matched with the component identification, wherein the component script is used for requesting to call a service interface of the page service indicated by the page function component, and the page function component is used for providing one or more page services on the target page.
3. The method of claim 2, wherein the obtaining, by the page script, the pre-configured component identifier of the page function component matching the first identifier from the database of the server comprises:
acquiring address information indicated by the page script, wherein the address information is used for indicating a path for storing configuration information matched with the first identifier in the server, and the configuration information is used for recording a mapping relation between the first identifier and a component identifier of the page function component;
and acquiring the configuration information according to the path, and acquiring the component identifier of the page function component matched with the first identifier from the mapping relation recorded by the configuration information.
4. The method of claim 2, prior to said obtaining a page access request, further comprising:
and acquiring the component identifier for establishing a mapping relation with the first identifier on a configuration interface, wherein the component identifier of the page function component is displayed on the configuration interface.
5. The method according to claim 4, further comprising at least one of the following before the obtaining, at the configuration interface, the component identifier for establishing the mapping relationship with the first identifier:
displaying the component identifications of all page functional components on the configuration interface;
displaying a selection list on the configuration interface, wherein the selection list is used for expanding and displaying the component identifications of all page functional components after receiving a second operation instruction;
displaying a search input box on the configuration interface, wherein the search input box is used for searching the component identifications of all page functional components.
6. The method of claim 2, further comprising:
when the page functional component indicates a first type, executing the page service indicated by the page functional component when the target page is generated; or
When the page function component indicates a second type, after the target page is generated, receiving a first operation instruction generated after a trigger operation is executed on a trigger button displayed in the target page, wherein the trigger button corresponds to the page function component; and responding to the first operation instruction, and executing the page service indicated by the page function component.
7. The method of claim 1, wherein the obtaining a page template for generating the target page and a page script matching the page template in response to the page access request comprises:
and downloading and acquiring the page template and the page script according to a request address indicated by the page access request, wherein the page template is at least configured with a display style of a page functional component.
8. A page generating apparatus, comprising:
a first obtaining unit, configured to obtain a page access request in a process of developing a target page, where the page access request carries a first identifier, and the first identifier is used to indicate a page function component to be configured in the target page to be accessed by the page access request;
a second obtaining unit, configured to obtain, in response to the page access request, a page template used for generating the target page and a page script matched with the page template, where the page script is used to obtain a component script of the page function component matched with the first identifier, and the page template is used to configure a display style of the page function component in the target page;
the generating unit is used for acquiring the component script of the page function component through the page script and adding the page function component corresponding to the component script into the page template by using the component script so as to generate the target page;
the display unit is used for displaying the target page, wherein the page function component is configured in the target page;
the page generating device is further configured to perform the following operations: and under the condition that the page function component is a statistical page function component, executing the page service indicated by the page function component when the target page is generated.
9. The apparatus of claim 8, wherein the generating unit comprises:
the first acquisition module is used for acquiring a preset component identifier of the page function component matched with the first identifier from a database of a server through the page script;
and the second obtaining module is used for obtaining the component script matched with the component identifier, wherein the component script is used for requesting to call a service interface of the page service indicated by the page function component, and the page function component is used for providing one or more page services on the target page.
10. The apparatus of claim 9, wherein the first obtaining module comprises:
the first obtaining sub-module is used for obtaining address information indicated by the page script, wherein the address information is used for indicating a path for storing configuration information matched with the first identifier in the server, and the configuration information is used for recording a mapping relation between the first identifier and a component identifier of the page functional component;
and the second obtaining submodule is used for obtaining the configuration information according to the path and obtaining the component identifier of the page function component matched with the first identifier from the mapping relation recorded by the configuration information.
11. The apparatus of claim 9, further comprising:
and the configuration unit is used for acquiring the component identifier for establishing a mapping relation with the first identifier in a configuration interface before the page access request is acquired, wherein the component identifier of the page function component is displayed on the configuration interface.
12. The apparatus of claim 11, further comprising at least one of:
the first display unit is used for displaying the component identifiers of all page function components on the configuration interface before the component identifiers used for establishing the mapping relation with the first identifier are acquired on the configuration interface;
the second display unit is used for displaying a selection list on the configuration interface before the component identifier used for establishing the mapping relation with the first identifier is acquired on the configuration interface, wherein the selection list is used for expanding and displaying the component identifiers of all page functional components after a second operation instruction is received;
and a third display unit, configured to display a search input box on the configuration interface before the component identifier for establishing the mapping relationship with the first identifier is acquired on the configuration interface, where the search input box is used to search the component identifiers of all page function components.
13. The apparatus of claim 9, further comprising:
the execution unit is used for executing the page service indicated by the page function component when the target page is generated when the page function component indicates a first type; or when the page function component indicates a second type, after the target page is generated, receiving a first operation instruction generated after a trigger operation is performed on a trigger button displayed in the target page, wherein the trigger button corresponds to the page function component; and responding to the first operation instruction, and executing the page service indicated by the page function component.
14. The apparatus of claim 8, wherein the second obtaining unit comprises:
and the downloading module is used for downloading and acquiring the page template and the page script according to the request address indicated by the page access request, wherein the page template is at least provided with a display style of a page functional component.
15. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
16. A computer-readable storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
CN201611242566.0A 2016-12-28 2016-12-28 Page generation method and device Active CN108255847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611242566.0A CN108255847B (en) 2016-12-28 2016-12-28 Page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611242566.0A CN108255847B (en) 2016-12-28 2016-12-28 Page generation method and device

Publications (2)

Publication Number Publication Date
CN108255847A CN108255847A (en) 2018-07-06
CN108255847B true CN108255847B (en) 2021-03-26

Family

ID=62719139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611242566.0A Active CN108255847B (en) 2016-12-28 2016-12-28 Page generation method and device

Country Status (1)

Country Link
CN (1) CN108255847B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151022B (en) * 2018-08-21 2022-06-14 平安科技(深圳)有限公司 Calling method and device of webpage console, computer equipment and storage medium
CN109144615B (en) * 2018-09-29 2022-05-10 北京城市网邻信息技术有限公司 Information publishing method, device, equipment and storage medium
CN109634602B (en) * 2018-10-26 2024-06-25 平安科技(深圳)有限公司 Electronic device, man-machine voting recognition method, and storage medium
CN109460531B (en) * 2018-11-07 2020-11-13 北京金山云网络技术有限公司 Webpage management method and device and intelligent terminal
CN112051994B (en) * 2019-06-06 2024-06-18 阿里巴巴集团控股有限公司 Visual component information processing and page visual design method and device
CN110457635A (en) * 2019-08-15 2019-11-15 北京中网易企秀科技有限公司 A kind of webpage generating method and system
CN110633219B (en) * 2019-09-24 2023-09-08 网易(杭州)网络有限公司 Page test method and device, storage medium and electronic equipment
CN110928545B (en) * 2019-12-04 2024-03-12 北京小米移动软件有限公司 Component distribution method, development method and device of single-page application and storage medium
CN110990126A (en) * 2019-12-12 2020-04-10 北京明略软件***有限公司 Method and device for realizing shortcut front-end service page based on js
CN113467775A (en) * 2020-03-31 2021-10-01 北京沃东天骏信息技术有限公司 Method and device for generating page
CN112114805B (en) * 2020-08-27 2023-05-12 长沙市到家悠享网络科技有限公司 Page generation method, device and equipment
CN112230915A (en) * 2020-09-07 2021-01-15 长沙市到家悠享家政服务有限公司 Page generation method and device and electronic equipment
CN112487331A (en) * 2020-11-26 2021-03-12 北京有竹居网络技术有限公司 Page generation method and device, storage medium and electronic equipment
CN113282862A (en) * 2021-06-07 2021-08-20 青岛海尔科技有限公司 Webpage publishing method and device, storage medium and electronic device
CN113778397A (en) * 2021-09-01 2021-12-10 粒子文化科技集团(杭州)股份有限公司 Page generation method and device, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677779A (en) * 2012-09-21 2014-03-26 成都勤智数码科技股份有限公司 Flexible page configuration showing method
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6594691B1 (en) * 1999-10-28 2003-07-15 Surfnet Media Group, Inc. Method and system for adding function to a web page
US8301997B2 (en) * 2006-01-10 2012-10-30 International Business Machines Corporation System and method for serving multiple data objects and formatting functions in a single request
US8504913B2 (en) * 2007-06-08 2013-08-06 Apple Inc. Client-side components
JP5511609B2 (en) * 2010-09-27 2014-06-04 インターナショナル・ビジネス・マシーンズ・コーポレーション Web page creation system, method and program
CN103365855B (en) * 2012-03-28 2017-05-10 腾讯科技(深圳)有限公司 Method and server for generating web pages
CN104462131A (en) * 2013-09-23 2015-03-25 阿里巴巴集团控股有限公司 Method and device for processing information issuing page
CN104142826A (en) * 2014-07-28 2014-11-12 百度在线网络技术(北京)有限公司 Method, device and system for constructing page
CN106227785A (en) * 2016-07-15 2016-12-14 杭州数梦工场科技有限公司 The display packing of a kind of page object and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103677779A (en) * 2012-09-21 2014-03-26 成都勤智数码科技股份有限公司 Flexible page configuration showing method
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Protected Web Components: Hiding Sensitive Information in the Shadows;Philippe De Ryck et al;《IT Professional》;20150228;第17卷(第1期);第36-43页 *
面向Web2.0的web应用前端开发框架的设计与实现;刘靖桐;《中国优秀硕士学位论文全文数据库 信息科技辑》;20150415;第2015年卷(第04期);第I138-462页 *

Also Published As

Publication number Publication date
CN108255847A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN108255847B (en) Page generation method and device
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
CN109981322B (en) Method and device for cloud resource management based on label
CN109597854A (en) A kind of method for routing of service request, device, computer equipment and computer storage medium
CN104133765B (en) The test case sending method of network activity and test case server
CN104765746B (en) Data processing method and device for mobile communication terminal browser
CN107844518B (en) Method for evaluating download quantity of specified APP, data server, packaging platform and system
CN103944944A (en) Webpage link sharing method and system, and electronic device
CN111198973A (en) Service visualization processing method and device based on domain model
CN110188276B (en) Data transmission device, method, electronic device, and computer-readable storage medium
CN109062799A (en) Regression testing method, the apparatus and system of advertising scenarios
CN108989365B (en) Information processing method, server, terminal equipment and storage medium
CN110941634A (en) Data processing method and device, storage medium and electronic device
CN104735041A (en) Method and device for having access to offline resources
CN111553749A (en) Activity push strategy configuration method and device
CN108737487B (en) Data synchronization method and device, storage medium and electronic device
CN108345508A (en) Interface calls test method and device
CN107679198B (en) Information query method and device
CN108984221B (en) Method and device for acquiring multi-platform user behavior logs
CN104750823B (en) Method and device for inquiring promotion condition data
CN105335470B (en) User login information shows method and apparatus
CN113934552A (en) Method and device for determining function code, storage medium and electronic device
CN108073638A (en) Data diagnosis method and device
CN110609781A (en) Interface test method, device and storage medium
CN112699304A (en) Data processing method and device, storage medium and electronic 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
GR01 Patent grant
GR01 Patent grant