CN113254128A - Project page loading method and device, computer equipment and storage medium - Google Patents

Project page loading method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113254128A
CN113254128A CN202110523282.3A CN202110523282A CN113254128A CN 113254128 A CN113254128 A CN 113254128A CN 202110523282 A CN202110523282 A CN 202110523282A CN 113254128 A CN113254128 A CN 113254128A
Authority
CN
China
Prior art keywords
rendering
page
parameters
project
project 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.)
Pending
Application number
CN202110523282.3A
Other languages
Chinese (zh)
Inventor
郭争
武海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Yuexuebang Network Technology Co ltd
Original Assignee
Wuhan Yuexuebang Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Yuexuebang Network Technology Co ltd filed Critical Wuhan Yuexuebang Network Technology Co ltd
Priority to CN202110523282.3A priority Critical patent/CN113254128A/en
Publication of CN113254128A publication Critical patent/CN113254128A/en
Pending legal-status Critical Current

Links

Images

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/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

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

Abstract

The disclosure provides a project page loading method, a project page loading device, computer equipment and a storage medium, wherein the method comprises the following steps: analyzing an item page link of an item page to be displayed and rendering parameters for rendering the item page to be displayed from the triggered webpage link; loading a corresponding project page according to the project page link; and rendering the loaded project page based on the rendering parameters to obtain a rendered target webpage. The project page can be rendered based on the analyzed rendering parameters after the project page is loaded, the rendering parameters are requested from the development end through the user end again after the project page is loaded, so that the project page is rendered, the time for acquiring the rendering parameters is shortened, and the loading rendering efficiency of the project page is improved.

Description

Project page loading method and device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of web page generation technologies, and in particular, to a project page loading method and apparatus, a computer device, and a storage medium.
Background
In the propaganda project, some project pages are often appeared to attract the attention of users and achieve the purpose of propaganda. For the rendering process of a project page, usually, after the user interface of the user end is loaded, the user end initiates a request carrying project parameters to the development end, and requests the development end for display contents such as pictures, characters, layout information and the like related to the project page through the parameters, and after the user end receives the display contents returned by the development end, the project page is rendered, loaded and displayed.
However, in the above scheme, when the network condition is not good or the server load is large, it takes a lot of time to initiate a request from the user terminal to the development terminal and receive the display content returned by the development terminal, so that the loading time of the project page is prolonged, and the rendering efficiency of the corresponding project page is low.
Disclosure of Invention
The embodiment of the disclosure at least provides a project page loading method and device, computer equipment and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a project page loading method, where the method includes:
analyzing an item page link of an item page to be displayed and rendering parameters for rendering the item page to be displayed from the triggered webpage link;
loading a corresponding project page according to the project page link;
and rendering the loaded project page based on the rendering parameters to obtain a rendered target webpage.
In some possible embodiments, the project page can be rendered based on the analyzed rendering parameters after the project page is loaded, and the user side does not need to request the rendering parameters from the development side again after the project page is loaded, so as to render the project page, reduce the time for acquiring the rendering parameters, and further improve the loading rendering efficiency of the project page.
In an optional embodiment, the method further comprises:
determining item page links of the item pages to be displayed and rendering information aiming at the item pages to be displayed;
and generating the webpage link comprising the project page link and the rendering parameter based on the project page link and the rendering parameter corresponding to the rendering information.
In this optional embodiment, after determining that the item page link corresponding to the item page and the rendering information that is to be displayed on the item page are to be displayed, a web page link including the item page link and the rendering parameter may be generated based on the information, so that when the user clicks the web page link, the item page link and the rendering information included in the web page link may be analyzed.
In an optional embodiment, the rendering information includes at least one of:
rendering text information, rendering document information, rendering image information, rendering rule information.
In an optional embodiment, the method further comprises:
when the page content in the project page to be displayed needs to be updated, determining rendering information of the content to be updated;
and updating the rendering file at the preset storage position corresponding to the rendering information of the content to be updated.
In this optional embodiment, when the rendering information needs to be adjusted, the generated webpage link does not need to be adjusted, but the rendering file corresponding to the rendering information is updated, so that the webpage link does not need to be adjusted, and the updating efficiency of the rendering file is improved.
In an optional implementation manner, after loading the corresponding project page according to the project page link, the method further includes:
and acquiring a rendering file corresponding to the rendering parameter based on the rendering parameter in the webpage link.
In an alternative embodiment, the rendering parameters include at least one of:
rendering text parameters, rendering document parameters, rendering image parameters and rendering rule parameters.
In an optional embodiment, the obtaining, based on the rendering parameter in the web page link, a rendering file corresponding to the rendering parameter includes:
when the rendering parameters are rendering text parameters, obtaining rendering texts included in the rendering text parameters;
when the rendering parameters are rendering document parameters, obtaining rendering documents corresponding to the rendering document parameters from document calling addresses indicated by the rendering document parameters;
when the rendering parameters are rendering image parameters, obtaining rendering images corresponding to the rendering image parameters from image calling addresses indicated by the rendering image parameters;
and when the rendering parameters are rendering rule parameters, acquiring rendering rules with the same rule identification based on the rule identification corresponding to the rendering rule parameters.
In this optional embodiment, based on a preset rendering rule, a corresponding rendering file is called, so as to prepare for rendering the project page.
In an optional implementation manner, the rendering the loaded project page based on the rendering parameter to obtain a rendered target web page includes:
determining a rendering file for the project page and layout information for the rendering file indicated by the rendering parameters;
and when the project page is loaded, adding the rendering file to the corresponding position of the project page based on the typesetting information so as to render the project page and obtain a rendered target webpage.
In this optional embodiment, after the rendering file for rendering the item page is obtained, the rendering file is typeset based on the typesetting information in the rendering file, so as to obtain a rendered target webpage, and the rendering process for the item page is completed.
In a second aspect, an embodiment of the present disclosure further provides a project page loading apparatus, where the apparatus includes:
the analysis module is used for analyzing the item page link of the item page to be displayed and the rendering parameter for rendering the item page to be displayed from the triggered webpage link;
the loading module is used for loading the corresponding project page according to the project page link;
and the rendering module is used for rendering the loaded project page based on the rendering parameters to obtain a rendered target webpage.
In an alternative embodiment, the apparatus further comprises:
a first determining module, configured to determine an item page link of the item page to be displayed and rendering information for the item page to be displayed;
a generating module, configured to generate the web page link including the project page link and the rendering parameter based on the project page link and the rendering parameter corresponding to the rendering information.
In an optional embodiment, the rendering information includes at least one of:
rendering text information, rendering document information, rendering image information, rendering rule information.
In an alternative embodiment, the apparatus further comprises:
the second determining module is used for determining rendering information of the content to be updated when the page content in the project page to be displayed needs to be updated;
and the updating module is used for updating the rendering file at the preset storage position corresponding to the rendering information of the content to be updated.
In an alternative embodiment, the apparatus further comprises:
and the acquisition module is used for acquiring a rendering file corresponding to the rendering parameter based on the rendering parameter in the webpage link.
In an alternative embodiment, the rendering parameters include at least one of:
rendering text parameters, rendering document parameters, rendering image parameters and rendering rule parameters.
In an optional implementation manner, the obtaining module is specifically configured to:
when the rendering parameters are rendering text parameters, obtaining rendering texts included in the rendering text parameters;
when the rendering parameters are rendering document parameters, obtaining rendering documents corresponding to the rendering document parameters from document calling addresses indicated by the rendering document parameters;
when the rendering parameters are rendering image parameters, obtaining rendering images corresponding to the rendering image parameters from image calling addresses indicated by the rendering image parameters;
and when the rendering parameters are rendering rule parameters, acquiring rendering rules with the same rule identification based on the rule identification corresponding to the rendering rule parameters.
In an optional embodiment, the rendering module is specifically configured to:
determining a rendering file for the project page and layout information for the rendering file indicated by the rendering parameters;
and when the project page is loaded, adding the rendering file to the corresponding position of the project page based on the typesetting information so as to render the project page and obtain a rendered target webpage.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
The embodiment of the disclosure provides a project page loading method, a project page loading device, a computer device and a storage medium, which include: analyzing an item page link of an item page to be displayed and rendering parameters for rendering the item page to be displayed from the triggered webpage link; loading a corresponding project page according to the project page link; and rendering the loaded project page based on the rendering parameters to obtain a rendered target webpage.
According to the method and the device, the specific webpage link is clicked, the project page link and the rendering parameter included by the webpage link are obtained, after the corresponding project page is loaded based on the project page link, the project page which is loaded is rendered based on the rendering parameter, and therefore the rendered target webpage is obtained.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
FIG. 1 is a flowchart illustrating a project page loading method according to an embodiment of the present disclosure;
fig. 2 illustrates a second flowchart of a project page loading method provided by the embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating another project page loading method provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a project page loading apparatus provided in an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of another project page loading apparatus provided by an embodiment of the present disclosure;
fig. 6 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The term "and/or" herein merely describes an associative relationship, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Research shows that the rendering process of a project page is that after a user interface of a user end is loaded, the user end initiates a request carrying project parameters to a development end (a server end), display contents such as pictures, characters, typesetting information and the like related to the project page are requested to the development end through the parameters, and after the user end receives the display contents returned by the development end, the project page is rendered, loaded and displayed. However, in the above scheme, when the network condition is not good or the server load is large, it takes a lot of time to initiate a request from the user terminal to the development terminal and receive the display content returned by the development terminal, so that the loading time of the project page is prolonged, and the rendering efficiency of the corresponding project page is low.
Based on the research, the project page loading method includes the steps that a specific webpage link is clicked to obtain a project page link and rendering parameters included by the webpage link, after a corresponding project page is loaded based on the project page link, the loaded project page is rendered based on the rendering parameters, and accordingly a rendered target webpage is obtained.
To facilitate understanding of the present embodiment, first, a project page loading method disclosed in the embodiments of the present disclosure is described in detail, where an execution subject of the project page loading method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, and the computer device includes, for example: a terminal device, which may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle mounted device, a wearable device, or a server or other processing device. In some possible implementations, the project page loading method may be implemented by a processor calling computer readable instructions stored in a memory.
Referring to fig. 1, a flowchart of a project page loading method provided in an embodiment of the present disclosure is shown, where the method includes steps S101 to S103, where:
s101: and analyzing the item page link of the item page to be displayed and the rendering parameter for rendering the item page to be displayed from the triggered webpage link.
In this step, when the user clicks a web page link, an item page link of an item page to be displayed and rendering parameters for rendering the item page to be displayed may be determined based on information included in the web page link.
The project page may be a project promotion poster, a commodity promotion poster, a notification page, and the like displayed on a website, that is, a target user-oriented web page adopted by a promoter of some enterprises (e.g., online education enterprises, internet enterprises, and the like) for the purposes of promotion, display, and the like. For example, the user may jump to the corresponding web interface by clicking a specific link, a specific control, or a specific interface position of the user interface, specifically, the user may refer to a position of a promotional content displayed on any web page, a pop-up window, or a website, two-dimensional code information, and the like included in the promotional material.
In some possible embodiments, the web page link triggered by the user is a web page link specifically generated by a project page loading method and a specific web page link generation platform in the present embodiment, that is, based on the web page link generation platform, by a specific technical means, a rendering parameter that needs to render the project page is directly encoded in the project page link of the project page to be displayed through a certain conversion, so as to generate the specific web page link.
Illustratively, the web page link may be represented as: http:// test-m-qun.umeng100.com/sku-lp/index. html #/landingcontentId ═ 1& channelType ═ 1& source ═ 1& title ═ subject XXX, wherein http:// test-m-qun.umeng100.com is an item page link of an item page to be displayed, and the rest can respectively represent rendering parameters for rendering the item page to be displayed, and the method specifically comprises the following steps: the method comprises the steps of picture linking, rendering template serial numbers, character linking, project page themes and the like, namely, the linking content at the first position in the webpage linking is a project page link of a project page to be displayed, and the linking content at the rest positions is a rendering parameter for rendering the project page. When the user clicks on the web page link in the above example, the corresponding link content may be determined based on the corresponding position in the web page link, so as to perform the loading and rendering process of the project page.
Therefore, in some possible embodiments, based on the generated webpage link, the link and the rendering parameter of the project page included in the webpage data can be directly analyzed, the project page interface is rendered after the link of the project page is loaded, the corresponding rendering parameter is not required to be requested from the development end again after the project page is loaded, the rendering work of the project page is performed by using the rendering parameter, the return waiting time of the rendering parameter is reduced, the project page rendering process is optimized, and the generation efficiency of the project page is improved.
In this embodiment of the present disclosure, the method for generating a webpage link may include the following steps:
determining item page links of the item pages to be displayed and rendering information aiming at the item pages to be displayed;
and generating the webpage link comprising the project page link and the rendering parameter based on the project page link and the rendering parameter corresponding to the rendering information.
Illustratively, the item page link of the item page to be displayed may be in the form of www.XXX.com or http:// xxx.abc, etc., and is used to indicate the web page address of the item page, for the rendering information, generally, the item page file, the required pictures of the item page, the layout rule for the item page, etc., obtain the corresponding rendering parameters based on the rendering information, and generate the web page link including the item page link and the rendering parameters based on the determined item page link and the rendering parameters corresponding to the rendering information.
Specifically, the rendering information includes at least one of the following:
rendering text information, rendering document information, rendering image information, rendering rule information.
For example, the rendered text information may be subject information corresponding to a project page, for example: "a project", "B activity", etc., for the subject matter text shown on the project page, the rendered document information may be a text portion on the project page, such as: the system comprises a rendering module, a display module and a display rule module, wherein the rendering module is used for rendering a text, a document and an image, the rendering module is used for displaying the text, the document and the image, the rendering module is used for displaying the text, the video and the image, and the rendering module is used for displaying the text, the document and the image.
In some possible embodiments, the method of determining the corresponding rendering parameter based on the rendering information may include: aiming at the rendered text information, as most project page themes are simpler and have fewer words, the rendered text information of the project page, namely the project page theme, can be directly edited into a webpage link generated by a target; aiming at the rendered document information, because some documents have more contents and are inconvenient to be directly edited in a webpage link, the rendered document information can be edited into a document form and stored in a target position, and the target position and a corresponding document identifier are edited into a generated webpage link, so that when a user clicks the webpage link, the corresponding storage position and the corresponding document identifier can be analyzed, and the rendered document can be obtained; for the rendered image information, since the image content cannot be edited into the web page link, the link address corresponding to the image may be edited into the web page link generated by the target, specifically, the image link address and the web page link generated by the target may be associated, for example, the original disordered and irregular image link is modified as: the image webpage link/image webpage link id _ specific image position, jpg and the like, so that a corresponding rendering image can be acquired through the image link. For the rendering rule information, the typesetting rule can be named according to the serial number of the typesetting rule, and the serial number of the typesetting rule is edited into the webpage link, so that the corresponding typesetting rule can be searched based on the serial number of the typesetting rule, and the project page is typeset. When the above process is completed, the required rendering parameter reading can be completed, and the rendering work of the project page is performed.
In another embodiment of the present disclosure, the method further comprises: when the page content in the project page to be displayed needs to be updated, determining rendering information of the content to be updated; and updating the rendering file at the preset storage position corresponding to the rendering information of the content to be updated.
For example, since the content of the project page may need to be adaptively changed according to a certain display purpose, a display period, a display location, and the like, a certain update adjustment needs to be performed on the rendered content of the project page. In some possible embodiments, after determining rendering information of content of a page to be updated in an item page to be displayed to be updated, a rendering file stored in a storage location corresponding to the rendering information may be updated, for example, an image and an item file are replaced, specifically, under the determined image link, an image corresponding to the image link is replaced in the background, and other rendering files are similar to the image, which is not repeated here. Under the condition, the generated webpage link does not need to be modified, so that the webpage link is convenient to popularize, publicize and the like.
S102: and loading the corresponding project page according to the project page link.
In this step, after the item page link is parsed from the web page link, the corresponding item page may be loaded based on the item page link.
Specifically, the item page link of the item page to be displayed may be in the form of www.XXX.com or http:// xxx.abc.
In another embodiment of the present disclosure, after loading the corresponding project page according to the project page link, the method further includes: and acquiring a rendering file corresponding to the rendering parameter based on the rendering parameter in the webpage link.
Referring to fig. 2, fig. 2 is a second flowchart of a project page loading method according to an embodiment of the present disclosure. As shown in fig. 2, after the user clicks the web page link and loads the corresponding item page based on the item page link in the web page link, the rendering file corresponding to the rendering parameter may be acquired based on the rendering parameter acquired from the web page link.
Wherein the rendering parameters include at least one of:
rendering text parameters, rendering document parameters, rendering image parameters and rendering rule parameters. Specifically, the rendering text parameter may be a subject word of the project page, for example: the system comprises an A project, a B promotion and the like, wherein the A project, the B promotion and the like are used for displaying subject characters on a project page and directly editing parameters in a webpage link; the render document parameters may refer to a copy part on the project page, such as: the system comprises a web page link, a document management system, a user interface, a; the rendering image parameters can be referred to as pictures, small videos, motion pictures and the like which are required to be displayed on the project page, information for displaying project information or enriching the content of the project page, and the information is represented as a storage position, a storage identifier and the like corresponding to the image in a webpage link; the rendering rule parameter may refer to a project page display template or a display rule, and is used to arrange and display rendering texts, documents and images, and may be characterized as a rule identity, a number, and the like corresponding to the rendering rule in a webpage link.
In some possible embodiments, the obtaining, based on the rendering parameter in the web page link, a rendering file corresponding to the rendering parameter includes:
when the rendering parameters are rendering text parameters, obtaining rendering texts included in the rendering text parameters;
when the rendering parameters are rendering document parameters, obtaining rendering documents corresponding to the rendering document parameters from document calling addresses indicated by the rendering document parameters;
when the rendering parameters are rendering image parameters, obtaining rendering images corresponding to the rendering image parameters from image calling addresses indicated by the rendering image parameters;
and when the rendering parameters are rendering rule parameters, acquiring rendering rules with the same rule identification based on the rule identification corresponding to the rendering rule parameters.
In some possible embodiments, when the rendering parameter is a rendering text parameter, the rendering document parameter may be directly based on a rendering document parameter in a link of the web page, such as "XXX open, XXX promotion, XXX course", etc., as the rendering text for the project page, i.e., the subject portion of the project page; when the rendering parameters are rendering document parameters, calling out corresponding rendering documents based on the rendering document parameters in the webpage links, namely document links, storage addresses, document identifications and the like of the rendering documents; when the rendering parameters are rendering image parameters, calling corresponding rendering images based on the rendering image parameters in the webpage links, namely, the image webpage links, the storage addresses, the image identifiers and the like of the rendering images; when the rendering parameter is a rendering rule parameter, the corresponding rendering rule may be called based on the rendering rule parameter in the web page link, that is, the storage address of the rendering rule, the rule serial number identifier, and the like. In some possible embodiments, based on a preset rendering rule, a corresponding rendering file is called to prepare for rendering the project page.
S103: and rendering the loaded project page based on the rendering parameters to obtain a rendered target webpage.
In this step, after the rendering parameters are determined, the loaded project page may be rendered based on the rendering file corresponding to the rendering parameters.
Specifically, the rendering the loaded project page based on the rendering parameters to obtain a rendered target webpage includes:
determining a rendering file for the project page and layout information for the rendering file indicated by the rendering parameters;
and when the project page is loaded, adding the rendering file to the corresponding position of the project page based on the typesetting information so as to render the project page and obtain a rendered target webpage.
Illustratively, the layout information may be a layout template, or a layout characteristic, and based on the layout characteristics corresponding to the rendering rule, such as the number, size, layout position, combination relationship, and the like, the rendered file is laid out to generate a target webpage after layout; or adding the theme, the document and the image to the corresponding position of the typesetting template, so that the rendered target webpage can be generated. Therefore, in some possible embodiments, after the rendering file for rendering the item page is acquired, the rendering file is typeset based on the typesetting information in the rendering file, so as to obtain a rendered target webpage, and the rendering process for the item page is completed.
According to the method and the device, the specific webpage link is clicked, the project page link and the rendering parameter included by the webpage link are acquired, after the corresponding project page is loaded based on the project page link, the loaded project page is rendered based on the rendering parameter, and the rendered target webpage is obtained
Referring to fig. 3, fig. 3 is a flowchart of another project page loading method provided by the embodiment of the present disclosure, where the method includes steps S301 to S305, where:
s301: and determining item page links of the item pages to be shown and rendering information aiming at the item pages to be shown.
In this step, before generating the web page link, it is necessary to determine the project page link of the project page to be displayed and rendering information for rendering the project page.
Wherein the item page link means that the user can click on the link so as to browse the item page, and the item page link can be www.XXX.com or http:// xxx. Meanwhile, since the project page needs more rendering contents, rendering information for rendering the project page, including rendering text information, rendering document information, rendering image information, rendering rule information, and the like, needs to be determined.
S302: and generating the webpage link comprising the project page link and the rendering parameter based on the project page link and the rendering parameter corresponding to the rendering information.
In this step, based on the determined project page link and rendering information, a web page link including the project page link and rendering parameters corresponding to the rendering information may be generated.
In some possible embodiments, the web page link generated specifically by the platform may be generated based on a specific web page link, that is, based on the web page link generation platform, by a specific technical means, the rendering parameter that needs to render the project page is directly encoded in the project page link of the project page to be displayed through a certain conversion, so as to generate the specific web page link.
Illustratively, the web page link may be represented as: http:// test-m-qun.umeng100.com/sku-lp/index. html #/landingcontentId ═ 1& channelType ═ 1& source ═ 1& title ═ subject XXX, wherein http:// test-m-qun.umeng100.com is an item page link of an item page to be displayed, and the rest can respectively represent rendering parameters for rendering the item page to be displayed, and the method specifically comprises the following steps: the method comprises the steps of picture linking, rendering template serial numbers, character linking, project page themes and the like, namely, the linking content at the first position in the webpage linking is a project page link of a project page to be displayed, and the linking content at the rest positions is a rendering parameter for rendering the project page. When the user clicks on the web page link in the above example, the corresponding link content may be determined based on the corresponding position in the web page link, so as to perform the loading and rendering process of the project page. Therefore, after determining that the item page link corresponding to the item page is to be displayed and the rendering information which is to be displayed on the item page is determined, the webpage link including the item page link and the rendering parameter can be generated based on the information, so that when the user clicks the webpage link, the item page link and the rendering information included in the webpage link can be analyzed.
In some possible embodiments, based on the generated web page link, the link and the rendering parameter of the project page included in the web page data can be directly analyzed, the project page interface is rendered after the link of the project page is loaded, it is not necessary to request the corresponding rendering parameter from the development end again after the project page is loaded, the rendering work of the project page is performed by using the rendering parameter, the return waiting time of the rendering parameter is reduced, the project page rendering process is optimized, and the generation efficiency of the project page is improved.
S303: and analyzing the item page link of the item page to be displayed and the rendering parameter for rendering the item page to be displayed from the triggered webpage link.
S304: and loading the corresponding project page according to the project page link.
S305: and rendering the loaded project page based on the rendering parameters to obtain a rendered target webpage.
The descriptions of step S303 to step S305 may refer to the descriptions of step S101 to step S103, and the same technical effects may be achieved, and are not described herein again.
According to the method and the device, the specific webpage link is clicked, the project page link and the rendering parameter included by the webpage link are acquired, after the corresponding project page is loaded based on the project page link, the loaded project page is rendered based on the rendering parameter, and the rendered target webpage is obtained
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, the embodiment of the present disclosure further provides a project page loading apparatus corresponding to the project page loading method, and since the principle of the apparatus in the embodiment of the present disclosure for solving the problem is similar to the project page loading method in the embodiment of the present disclosure, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not described again.
Referring to fig. 4 and 5, fig. 4 is a schematic view of a project page loading device according to an embodiment of the present disclosure, and fig. 5 is a schematic view of another project page loading device according to an embodiment of the present disclosure.
The device comprises: a parsing module 410, a loading module 420, and a rendering module 430; wherein:
the parsing module 410 is configured to parse the item page link of the item page to be displayed and the rendering parameter for rendering the item page to be displayed from the triggered web page link;
a loading module 420, configured to load a corresponding project page according to the project page link;
and the rendering module 430 is configured to render the loaded project page based on the rendering parameters, so as to obtain a rendered target webpage.
In some possible embodiments, the parsing module 410 may be any processor or controller capable of parsing out the item page link of the item page to be displayed, the loading module 420 may be any processor or controller capable of loading the item page, and the rendering module 430 may be any processor or controller capable of rendering the item page to obtain the target web page, which is not described herein.
In an alternative embodiment, as shown in fig. 5, the apparatus further comprises:
a first determining module 440, configured to determine an item page link of the item page to be displayed and rendering information for the item page to be displayed;
a generating module 450, configured to generate the web page link including the project page link and the rendering parameter based on the project page link and the rendering parameter corresponding to the rendering information.
In an optional embodiment, the rendering information includes at least one of:
rendering text information, rendering document information, rendering image information, rendering rule information.
In an alternative embodiment, as shown in fig. 5, the apparatus further comprises:
a second determining module 460, configured to determine rendering information of the content to be updated when the page content in the project page to be displayed needs to be updated;
an updating module 470, configured to update the rendering file at the preset storage location corresponding to the rendering information of the content to be updated.
In an alternative embodiment, as shown in fig. 5, the apparatus further comprises:
the obtaining module 480 is configured to obtain, based on the rendering parameter in the web page link, a rendering file corresponding to the rendering parameter.
In an alternative embodiment, the rendering parameters include at least one of:
rendering text parameters, rendering document parameters, rendering image parameters and rendering rule parameters.
In an optional implementation manner, the obtaining module 480 is specifically configured to:
when the rendering parameters are rendering text parameters, obtaining rendering texts included in the rendering text parameters;
when the rendering parameters are rendering document parameters, obtaining rendering documents corresponding to the rendering document parameters from document calling addresses indicated by the rendering document parameters;
when the rendering parameters are rendering image parameters, obtaining rendering images corresponding to the rendering image parameters from image calling addresses indicated by the rendering image parameters;
and when the rendering parameters are rendering rule parameters, acquiring rendering rules with the same rule identification based on the rule identification corresponding to the rendering rule parameters.
In an optional implementation manner, the rendering module 430 is specifically configured to:
determining a rendering file for the project page and layout information for the rendering file indicated by the rendering parameters;
and when the project page is loaded, adding the rendering file to the corresponding position of the project page based on the typesetting information so as to render the project page and obtain a rendered target webpage.
According to the method and the device, the specific webpage link is clicked, the project page link and the rendering parameter included by the webpage link are obtained, after the corresponding project page is loaded based on the project page link, the project page which is loaded is rendered based on the rendering parameter, and therefore the rendered target webpage is obtained.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Corresponding to the project page loading method in fig. 1, an embodiment of the present disclosure further provides a computer device, as shown in fig. 6, a schematic structural diagram of the computer device provided in the embodiment of the present disclosure includes:
a processor 601, a memory 602, and a bus 603; the memory 602 is used for storing execution instructions and includes a memory 6021 and an external memory 6022; the memory 6021 is also referred to as an internal memory, and is configured to temporarily store the operation data in the processor 601 and the data exchanged with the external memory 6022 such as a hard disk, the processor 601 exchanges data with the external memory 6022 through the memory 6021, and when the computer device is operated, the processor 601 communicates with the memory 602 through the bus 603, so that the processor 601 executes the following instructions:
analyzing an item page link of an item page to be displayed and rendering parameters for rendering the item page to be displayed from the triggered webpage link;
loading a corresponding project page according to the project page link;
and rendering the loaded project page based on the rendering parameters to obtain a rendered target webpage.
The embodiments of the present disclosure also provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of the item page loading method in the foregoing method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the item page loading method in the foregoing method embodiments, which may be referred to specifically in the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or 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 link may be an indirect coupling or communication link of some communication interfaces, devices or units, and may be in an electrical, mechanical 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 disclosure 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (11)

1. A project page loading method, the method comprising:
analyzing an item page link of an item page to be displayed and rendering parameters for rendering the item page to be displayed from the triggered webpage link;
loading a corresponding project page according to the project page link;
and rendering the loaded project page based on the rendering parameters to obtain a rendered target webpage.
2. The project page loading method of claim 1, wherein the method further comprises:
determining item page links of the item pages to be displayed and rendering information aiming at the item pages to be displayed;
and generating the webpage link comprising the project page link and the rendering parameter based on the project page link and the rendering parameter corresponding to the rendering information.
3. The project page loading method according to claim 1, wherein the rendering information includes at least one of:
rendering text information, rendering document information, rendering image information, rendering rule information.
4. The project page loading method of claim 2, wherein the method further comprises:
when the page content in the project page to be displayed needs to be updated, determining rendering information of the content to be updated;
and updating the rendering file at the preset storage position corresponding to the rendering information of the content to be updated.
5. The project page loading method according to claim 1, further comprising, after loading the corresponding project page according to the project page link:
and acquiring a rendering file corresponding to the rendering parameter based on the rendering parameter in the webpage link.
6. The project page loading method according to claim 5, wherein the rendering parameters include at least one of:
rendering text parameters, rendering document parameters, rendering image parameters and rendering rule parameters.
7. The project page loading method according to claim 6, wherein the obtaining a rendering file corresponding to the rendering parameter based on the rendering parameter in the web page link comprises:
when the rendering parameters are rendering text parameters, obtaining rendering texts included in the rendering text parameters;
when the rendering parameters are rendering document parameters, obtaining rendering documents corresponding to the rendering document parameters from document calling addresses indicated by the rendering document parameters;
when the rendering parameters are rendering image parameters, obtaining rendering images corresponding to the rendering image parameters from image calling addresses indicated by the rendering image parameters;
and when the rendering parameters are rendering rule parameters, acquiring rendering rules with the same rule identification based on the rule identification corresponding to the rendering rule parameters.
8. The project page loading method according to claim 1, wherein the rendering the project page after the loading based on the rendering parameter to obtain a rendered target webpage comprises:
determining a rendering file for the project page and layout information for the rendering file indicated by the rendering parameters;
and when the project page is loaded, adding the rendering file to the corresponding position of the project page based on the typesetting information so as to render the project page and obtain a rendered target webpage.
9. An apparatus for loading a project page, the apparatus comprising:
the analysis module is used for analyzing the item page link of the item page to be displayed and the rendering parameter for rendering the item page to be displayed from the triggered webpage link;
the loading module is used for loading the corresponding project page according to the project page link;
and the rendering module is used for rendering the loaded project page based on the rendering parameters to obtain a rendered target webpage.
10. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is running, the machine-readable instructions when executed by the processor performing the steps of the project page loading method of any of claims 1 to 8.
11. A computer-readable storage medium, having stored thereon a computer program for performing, when executed by a processor, the steps of the project page loading method according to any one of claims 1 to 8.
CN202110523282.3A 2021-05-13 2021-05-13 Project page loading method and device, computer equipment and storage medium Pending CN113254128A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110523282.3A CN113254128A (en) 2021-05-13 2021-05-13 Project page loading method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110523282.3A CN113254128A (en) 2021-05-13 2021-05-13 Project page loading method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113254128A true CN113254128A (en) 2021-08-13

Family

ID=77181670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110523282.3A Pending CN113254128A (en) 2021-05-13 2021-05-13 Project page loading method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113254128A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765742A (en) * 2014-01-06 2015-07-08 阿里巴巴集团控股有限公司 Information display method and device
CN112015408A (en) * 2020-07-08 2020-12-01 广州乐摇摇信息科技有限公司 Component rendering method and device, storage medium and electronic device
CN112784184A (en) * 2019-11-08 2021-05-11 上海哔哩哔哩科技有限公司 ADX-based advertisement landing page dynamic generation method, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765742A (en) * 2014-01-06 2015-07-08 阿里巴巴集团控股有限公司 Information display method and device
CN112784184A (en) * 2019-11-08 2021-05-11 上海哔哩哔哩科技有限公司 ADX-based advertisement landing page dynamic generation method, computer equipment and storage medium
CN112015408A (en) * 2020-07-08 2020-12-01 广州乐摇摇信息科技有限公司 Component rendering method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US8707164B2 (en) Integrated document viewer
US20190251143A1 (en) Web page rendering method and related device
CN100444158C (en) Web page rendering mechanism using external programmatic themes
WO2019200783A1 (en) Method for data crawling in page containing dynamic image or table, device, terminal, and storage medium
US9946793B2 (en) Method for providing electronic book and cloud server
US8977653B1 (en) Modifying web pages to reduce retrieval latency
CN102929912A (en) Method and system for generating microblog pictures
US20120046937A1 (en) Semantic classification of variable data campaign information
CN112016290A (en) Automatic document typesetting method, device, equipment and storage medium
CN112087667A (en) Information processing method and device and computer storage medium
CN113642290A (en) Text typesetting method and device, electronic equipment and storage medium
CN112835577A (en) Data processing method, data processing device, computer equipment and readable storage medium
WO2018208412A1 (en) Detection of caption elements in documents
CN110647327A (en) Method and device for dynamic control of user interface based on card
CN113254128A (en) Project page loading method and device, computer equipment and storage medium
CN101233494B (en) Plug-in module execution method, browser execution method, mailer execution method and terminal device
CN103034468B (en) A kind of method and device showing text
CN111444448B (en) Data processing method, server and system
CN114168875A (en) Page program generation method and device, computer equipment and storage medium
JP2019021255A (en) Digital publishing system, digital publishing method and computer program
US20160004783A1 (en) Automated generation of web site entry pages
CN111339465A (en) Picture processing method and device, computer equipment and storage medium
CN114860231A (en) Page rendering method, device, equipment and storage medium
CN111143719A (en) Online publication method, device and equipment of thesis and computer-readable storage medium
CN114489895B (en) Batch poster generation method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210813