WO2020024399A1 - 页面渲染方法、装置、计算机设备及存储介质 - Google Patents

页面渲染方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2020024399A1
WO2020024399A1 PCT/CN2018/106434 CN2018106434W WO2020024399A1 WO 2020024399 A1 WO2020024399 A1 WO 2020024399A1 CN 2018106434 W CN2018106434 W CN 2018106434W WO 2020024399 A1 WO2020024399 A1 WO 2020024399A1
Authority
WO
WIPO (PCT)
Prior art keywords
rendering
page
interface
public
code
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.)
Ceased
Application number
PCT/CN2018/106434
Other languages
English (en)
French (fr)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2020024399A1 publication Critical patent/WO2020024399A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Definitions

  • the present application relates to the field of computer fields, and in particular, to a page rendering method, device, computer device, and storage medium.
  • the embodiments of the present application provide a page rendering method, apparatus, computer equipment, and storage medium to solve the problem that the pages between pages are rendered fluently by using H5 to render the pages.
  • a page rendering method includes:
  • the page execution code includes at least one public rendering interface, and each of the public rendering interfaces corresponds to a public rendering code;
  • the public rendering code encapsulates a native low-level interface, calling the native low-level interface to perform page rendering through the public rendering interface to obtain a target rendered page;
  • the public rendering interface calls the public rendering code to perform page rendering to obtain a target rendered page.
  • a page rendering device includes:
  • a request obtaining module configured to obtain a page access request, where the page access request includes a url address
  • a code obtaining module configured to obtain a page execution code corresponding to the url address according to the url address, where the page execution code includes at least one public rendering interface, and each of the public rendering interfaces corresponds to a public rendering code;
  • a low-level interface rendering module configured to: if the public rendering code encapsulates a native low-level interface, call the native low-level interface for page rendering through the public rendering interface to obtain a target rendered page;
  • a code rendering module is configured to: if the public rendering code does not encapsulate a native underlying interface, the public rendering interface calls the public rendering code to perform page rendering to obtain a target rendering page.
  • a computer device includes a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor.
  • the processor executes the computer-readable instructions, the following steps are implemented:
  • the page execution code includes at least one public rendering interface, and each of the public rendering interfaces corresponds to a public rendering code;
  • the public rendering code encapsulates a native low-level interface, calling the native low-level interface to perform page rendering through the public rendering interface to obtain a target rendered page;
  • the public rendering interface calls the public rendering code to perform page rendering to obtain a target rendered page.
  • One or more non-volatile readable storage media storing computer readable instructions, the computer readable storage medium storing computer readable instructions, so that the one or more processors perform the following steps, the computer readable When the instruction is executed by the processor, the following steps are implemented:
  • the page execution code includes at least one public rendering interface, and each of the public rendering interfaces corresponds to a public rendering code;
  • the public rendering code encapsulates a native low-level interface, calling the native low-level interface to perform page rendering through the public rendering interface to obtain a target rendered page;
  • the public rendering interface calls the public rendering code to perform page rendering to obtain a target rendered page.
  • FIG. 1 is a schematic diagram of an application environment of a page rendering method according to an embodiment of the present application
  • FIG. 2 is a flowchart of a page rendering method according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a page rendering method according to an embodiment of the present application.
  • FIG. 4 is a flowchart of a page rendering method according to an embodiment of the present application.
  • FIG. 5 is a flowchart of a page rendering method according to an embodiment of the present application.
  • FIG. 6 is a flowchart of a page rendering method according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a page rendering device according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a computer device in an embodiment of the present application.
  • the page rendering method provided in this embodiment may be applied to the application environment shown in FIG. 1, where a user terminal communicates with a server through a network.
  • the user terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the server can be implemented by an independent server or a server cluster composed of multiple servers.
  • a page rendering method is provided.
  • the method is applied to the server in FIG. 1 as an example for description, and specifically includes the following steps:
  • S10 Obtain a page access request, and the page access request includes a url address.
  • the page access request refers to a request for a page sent by a client to a server.
  • the APP provides a visual page
  • the client can send a request to the server to access a page corresponding to a certain page by performing related operations (such as clicking or swiping) on the visual page. So that the server can obtain the page access request.
  • the APP installed on the user side is a hybrid H5 type APP
  • the hybrid H5 type APP can render the page through the native underlying interface and H5.
  • the hybrid H5 APP introduces the front-end framework mui based on JS development as a development framework, encapsulates the front-end tools into a developed JavaScript method, and provides a technical basis for rendering the page by calling the native underlying interface and H5.
  • the user terminal communicates with the server through the network.
  • the server receives the page access request triggered and sent by the client based on the hybrid H5 APP, the server obtains the URL address in the page access request. Understandably, the server can resolve the IP address in the url address through the domain name resolver in order to respond to the page access request.
  • H5 short for HTML5 is a multi-form display page that integrates text, pictures, music, videos, and links. It has rich controls, flexible animation effects, powerful interactive applications and data analysis, and high-speed and low-cost implementation. The advantages of information dissemination are very suitable for display and sharing through the client.
  • JavaScript (referred to as JS) is a literal translation scripting language, which is a dynamically typed, weakly typed, and prototype-based language with built-in support types. Its interpreter is called a JavaScript engine. It is part of the browser and is widely used in user-side scripting languages. It was first used on HTML (an application under the standard universal markup language) web pages to add dynamic functions to HTML pages. .
  • the url address is an abbreviation of (Uniform Resource Locator, Uniform Resource Locator), it is the WWW uniform resource locator mark, which refers to the network address.
  • the page execution code refers to a web page source code corresponding to a url address, and in this embodiment, may be a JavaScript code.
  • the server obtains the page access request sent by the user terminal, it obtains the url address in the page access request, and obtains the page execution code corresponding to the url address according to the url address, so that the page rendering is performed by the page execution code subsequently. Understandably, after obtaining the page execution code corresponding to the url address, the server can perform page rendering based on the page execution code to obtain the target rendered page.
  • the page execution code obtained in step S20 includes at least one common rendering interface, and each common rendering interface corresponds to a common rendering code.
  • the public rendering interface refers to an interface that performs public processing on the page.
  • the public rendering interface includes a native low-level interface, and may also include public rendering code.
  • the public rendering interface executes the native low-level interface or public rendering code for page rendering.
  • the public rendering code refers to the code for public rendering of the page.
  • the common rendering code is some predefined rendering functions.
  • the public rendering code provides users with the ability to access a set of routines based on a certain software or hardware without accessing the source code or Understand the details of the internal working mechanism.
  • the server obtains a url address, and obtains a corresponding page execution code according to the url address, that is, JavaScript code.
  • the JavaScript code includes at least one public rendering interface.
  • the public rendering interface encapsulates the public rendering code.
  • the page is rendered through the public rendering code in the public rendering interface, where each public rendering interface corresponds to a functional module.
  • the function module refers to a module that renders different functions on the page, for example, the page includes function modules such as top navigation and swipe left and right.
  • Each page includes at least one functional module, and each functional module corresponds to a common rendering interface. If a functional module is a top navigation, its corresponding public rendering interface is a public rendering interface that implements the top navigation.
  • the native low-level interface refers to an interface that indirectly calls the underlying driver function by calling related interfaces through public rendering code.
  • the native low-level interface has a function of accessing a predefined rendering function of the operating system.
  • the server renders the page through the page execution code.
  • the page execution code includes at least one public rendering interface.
  • the native underlying interface is encapsulated in the public rendering code in the public rendering interface, the native underlying interface is called through the public rendering interface for page rendering. That is, the rendering function corresponding to the native underlying interface is called by the public rendering code to perform page rendering to obtain the target rendered page.
  • a public rendering interface encapsulates a native underlying interface that can render the title and arrows of a page.
  • the server can call the native underlying interface to render the page through this public rendering interface to render the title and arrows of the page. Get the target rendered page.
  • the server performs page rendering through the native underlying interface, without having to pay attention to and deal with complex network protocol content, and immediately displays the target rendered page rendered by the native underlying interface to improve performance and solve the problem of blank pages. Or when the network is not good, the rendering speed is fast, which improves the smoothness of page jumps.
  • the server renders the page through the page execution code.
  • the page execution code includes at least one public rendering interface. If the public rendering interface only encapsulates the public rendering code but does not encapsulate the native underlying interface, the public rendering code is called through the public rendering interface. Perform page rendering to get the target rendered page. Calling the public rendering code for page rendering through the public rendering interface can complete complex icon processing and rendering to achieve public processing of the page and reduce rendering time.
  • a page access request is obtained, and the page access request includes a url address, and according to the url address, a page execution code corresponding to the url address is obtained, so as to perform page rendering according to the page execution code in the future.
  • the page execution code includes at least one public rendering interface, and each public rendering interface corresponds to a public rendering code.
  • the public rendering code can implement page rendering of the functional module corresponding to the public rendering interface, so that the target rendered based on the page execution code is rendered. The rendering effect of multiple function modules is presented on the rendering page.
  • the native rendering interface When the public rendering code encapsulates the native underlying interface, the native rendering interface is called through the public rendering interface for page rendering, the target rendering page is obtained, the page rendering is performed through the native underlying interface, and the page rendered by the native underlying interface is immediately displayed to improve performance To solve the problem of blank pages. If the public rendering code does not encapsulate the native low-level interface, the public rendering interface calls the public rendering code for page rendering to obtain the target rendering page to achieve public processing of the page, improve performance, and reduce rendering time.
  • the page includes a main page and a content page
  • the page execution code includes the main page execution code and the content page execution code
  • the main page of the page is rendered by the main page execution code
  • the content of the page is executed by the content page execution code The page is rendered.
  • step S20 that is, obtaining the page execution code corresponding to the url address according to the url address, which specifically includes the following steps:
  • S21 Determine whether the URL address of the page access request corresponds to the same IP address as the URL address of the current page.
  • the url address of the current page refers to the url address of the page currently displayed in the APP.
  • the url address of the page access request refers to the url address of the page to be accessed by this page access request, that is, the url address of the next visited page of the current page.
  • An IP address Internet Protocol Address, referred to as an IP address for short
  • IP address is a method of addressing a host on the Internet, and is also called an Internet Protocol address.
  • the ip address is a unified address format provided by the ip protocol. It allocates a logical address to each network and each host on the Internet to shield the differences in physical addresses.
  • the server obtains a page access request sent by the client, the page access request includes a url address, extracts the url address corresponding to the page access request and the url address corresponding to the current page, and resolves the ip address in the url address through a domain name resolver.
  • the ip address corresponding to the page access request and the ip address corresponding to the current page are the same ip address; if the ip address corresponding to the page access request is the same as the ip address corresponding to the current page, then the same ip address; if it is the same as the page
  • the IP address corresponding to the access request is different from the IP address corresponding to the current page, so it does not correspond to the same IP address.
  • the server determines that the ip address corresponding to the page access request is the same as the ip address corresponding to the current page, it obtains the content page execution code corresponding to the url address according to the url address corresponding to the page access request, so as to subsequently pass the The content page execution code renders the content page. Because when the IP address corresponding to the page access request is the same as the IP address corresponding to the current page, the main page corresponding to the page access request does not need to be rendered and can directly display the main page of the current page. Get the content page execution code corresponding to the url address.
  • page rendering is performed based on the content page execution code, a content page rendered based on the content page execution code is obtained, and the content page is filled into the main page of the current page to form a target rendering page to save the home page.
  • the rendering time of the screen directly displays the main page, which improves the user experience and avoids the problem of blank pages.
  • the server determines that the IP address corresponding to the page access request is different from the IP address corresponding to the current page, it determines that the two do not correspond to the same IP address, that is, both the main page and the content page corresponding to the page access request need to be performed.
  • Page rendering so the server needs to obtain the main page execution code and content page execution code corresponding to the url address according to the url address corresponding to the page access request, in order to subsequently execute the main page execution code and content page execution code on the main page of the page And content pages for rendering.
  • steps S21-S23 it is determined whether the url address of the page access request and the url address of the current page correspond to the same IP address. If they correspond to the same IP address, the content page execution code corresponding to the url address is obtained according to the url address, without obtaining The main page executes the code to save the time of rendering the main page during the subsequent page rendering process and avoid the problem of blank pages; if it does not correspond to the same IP address, according to the url address, obtain the main page execution code corresponding to the url address and Content page execution code for subsequent page rendering based on the main page execution code and content page execution code, in order to render the page through the main page execution code and content page execution code, reducing rendering time and improving the smoothness of page jumps .
  • the server performs page rendering based on the page execution code to obtain a target rendered page.
  • the page execution code includes code to render the target rendered page, and performs page rendering through the page execution code to obtain the target rendered page. Because the page corresponding to the url address includes a main page and a content page, the page execution code includes a main page execution code that renders the main page and a content page execution code that renders the content page, so that the code and The content page execution code renders the main page and the content page separately to obtain the target rendered page.
  • the page rendering method further includes the following steps:
  • S2311 Perform page rendering on the main page execution code and the content page execution code according to the parallel processing method, and obtain the main page and the content page respectively.
  • the page rendering is performed by the main page execution code and the content page execution code through parallel processing, that is, the execution is performed through the main page.
  • the code performs page rendering to obtain the main page; and the content page executes the code to perform page rendering to obtain the content page.
  • the main page execution code and the content page execution code may include a native low-level interface and public rendering code, and Low-level interface or public rendering code for page rendering.
  • Execute code through the main page and content The page execution code includes the native low-level interface and public rendering code to facilitate subsequent page rendering through the native low-level interface and public rendering code, reducing rendering time.
  • S2312 Superimpose the main page and the content page according to the superimposition method to obtain a target rendered page.
  • the server obtains a main page and a content page, and superimposes the main page and the content page in an overlay manner to obtain a target rendered page.
  • a main page execution code and a content page execution code corresponding to the main page and the content page are preset, and the main page execution code mainly includes titles, arrows, top navigation, bottom tabs, and bottom page colors, etc.
  • the content page mainly sets the specific content of the page, that is, the content page execution code mainly sets the text content and image content of the page.
  • superimposing the main page and the content by using an overlay method specifically means that the content page is embedded in the main page and superimposed to obtain a target rendered page.
  • step S2311-S2312 page rendering is performed on the main page execution code and the content page execution code according to the parallel processing method, and the main page and the content page are obtained separately to achieve the simultaneous rendering of the main page and the content page of the same page, which can speed up The rendering efficiency of the target rendering page.
  • the server processes the main page and the content page by superimposing the main page and the content page, respectively, so as to render the main page and the content page separately, and does not need to complete all the rendering, that is, the target rendered page is displayed to prevent the page from appearing. blank.
  • the page rendering method further includes the following steps :
  • S2321 Determine whether a common rendering interface in the main page execution code corresponding to the url address exists in the page execution code of the current page.
  • the server obtains the public rendering interface in the main page execution code corresponding to the url address and the public rendering interface in the page execution code of the current page, and the public rendering interface in the main page execution code corresponding to the url address and the page of the current page Compare the public rendering interface in the execution code. If any public rendering interface in the main page execution code corresponding to the url address is the same as the public rendering interface in the page execution code of the current page, it is determined that there is a consistent public rendering interface. If all public rendering interfaces in the main page execution code corresponding to the url address are different from the public rendering interfaces in the page execution code of the current page, it is determined that there is no consistent public rendering interface.
  • the server determines that the public rendering interface in the main page execution code corresponding to the url address is the same as the public rendering interface in the page execution code of the current page, the public rendering interface is skipped and the functional modules corresponding to the public rendering interface are not Perform page rendering.
  • the current page includes the public rendering interface 1.
  • the public rendering interface in the main page execution code corresponding to the url address includes the public rendering interface 1, the page is skipped when executing the code for page rendering through the main page corresponding to the url address.
  • Rendering interface For another example, in the hybrid H5 APP, the top navigation and bottom color of the current page are rendered by the public rendering interface 1.
  • the public rendering interface in the main page execution code corresponding to the URL address includes the public rendering interface 1, the top is skipped. Navigation and color rendering at the bottom of the page, saving rendering time for related functional modules.
  • the server determines that the public rendering interface in the main page execution code corresponding to the url address is different from the public rendering interface in the page execution code of the current page, the page rendering is performed based on the public rendering interface to obtain the target rendered page.
  • steps S2321-S2323 it is determined whether the common rendering interface in the main page execution code corresponding to the url address exists in the page execution code of the current page; if there is a consistent public rendering interface, the public rendering is skipped Interface to save the time of rendering a consistent public rendering interface; if there is no consistent public rendering interface, page rendering is performed based on the public rendering interface to determine whether the public rendering interface in the main page execution code corresponding to the URL address There is a consistent public rendering interface in the page execution code of the current page. It is determined that the public rendering interface that needs to render the page is used to perform page rendering through the public rendering interface to obtain the target rendered page.
  • the public rendering interface calls the native low-level interface for page rendering, and before the step of obtaining a target rendered page, the page rendering method further includes the following steps: :
  • the page rendering configuration request includes at least one style rendering identifier and rendering order.
  • the server obtains a page rendering configuration request sent by the client, and the page rendering configuration request includes at least one rendering order between the style rendering identifier and the style rendering identifier.
  • the page rendering configuration request may be a page rendering configuration request for rendering a main page, or a page rendering configuration request for rendering a content page.
  • the style rendering logo refers to a logo that renders a style on a page.
  • the style rendering logo may be a logo corresponding to a style such as the background color, width, height, and position of the page.
  • the style rendering identifiers are background, top, left, right, bottom, and height.
  • the rendering order refers to the order of rendering between the styles corresponding to each style rendering identifier on the page. For example, the page length, width, and height are rendered first, and then the page title, progress bar, animation effects, and arrows are rendered. order.
  • S202 Query the rendering function library based on the style rendering identifier, and determine whether the rendering function library includes a rendering function corresponding to the style rendering identifier.
  • the rendering function includes at least one formal parameter.
  • the function rendering library refers to a database that stores rendering functions.
  • the function rendering library stores a large number of rendering functions.
  • Each rendering function corresponds to a style rendering identifier, so that a corresponding rendering function can be queried based on the style rendering identifier.
  • Each rendering function It includes at least one formal parameter. In a specific application, an actual parameter corresponding to the formal parameter may be passed to the rendering function to implement updating of the rendering function.
  • the server matches the style rendering identifier with the function rendering library. If the rendering function corresponding to the style rendering identifier is matched in the rendering function library, it is determined that the rendering function library contains a rendering function corresponding to the style rendering identifier.
  • the function library does not match the rendering function corresponding to the style rendering identifier, it is determined that the rendering function library does not include a rendering function corresponding to the style rendering identifier.
  • the style rendering identifier is background, and the function rendering library is searched by the style rendering identifier to determine whether the rendering function library contains a rendering function corresponding to the background.
  • the style rendering identifier is height, and it is determined whether the rendering function library contains a rendering function corresponding to height.
  • the rendering function library includes a rendering function corresponding to the style rendering identifier, obtain actual parameters corresponding to the formal parameters in the rendering function, and generate a native underlying interface corresponding to the style rendering identifier.
  • the server matches the rendering function corresponding to the style rendering identifier in the rendering function library, obtains the rendering function, assigns the actual parameters corresponding to the style rendering identifier to the formal parameters of the rendering function, and generates a native underlying layer corresponding to the style rendering identifier. interface.
  • the style rendering identifier is background
  • the function rendering library is found by the style rendering identifier.
  • the rendering function library contains a rendering function corresponding to background
  • the background color of the blank area of the page can be set by the rendering function, which will be the same as the background.
  • the corresponding actual parameters that is, background color
  • the background color of the blank area of the page can be rendered.
  • the style rendering identifier is height
  • the function rendering library is found by the style rendering identifier.
  • the page height can be set by the rendering function, and the corresponding height
  • the actual parameters (that is, the page height) are assigned to the formal parameters of the rendering function, and a native low-level interface is generated.
  • the native low-level interface is called, the height of the page can be rendered.
  • the server does not match the rendering function corresponding to the style rendering identifier in the rendering function library, obtains the public rendering code corresponding to the style rendering identifier sent by the client, and executes the public rendering code to perform page rendering. For example, if the style rendering identifier is titleview, and the rendering function titleview is not matched in the rendering function library, it is determined that the rendering function library does not include a rendering function corresponding to the style rendering identifier titleview, and the correspondence corresponding to the style rendering identifier titleview sent by the client is obtained Public rendering code.
  • the configured public rendering code corresponding to the style rendering identifier may be saved in the rendering function library, so that if the style rendering identifier in the page rendering configuration request corresponds to the public rendering code, the form corresponding to the public rendering code is obtained.
  • the actual parameters corresponding to the parameters generate a native underlying interface corresponding to the style rendering identifier to improve the utilization of the public rendering code.
  • the server encapsulates the native underlying interface and the public rendering code according to the rendering order, and obtains the public rendering interface, so that the page is subsequently rendered according to the rendering order by executing the public rendering interface.
  • a page rendering configuration request is obtained.
  • the page rendering configuration request includes at least one style rendering identifier and rendering order, so as to generate a native underlying interface or public rendering code according to the style rendering identifier, and according to the rendering order, the native underlying interface and the
  • the public rendering code is encapsulated to quickly obtain the public rendering interface for subsequent page rendering based on the public rendering interface.
  • Query the rendering function library based on the style rendering identifier to determine whether the rendering function library contains a rendering function corresponding to the style rendering identifier.
  • the rendering function includes at least one formal parameter, so that the subsequent rendering function corresponding to the style rendering identifier is found, and will be rendered with the style Identifies the corresponding actual parameters assigned to the formal parameters of the rendering function to achieve the assignment of the rendering function. If the rendering function library contains a rendering function corresponding to the style rendering identifier, the actual parameters corresponding to the formal parameters in the rendering function are obtained, and a native low-level interface corresponding to the style rendering identifier is generated, so as to subsequently call the native low-level interface for page rendering To increase rendering speed.
  • the rendering function library does not contain a rendering function corresponding to the style rendering identifier
  • the user-configured public rendering code corresponding to the style rendering identifier is obtained, so that subsequent rendering of the public rendering code for page rendering is performed to achieve public processing of the page, reducing Rendering time.
  • the native low-level interface and the public rendering code are encapsulated to obtain the public rendering interface, so that the public rendering interface can be called later to render the page according to the rendering order.
  • calling the native underlying interface through the public rendering interface for page rendering to obtain the target rendered page includes the following steps: If the public rendering code encapsulates a native underlying interface, then The parsing engine parses the native underlying interface to obtain a rendering function corresponding to the native underlying interface; performs page rendering according to the rendering function, and obtains the target rendered page.
  • the parsing engine can be used to provide an extensible running environment for JavaScript code.
  • the parsing engine is extensible and can provide various flexible extension function interfaces.
  • the parsing engine can be used to parse the native rendering interface in JavaScript code.
  • the analysis engine may specifically include: OPENGLES2.0, Nitro, V8, and SpiderMonkey, etc. In this embodiment, the specific analysis engine is not limited.
  • the server obtains the public rendering code.
  • the native underlying interface is encapsulated in the common rendering code
  • the native underlying interface is parsed by the parsing engine to obtain the rendering function corresponding to the native underlying interface, and the page is rendered according to the rendering function to obtain the target. Render the page.
  • a page rendering device is provided, and the page rendering device corresponds to the page rendering method in the above embodiment in a one-to-one correspondence.
  • the page rendering device includes a request obtaining module 10, a code obtaining module 20, a low-level interface rendering module 30, and a code rendering module 40.
  • the detailed description of each function module is as follows:
  • the request obtaining module 10 is configured to obtain a page access request, where the page access request includes a url address.
  • the code obtaining module 20 is configured to obtain a page execution code corresponding to the URL address according to the URL address.
  • the page execution code includes at least one public rendering interface, and each public rendering interface corresponds to a public rendering code.
  • the low-level interface rendering module 30 is configured to call the native low-level interface to perform page rendering through the public rendering interface to obtain a target rendered page if the public rendering code encapsulates the native low-level interface.
  • the code rendering module 40 is configured to, if the public rendering code does not encapsulate a native underlying interface, the public rendering interface calls the public rendering code to perform page rendering to obtain a target rendered page.
  • the page execution code includes a main page execution code and a content page execution code.
  • the code acquisition module 20 includes an address judgment unit 21, a first code acquisition unit 22, and a second code acquisition unit 23.
  • the address judging unit 21 is configured to judge whether the url address of the page access request corresponds to the same ip address as the url address of the current page.
  • the first code obtaining unit 22 is configured to obtain a content page execution code corresponding to the url address according to the url address if the same IP address is corresponding.
  • the second code obtaining unit 23 is configured to obtain the main page execution code and the content page execution code corresponding to the url address according to the url address if they do not correspond to the same IP address.
  • the page rendering device further includes a main page and content page rendering unit 2311 and a second page rendering unit 2312.
  • the main page and content page rendering unit 2311 is configured to perform page rendering on the main page execution code and the content page execution code according to the parallel processing mode, and respectively obtain the main page and the content page.
  • a second page rendering unit 2312 is configured to superimpose the main page and the content page according to the superimposing method to obtain a target rendered page.
  • the page rendering device further includes a common rendering interface determination unit 2321, a jump unit 2322, and a third page rendering unit 2323.
  • the common rendering interface determination unit 2321 is configured to determine whether a common rendering interface in the main page execution code corresponding to the url address exists in the page execution code of the current page.
  • a jump unit 2322 configured to skip a common rendering interface if a consistent common rendering interface exists
  • the third page rendering unit 2323 is configured to perform page rendering based on the public rendering interface to obtain a target rendered page if there is no consistent public rendering interface.
  • the page rendering device before the underlying interface rendering unit 21, the page rendering device further includes a request obtaining unit 201, a rendering function judgment unit 202, a native underlying interface generating unit 203, a public rendering code obtaining unit 204, and a public rendering interface obtaining unit 205. .
  • the request obtaining unit 201 is configured to obtain a page rendering configuration request, where the page rendering configuration request includes at least one style rendering identifier and a rendering order.
  • the rendering function determining unit 202 is configured to query a rendering function library based on the style rendering identifier, and determine whether the rendering function library includes a rendering function corresponding to the style rendering identifier.
  • the rendering function includes at least one formal parameter.
  • the native low-level interface generating unit 203 is configured to obtain actual parameters corresponding to the formal parameters in the rendering function if the rendering function library includes a rendering function corresponding to the style rendering identifier, and generate a native low-level interface corresponding to the style rendering identifier.
  • the public rendering code obtaining unit 204 is configured to obtain a public rendering code corresponding to a style rendering identifier configured by a user if the rendering function library does not include a rendering function corresponding to the style rendering identifier.
  • the public rendering interface obtaining unit 205 is configured to encapsulate a native underlying interface and a public rendering code according to a rendering order, and obtain a public rendering interface.
  • the low-level interface rendering unit 21 includes an interface parsing unit 211 and a first page rendering unit 212.
  • the interface parsing unit 211 is configured to use a parsing engine to parse the native underlying interface to obtain a rendering function corresponding to the native underlying interface if the public rendering code encapsulates the native underlying interface.
  • the first page rendering unit 212 is configured to perform page rendering according to a rendering function to obtain a target rendered page.
  • Each module in the above page rendering device may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the hardware form or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor calls and performs the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 8.
  • the computer device includes a processor, a memory, a network interface, and a database connected through a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer-readable instructions, and a database.
  • the internal memory provides an environment for operating the operating system and computer-readable instructions in a non-volatile storage medium.
  • the database of the computer equipment is used to store execution code and the like.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable instructions are executed by a processor to implement a page rendering method.
  • a computer device including a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor.
  • the processor executes the computer-readable instructions, the following steps are implemented: acquiring a page An access request.
  • the page access request includes a URL address.
  • the page execution code corresponding to the URL address is obtained.
  • the page execution code includes at least one public rendering interface, and each public rendering interface corresponds to a public rendering code. If there is a native low-level interface, the public rendering interface calls the native low-level interface for page rendering to obtain the target rendering page. If the public rendering code does not encapsulate the native low-level interface, the public rendering interface calls the public rendering code for page rendering to obtain the target rendered page. .
  • the page execution code includes a main page execution code and a content page execution code; obtaining the page execution code corresponding to the url address according to the url address includes: determining whether the url address of the page access request and the url address of the current page are Corresponds to the same IP address; if it corresponds to the same IP address, the content page execution code corresponding to the URL address is obtained according to the url address; if it does not correspond to the same IP address, the main page execution code and Content page executes code.
  • the home page is separately processed according to the parallel processing
  • the page execution code and the content page execution code perform page rendering to obtain the main page and the content page, respectively; and superimpose the main page and the content page according to the superimposition method to obtain the target rendered page.
  • the following steps are further implemented: determining the main page corresponding to the url address Whether the public rendering interface in the execution code has a consistent public rendering interface in the page execution code of the current page; if there is a consistent public rendering interface, the public rendering interface is skipped; if there is no consistent public rendering interface, it is based on the public The rendering interface performs page rendering to obtain the target rendered page.
  • the processor implements the following steps when the computer executes computer-readable instructions: Page rendering configuration request.
  • the page rendering configuration request includes at least one style rendering identifier and rendering order.
  • query the rendering function library to determine whether the rendering function library contains a rendering function corresponding to the style rendering identifier.
  • the rendering function includes at least one form.
  • the rendering function library contains a rendering function corresponding to the style rendering identifier, obtain the actual parameters corresponding to the formal parameters in the rendering function to generate a native underlying interface corresponding to the style rendering identifier; if the rendering function library does not contain The rendering function corresponding to the style rendering identifier obtains the public rendering code corresponding to the style rendering identifier configured by the user; according to the rendering order, the native underlying interface and the public rendering code are encapsulated to obtain the public rendering interface.
  • calling the native underlying interface through the public rendering interface for page rendering to obtain the target rendering page includes: if the public rendering code encapsulates a native underlying interface, using a parsing engine to The native underlying interface is parsed to obtain the rendering function corresponding to the native underlying interface; the page rendering is performed according to the rendering function to obtain the target rendered page.
  • one or more non-volatile readable storage media storing computer readable instructions are provided.
  • the computer readable storage medium stores computer readable instructions, and the computer readable instructions are processed by one or more processors. When executed, one or more processors are executed to perform the following steps: obtaining a page access request, the page access request includes a url address; and obtaining a page execution code corresponding to the url address according to the url address, and the page execution code includes at least one public rendering interface, Each public rendering interface corresponds to a common rendering code; if the public rendering code encapsulates a native underlying interface, the native rendering interface is called through the public rendering interface for page rendering to obtain the target rendering page; if the public rendering code does not encapsulate the native underlying interface, Then the public rendering interface calls the public rendering code for page rendering to obtain the target rendered page.
  • the page execution code includes a main page execution code and a content page execution code; obtaining the page execution code corresponding to the url address according to the url address includes: determining whether the url address of the page access request and the url address of the current page are Corresponds to the same IP address; if it corresponds to the same IP address, the content page execution code corresponding to the URL address is obtained according to the url address; if it does not correspond to the same IP address, the main page execution code and Content page executes code.
  • the processor when the computer-readable instructions are executed by one or more processors, one or more processing is performed.
  • the processor also performs the following steps: page rendering the main page execution code and the content page execution code according to the parallel processing mode to obtain the main page and the content page respectively; superimposing the main page and the content page according to the superposition method to obtain the target rendered page.
  • the processor when the computer-readable instructions are executed by one or more processors, one or more processing is performed.
  • the processor also performs the following steps: determine whether the common rendering interface in the main page execution code corresponding to the url address exists in the page execution code of the current page; if there is a consistent public rendering interface, skip the public rendering interface ; If there is no consistent public rendering interface, page rendering is performed based on the public rendering interface to obtain the target rendered page.
  • the native rendering interface is called through the public rendering interface to perform page rendering.
  • the computer-readable instructions are executed by one or more processors. To enable one or more processors to perform the following steps: obtain a page rendering configuration request, and the page rendering configuration request includes at least one style rendering identifier and rendering order; query the rendering function library based on the style rendering identifier, and determine whether the rendering function library contains a style The rendering function corresponding to the rendering identifier, the rendering function includes at least one formal parameter; if the rendering function library includes a rendering function corresponding to the style rendering identifier, obtaining actual parameters corresponding to the formal parameters in the rendering function, and generating a style rendering identifier Corresponding native low-level interface; if the rendering function library does not contain a rendering function corresponding to the style rendering identifier, obtain the user-configured public rendering code corresponding to the style rendering identifier; according to the rendering order, perform
  • calling the native underlying interface through the public rendering interface for page rendering to obtain the target rendering page includes: if the public rendering code encapsulates a native underlying interface, using a parsing engine to The native underlying interface is parsed to obtain the rendering function corresponding to the native underlying interface; the page rendering is performed according to the rendering function to obtain the target rendered page.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM dual data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Synchlink DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

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

一种页面渲染方法、装置、计算机设备及存储介质,该方法包括:获取页面访问请求,页面访问请求包括url地址(S10);根据url地址,获取与url地址对应的页面执行代码(S20),页面执行代码包括至少一个公共渲染接口,每一公共渲染接口对应一公共渲染代码;若公共渲染代码封装有原生底层接口,则通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面(S30);若公共渲染代码未封装有原生底层接口,则公共渲染接口调用公共渲染代码进行页面渲染,获取目标渲染页面(S40)。解决页面之间的跳转不流畅,页面出现空白的问题。

Description

页面渲染方法、装置、计算机设备及存储介质
本申请以2018年8月2日提交的申请号为201810870260.2,名称为“页面渲染方法、装置、计算机设备及存储介质”的中国发明申请为基础,并要求其优先权。
技术领域
本申请涉及计算机领域领域,尤其涉及一种页面渲染方法、装置、计算机设备及存储介质。
背景技术
目前市面上的H5型APP中,大多是采用H5对页面进行渲染,但是通过H5进行页面渲染,会比较消耗性能,从而导致页面之间的跳转不流畅,使得页面出现空白的问题。
发明内容
本申请实施例提供一种页面渲染方法、装置、计算机设备及存储介质,以解决采用H5对页面进行渲染而导致页面之间的跳转不流畅的问题。
一种页面渲染方法,包括:
获取页面访问请求,所述页面访问请求包括url地址;
根据所述url地址,获取与所述url地址对应的页面执行代码,所述页面执行代码包括至少一个公共渲染接口,每一所述公共渲染接口对应一公共渲染代码;
若所述公共渲染代码封装有原生底层接口,则通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面;
若所述公共渲染代码未封装有原生底层接口,则所述公共渲染接口调用所述公共渲染代码进行页面渲染,获取目标渲染页面。
一种页面渲染装置,包括:
请求获取模块,用于获取页面访问请求,所述页面访问请求包括url地址;
代码获取模块,用于根据所述url地址,获取与所述url地址对应的页面执行代码,所述页面执行代码包括至少一个公共渲染接口,每一所述公共渲染接口对应一公共渲染代码;
底层接口渲染模块,用于若所述公共渲染代码封装有原生底层接口,则通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面;
代码渲染模块,用于若所述公共渲染代码未封装有原生底层接口,则所述公共渲染接口调用所述公共渲染代码进行页面渲染,获取目标渲染页面。
一种计算机设备,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时实现如下步骤:
获取页面访问请求,所述页面访问请求包括url地址;
根据所述url地址,获取与所述url地址对应的页面执行代码,所述页面执行代码包括 至少一个公共渲染接口,每一所述公共渲染接口对应一公共渲染代码;
若所述公共渲染代码封装有原生底层接口,则通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面;
若所述公共渲染代码未封装有原生底层接口,则所述公共渲染接口调用所述公共渲染代码进行页面渲染,获取目标渲染页面。
一个或多个存储有计算机可读指令的非易失性可读存储介质,计算机可读存储介质存储有计算机可读指令,使得所述一个或多个处理器执行如下步骤,所述计算机可读指令被处理器执行时实现如下步骤:
获取页面访问请求,所述页面访问请求包括url地址;
根据所述url地址,获取与所述url地址对应的页面执行代码,所述页面执行代码包括至少一个公共渲染接口,每一所述公共渲染接口对应一公共渲染代码;
若所述公共渲染代码封装有原生底层接口,则通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面;
若所述公共渲染代码未封装有原生底层接口,则所述公共渲染接口调用所述公共渲染代码进行页面渲染,获取目标渲染页面。
本申请的一个或多个实施例的细节在下面的附图及描述中提出。本申请的其他特征和优点将从说明书、附图以及权利要求书变得明显。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请一实施例中页面渲染方法的一应用环境示意图;
图2是本申请一实施例中页面渲染方法的一流程图;
图3是本申请一实施例中页面渲染方法的一流程图;
图4是本申请一实施例中页面渲染方法的一流程图;
图5是本申请一实施例中页面渲染方法的一流程图;
图6是本申请一实施例中页面渲染方法的一流程图;
图7是本申请一实施例中页面渲染装置的一示意图;
图8是本申请一实施例中计算机设备的一示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本实施例中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本实施例中提供的页面渲染方法,可应用在如图1的应用环境中,其中,用户端通过网络与服务器进行通信。其中,用户端可以但不限于各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备。服务器可以用独立的服务器或者是多个服务器组成的服务器集群来实现。
在一实施例中,如图2所示,提供一种页面渲染方法,以该方法应用在图1中的服务器为例进行说明,具体包括如下步骤:
S10:获取页面访问请求,页面访问请求包括url地址。
其中,页面访问请求是指用户端向服务器发送的访问页面的请求。例如,访问APP中某一页面时,APP提供一可视化页面,用户端可通过在该可视化页面进行相关操作(如点击或滑动等)向服务器发送需要进入与某一页面相对应的页面访问请求,以使服务器可获取到该页面访问请求。
具体地,用户端安装的APP为混合H5型APP,混合H5型APP中可通过原生底层接口和H5对页面进行渲染。具体地,混合H5型APP中引入基于JS开发的前端框架mui作为开发框架,将前端工具封装成开发的JavaScript方法,为通过调用原生底层接口和H5对页面进行渲染提供技术基础。用户端通过网络与服务器进行通信连接,当服务器接收用户端基于混合H5型APP触发并发送的页面访问请求时,获取页面访问请求中url地址。可以理解地,服务器可通过域名解析器解析出url地址中的ip地址,以便对该页面访问请求进行响应。
其中,H5(HTML5的简称)是集文字、图片、音乐、视频和链接等多种形式的展示页面,具有丰富的控件、灵活的动画特效、强大的交互应用和数据分析以及高速低价的实现信息传播等优点,非常适合通过用户端的展示和分享。
其中,JavaScript(简称JS)是一种直译式脚本语言,是一种动态类型、弱类型和基于原型的语言,内置支持类型。它的解释器被称为JavaScript引擎,为浏览器的一部分,广泛用于用户端的脚本语言,最早是在HTML(标准通用标记语言下的一个应用)网页上使用,用来给HTML网页增加动态功能。
其中,url地址是(Uniform Resource Locator,统一资源定位符)的缩写,它是WWW的统一资源定位标志,即指网络地址。
S20:根据url地址,获取与url地址对应的页面执行代码。
其中,页面执行代码是指与url地址对应的网页源代码,本实施例中,可以是JavaScript代码。当服务器获取到用户端发送的页面访问请求时,获取页面访问请求中的url地址,根据url地址获取与url地址对应的页面执行代码,以便后续通过页面执行代码进行页面渲染。可以理解地,服务器在获取url地址对应的页面执行代码之后,可基于该页面执行代码进行页面渲染,获取目标渲染页面。
进一步地,步骤S20中获取到的页面执行代码包括至少一个公共渲染接口,每一公共渲染接口对应一公共渲染代码。
其中,公共渲染接口是指对页面进行公共处理的接口,公共渲染接口中包括原生底层接口,还可以包括公共渲染代码,通过公共渲染接口执行原生底层接口或公共渲染代码进行页面渲染。公共渲染代码是指对页面进行公共渲染的代码,公共渲染代码是一些预先定义的渲染函数,公共渲染代码为用户提供基于某软件或硬件得以访问一组例程的能力,而又无需访问源码或理解内部工作机制的细节。
具体地,服务器获取url地址,根据url地址获取对应的页面执行代码,即JavaScript代码,JavaScript代码中包括至少一个公共渲染接口,公共渲染接口中对公共渲染代码进行封装,当执行到公共渲染接口时,则通过公共渲染接口中公共渲染代码对页面进行渲染,其中,每一公共渲染接口对应一功能模块。其中,功能模块是指对页面中不同功能进行渲染的模块,如页面中包含顶部导航和左右滑动等功能模块。每一页面中包括至少一个功能模块,每一功能模块对应一公共渲染接口,如一功能模块为顶部导航,则其对应的公共渲染接口为实现该顶部导航的公共渲染接口。
S30:若公共渲染代码封装有原生底层接口,则通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面。
其中,原生底层接口是指通过公共渲染代码来调用相关的接口从而间接调用底层驱动功能的接口。原生底层接口具有访问操作系统的预先定义的渲染函数的功能。
服务器通过页面执行代码对页面进行渲染,该页面执行代码包括至少一个公共渲染接口,当公共渲染接口中的公共渲染代码中封装有原生底层接口时,则通过公共渲染接口调用原生底层接口进行页面渲染,即通过公共渲染代码调用与原生底层接口相对应的渲染函数进行页面渲染,获取目标渲染页面。例如,一公共渲染接口中封装有可实现对页面的标题和箭头进行渲染的原生底层接口,服务器可通过该公共渲染接口调用原生底层接口进行页面渲染,以实现对页面的标题和箭头进行渲染,获取目标渲染页面。本实施例中,服务器通过原生底层接口进行页面渲染,无需关注和处理复杂的网络协议内容,立即对原生底层接口渲染的目标渲染页面进行展示,提高性能,解决页面出现空白的问题,在无网络或网络不好的情况下,渲染速度快,提高页面跳转的流畅性。
S40:若公共渲染代码未封装有原生底层接口,则公共渲染接口调用公共渲染代码进行页面渲染,获取目标渲染页面。
服务器通过页面执行代码对页面进行渲染,该页面执行代码包括至少一个公共渲染接口,若公共渲染接口中只封装有公共渲染代码而未封装有原生底层接口时,则通过公共渲染接口调用公共渲染代码进行页面渲染,获取目标渲染页面。通过公共渲染接口调用公共渲染代码进行页面渲染,可完成复杂的图标处理和渲染,以实现对页面进行公共处理,减少渲染时间。
步骤S10-S40中,通过获取页面访问请求,页面访问请求包括url地址,根据url地址,获取与url地址对应的页面执行代码,以便后续根据页面执行代码进行页面渲染。页面执行代码包括至少一个公共渲染接口,每一公共渲染接口对应一公共渲染代码,该公共渲染代码可实现对该公共渲染接口对应的功能模块的页面渲染,以使基于页面执行代码渲染出的目标渲染页面上呈现多个功能模块的渲染效果。当公共渲染代码封装有原生底层接口,则通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面,通过原生底层 接口进行页面渲染,并立即对原生底层接口渲染的页面进行展示,提高性能,解决页面出现空白的问题。若公共渲染代码未封装有原生底层接口,则公共渲染接口调用公共渲染代码进行页面渲染,获取目标渲染页面,以实现对页面进行公共处理,提高性能,减少渲染时间。
在一实施例中,页面包括主页面和内容页面,页面执行代码包括主页面执行代码和内容页面执行代码,通过主页面执行代码对页面的主页面进行渲染,通过内容页面执行代码对页面的内容页面进行渲染。
如图3所示,在步骤S20中,即根据url地址,获取与url地址对应的页面执行代码,具体包括如下步骤:
S21:判断页面访问请求的url地址与当前页面的url地址是否对应同一ip地址。
其中,当前页面的url地址是指在APP中当前显示的页面的url地址。页面访问请求的url地址是指本次页面访问请求所要访问的页面的url地址,即当前页面的下一访问页面的url地址。ip地址(Internet Protocol Address,简称ip地址)是一种在Internet上的给主机编址的方式,也称为网际协议地址。ip地址是ip协议提供的一种统一的地址格式,它为互联网上的每一个网络和每一台主机分配一个逻辑地址,以此来屏蔽物理地址的差异。
具体地,服务器获取用户端发送的页面访问请求,页面访问请求中包括url地址,提取页面访问请求对应的url地址和当前页面对应的url地址,并通过域名解析器解析出url地址中的ip地址,判断与页面访问请求对应的ip地址和当前页面对应的ip地址是否为同一ip地址;若与页面访问请求对应的ip地址和当前页面对应的ip地址相同,则对应同一ip地址;若与页面访问请求对应的ip地址和当前页面对应的ip地址不相同,则不对应同一ip地址。
S22:若对应同一ip地址,则根据url地址,获取与url地址对应的内容页面执行代码。
具体地,当服务器判断出与页面访问请求对应的ip地址与当前页面对应的ip地址相同时,根据与页面访问请求对应的url地址,获取与url地址对应的内容页面执行代码,以便后续通过该内容页面执行代码对内容页面进行渲染。由于当与页面访问请求对应的ip地址和当前页面对应的ip地址相同时,该页面访问请求对应的主页面不需进行页面渲染,可直接显示当前页面的主页面,因此只需根据url地址,获取与url地址对应的内容页面执行代码。
本实施例中,基于该内容页面执行代码进行页面渲染,获取基于内容页面执行代码渲染出的内容页面,并将该内容页面填充至当前页面的主页面中,形成目标渲染页面,以节省对主页面进行渲染的时间,直接显示主页面,提高用户体验,避免页面出现空白的问题。
S23:若不对应同一ip地址,则根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码。
具体地,当服务器判断出与页面访问请求对应的ip地址和当前页面对应的ip地址不相同时,认定两者不对应同一ip地址,即该页面访问请求对应的主页面和内容页面都需进行页面渲染,因此,服务器需根据与页面访问请求对应的url地址,获取与url地址对应的主页面执行代码和内容页面执行代码,以便后续通过主页面执行代码和内容页面执行代码对页面的主页面和内容页面进行渲染。
步骤S21-S23中,通过判断页面访问请求的url地址与当前页面的url地址是否对应同一ip地址,若对应同一ip地址,则根据url地址,获取与url地址对应的内容页面执行代码,无需获取主页面执行代码,以便后续页面渲染过程中节省对主页面进行渲染的时间,避免页面出现空白的问题;若不对应同一ip地址,则根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码,以便后续基于该主页面执行代码和内容页面执行代码进行页面渲染,以实现通过主页面执行代码和内容页面执行代码对页面进行渲染,减少渲染时间,提高页面跳转的流畅性。
在一实施例中,服务器基于页面执行代码进行页面渲染,获取目标渲染页面,页面执行代码中包括对目标渲染页面进行渲染的代码,通过页面执行代码进行页面渲染,获取目标渲染页面。由于url地址对应的页面包括主页面和内容页面,则该页面执行代码包括对主页面进行渲染的主页面执行代码和对内容页面进行渲染的内容页面执行代码,以便后续基于该主页面执行代码和内容页面执行代码分别对主页面和内容页面进行渲染,以获取目标渲染页面。
本实施例中,如图4所示,在步骤S23之后,即在根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码的步骤之后,页面渲染方法还包括如下步骤:
S2311:根据并行处理方式分别对主页面执行代码和内容页面执行代码进行页面渲染,分别获取主页面和内容页面。
具体他,当服务器根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码后,通过并行处理方式分别通过主页面执行代码和内容页面执行代码进行页面渲染,即通过主页面执行代码进行页面渲染,以获取主页面;并通过内容页面执行代码进行页面渲染,以获取内容页面。通过将主页面执行代码和内容页面执行代码分配到不同处理进程或线程中,并行对同一页面的不同执行代码进行页面渲染,以提高执行速度,减少渲染时间,提高用户体验。
进一步地,当服务器根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码,其中,主页面执行代码和内容页面执行代码中可包括原生底层接口和公共渲染代码,并通过原生底层接口或公共渲染代码进行页面渲染。通过主页面执行代码和内容页面执行代码中包括原生底层接口和公共渲染代码,以便后续通过原生底层接口和公共渲染代码进行页面渲染,减少渲染时间。
S2312:根据叠加方式对主页面和内容页面进行叠加,获取目标渲染页面。
具体地,服务器获取主页面和内容页面,通过叠加方式对主页面和内容页面进行叠加,获取目标渲染页面。其中,预先设定有与主页面和内容页面对应的的主页面执行代码和内容页面执行代码,其中,主页面执行代码中主要是对标题、箭头、顶部导航、底部选项卡和页面底部颜色等进行设定。内容页面中主要是对页面的具体内容进行设定,即内容页面执行代码中主要是对页面的文字内容和图片内容等进行设定。本实施例中,采用叠加方式对主页面和内容进行叠加具体是指通过将内容页面嵌入至主页面进行叠加,以获取目标渲染页面。
步骤S2311-S2312中,根据并行处理方式分别对主页面执行代码和内容页面执行代码进行页面渲染,分别获取主页面和内容页面,以实现同时对同一页面的主页面和内容页面 进行渲染,可加快目标渲染页面的渲染效率。根据叠加方式对主页面和内容页面进行叠加,以快速获取目标渲染页面。服务器通过对主页面和内容页面进行叠加处理,分别对主页面和内容页面进行处理,以实现对主页面和内容页面分别渲染,不需全部渲染完成,即对目标渲染页面进行展示,避免页面出现空白。
在一实施例中,如图5所示,在步骤S23之后,即在根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码的步骤之后,页面渲染方法具体还包括如下步骤:
S2321:判断url地址对应的主页面执行代码中的公共渲染接口是否在当前页面的页面执行代码中存在一致的公共渲染接口。
具体地,服务器获取url地址对应的主页面执行代码中的公共渲染接口和当前页面的页面执行代码中的公共渲染接口,将url地址对应的主页面执行代码中的公共渲染接口与当前页面的页面执行代码中的公共渲染接口进行对比。若url地址对应的主页面执行代码中的任一公共渲染接口与当前页面的页面执行代码中的公共渲染接口相同,则判定存在一致的公共渲染接口。若url地址对应的主页面执行代码中的所有公共渲染接口与当前页面的页面执行代码中的公共渲染接口均不相同,则判定不存在一致的公共渲染接口。
S2322:若存在一致的公共渲染接口,则跳过公共渲染接口。
具体地,当服务器判断出url地址对应的主页面执行代码中的公共渲染接口与当前页面的页面执行代码中的公共渲染接口相同时,则跳过公共渲染接口,不对公共渲染接口对应的功能模块进行页面渲染。例如,当前页面中包括公共渲染接口1,若url地址对应的主页面执行代码中的公共渲染接口包括公共渲染接口1,则通过url地址对应的主页面执行代码进行页面渲染时,跳过该公共渲染接口。再例如,混合H5型APP中,当前页面的顶部导航和页面底部颜色由公共渲染接口1进行渲染,当url地址对应的主页面执行代码中的公共渲染接口包括公共渲染接口1,则跳过顶部导航和页面底部颜色的渲染,节省相关功能模块的渲染时间。
S2323:若不存在一致的公共渲染接口,则基于公共渲染接口进行页面渲染,获取目标渲染页面。
具体地,当服务器判断出url地址对应的主页面执行代码中的公共渲染接口与当前页面的页面执行代码中的公共渲染接口不相同时,则基于公共渲染接口进行页面渲染,获取目标渲染页面。
步骤S2321-S2323中,通过判断url地址对应的主页面执行代码中的公共渲染接口是否在当前页面的页面执行代码中存在一致的公共渲染接口;若存在一致的公共渲染接口,则跳过公共渲染接口,节省对一致的公共渲染接口进行渲染的时间;若不存在一致的公共渲染接口,则基于公共渲染接口进行页面渲染,以实现通过判断url地址对应的主页面执行代码中的公共渲染接口是否在当前页面的页面执行代码中存在一致的公共渲染接口,确定需要对页面进行渲染的公共渲染接口,通过公共渲染接口进行页面渲染,获取目标渲染页面。
在一实施例中,如图6所示,若公共渲染代码封装有原生底层接口,则通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面的步骤之前,页面渲染方法还包 括如下步骤:
S201:获取页面渲染配置请求,页面渲染配置请求包括至少一个样式渲染标识和渲染顺序。
具体地,服务器获取用户端发送的页面渲染配置请求,页面渲染配置请求中包括至少一个样式渲染标识和样式渲染标识之间的渲染顺序。其中,页面渲染配置请求可以是对主页面进行渲染的页面渲染配置请求,也可以是对内容页面进行渲染的页面渲染配置请求。其中,样式渲染标识是指对页面中样式进行渲染的标识。样式渲染标识可以是与页面的背景颜色、宽、高和位置等样式对应的标识。例如,样式渲染标识为background、top、left、right、bottom和height等。渲染顺序是指对页面中各样式渲染标识对应的样式之间进行渲染的顺序,例如,先对页面的长宽高进行渲染,再对页面的标题、进度条、动画效果和箭头等进行渲染的顺序。
S202:基于样式渲染标识查询渲染函数库,判断渲染函数库中是否包含与样式渲染标识对应的渲染函数,渲染函数包括至少一个形式参数。
其中,函数渲染库是指存储渲染函数的数据库,函数渲染库存储有大量的渲染函数,每一渲染函数对应一样式渲染标识,以便基于该样式渲染标识查询到对应的渲染函数,每一渲染函数中包含至少一个形式参数,在具体应用中,可将与形式参数对应的实际参数传递给该渲染函数,以实现该渲染函数的更新。服务器将样式渲染标识与函数渲染库进行匹配处理,若在渲染函数库中匹配到该样式渲染标识对应的渲染函数,则判定为渲染函数库中包含与样式渲染标识对应的渲染函数;若在渲染函数库中未匹配到该样式渲染标识对应的渲染函数,则判定为渲染函数库中不包含与样式渲染标识对应的渲染函数。例如,样式渲染标识为background,通过样式渲染标识查找函数渲染库,判断渲染函数库中是否包含与background相对应的渲染函数。再例如,样式渲染标识为height,判断渲染函数库中是否包含与height相对应的渲染函数。
S203:若渲染函数库中包含与样式渲染标识对应的渲染函数,则获取与渲染函数中的形式参数相对应的实际参数,生成与样式渲染标识对应的原生底层接口。
具体地,服务器在渲染函数库中匹配到与样式渲染标识对应的渲染函数,获取渲染函数,将样式渲染标识对应的实际参数赋值给渲染函数的形式参数,并生成与样式渲染标识对应的原生底层接口。例如,样式渲染标识为background,通过样式渲染标识查找函数渲染库,当渲染函数库中包含与background相对应的渲染函数,则可通过渲染函数对页面空白区域的背景色进行设定,将与background相对应的实际参数(即背景色)赋值给渲染函数的形式参数,并生成一个原生底层接口,当调用该原生底层接口时,可对页面的空白区域的背景色进行渲染。再例如,样式渲染标识为height,通过样式渲染标识查找函数渲染库,当渲染函数库中包含与height相对应的渲染函数,则可通过渲染函数对页面高度进行设定,将与height相对应的实际参数(即页面高度)赋值给渲染函数的形式参数,并生成一个原生底层接口,当调用该原生底层接口时,可对页面的高度进行渲染。
S204:若渲染函数库中不包含与样式渲染标识对应的渲染函数,则获取用户配置的与样式渲染标识对应的公共渲染代码。
具体地,服务器在渲染函数库中未匹配到与样式渲染标识对应的渲染函数,获取用户 端发送的与样式渲染标识对应的公共渲染代码,通过执行该公共渲染代码,可进行页面渲染。例如,样式渲染标识为titleview,在渲染函数库中未匹配到渲染标识titleview,则判定为渲染函数库中不包含与样式渲染标识titleview对应的渲染函数,获取用户端发送的与样式渲染标识titleview对应公共渲染代码。
进一步地,可将配置的与样式渲染标识对应的公共渲染代码保存至渲染函数库中,以便后续若页面渲染配置请求中样式渲染标识与公共渲染代码相对应,则获取与公共渲染代码中的形式参数相对应的实际参数,生成与样式渲染标识对应的原生底层接口,以提高对公共渲染代码的利用率。
S205:根据渲染顺序,对原生底层接口和公共渲染代码进行封装,获取公共渲染接口。
具体地,服务器根据渲染顺序对原生底层接口和公共渲染代码进行封装,获取公共渲染接口,以便后续通过执行公共渲染接口,根据渲染顺序对页面进行渲染。
步骤S201-S205中,获取页面渲染配置请求,页面渲染配置请求包括至少一个样式渲染标识和渲染顺序,以便后续根据样式渲染标识生成原生底层接口或公共渲染代码,并根据渲染顺序对原生底层接口和公共渲染代码进行封装,以快速获取公共渲染接口,以便后续基于公共渲染接口进行页面渲染。基于样式渲染标识查询渲染函数库,判断渲染函数库中是否包含与样式渲染标识对应的渲染函数,渲染函数包括至少一个形式参数,以便后续查找到与样式渲染标识对应的渲染函数,将与样式渲染标识对应的实际参数赋值给渲染函数的形式参数,以实现对渲染函数的赋值。若渲染函数库中包含与样式渲染标识对应的渲染函数,则获取与渲染函数中的形式参数相对应的实际参数,生成与样式渲染标识对应的原生底层接口,以便后续调用原生底层接口进行页面渲染,以提高渲染速度。若渲染函数库中不包含与样式渲染标识对应的渲染函数,则获取用户配置的与样式渲染标识对应的公共渲染代码,以便后续调用公共渲染代码进行页面渲染,以实现对页面进行公共处理,减少渲染时间。根据渲染顺序,对原生底层接口和公共渲染代码进行封装,获取公共渲染接口,以便后续调用公共渲染接口,根据渲染顺序对页面进行渲染。
在一实施例中,若公共渲染代码封装有原生底层接口,通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面,具体包括如下步骤:若公共渲染代码封装有原生底层接口,则采用解析引擎对原生底层接口进行解析,获取与原生底层接口对应的渲染函数;根据渲染函数进行页面渲染,获取目标渲染页面。
其中,解析引擎可用于为JavaScript代码提供可扩展的运行环境,解析引擎具有扩展性,其可以提供各种灵活的扩展函数接口。具体而言,解析引擎可用于解析JavaScript代码中原生渲染接口,根据渲染函数库不同,解析引擎对应不同。在实际应用中,解析引擎具体可以包括:OPENGLES2.0、Nitro、V8和SpiderMonkey等,本实施例中对具体的解析引擎不加以限制。
具体地,服务器获取到公共渲染代码,当公共渲染代码中封装有原生底层接口时,通过解析引擎解析原生底层接口,获取与原生底层接口对应的渲染函数,并根据渲染函数进行页面渲染,获取目标渲染页面。本实施例中,可实现对原生底层接口进行解析,获取渲染函数,以实现通过渲染函数进行页面渲染,避免不必要的运算,提高渲染速度。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执 行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
在一实施例中,提供一种页面渲染装置,该页面渲染装置与上述实施例中页面渲染方法一一对应。如图7所示,该页面渲染装置包括请求获取模块10、代码获取模块20、底层接口渲染模块30和代码渲染模块40。各功能模块详细说明如下:
请求获取模块10,用于获取页面访问请求,页面访问请求包括url地址。
代码获取模块20,用于根据url地址,获取与url地址对应的页面执行代码,页面执行代码包括至少一个公共渲染接口,每一公共渲染接口对应一公共渲染代码。
底层接口渲染模块30,用于若公共渲染代码封装有原生底层接口,则通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面。
代码渲染模块40,用于若公共渲染代码未封装有原生底层接口,则公共渲染接口调用公共渲染代码进行页面渲染,获取目标渲染页面。
在一实施例中,页面执行代码包括主页面执行代码和内容页面执行代码。代码获取模块20包括地址判断单元21、第一代码获取单元22和第二代码获取单元23。
地址判断单元21,用于判断页面访问请求的url地址与当前页面的url地址是否对应同一ip地址。
第一代码获取单元22,用于若对应同一ip地址,则根据url地址,获取与url地址对应的内容页面执行代码。
第二代码获取单元23,用于若不对应同一ip地址,则根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码。
在一实施例中,在第二代码获取单元23之后,页面渲染装置还包括主页面和内容页面渲染单元2311和第二页面渲染单元2312。
主页面和内容页面渲染单元2311,用于根据并行处理方式分别对主页面执行代码和内容页面执行代码进行页面渲染,分别获取主页面和内容页面。
第二页面渲染单元2312,用于根据叠加方式对主页面和内容页面进行叠加,获取目标渲染页面。
在一实施例中,在第二代码获取单元23之后,页面渲染装置还包括公共渲染接口判断单元2321、跳转单元2322和第三页面渲染单元2323。
公共渲染接口判断单元2321,用于判断url地址对应的主页面执行代码中的公共渲染接口是否在当前页面的页面执行代码中存在一致的公共渲染接口。
跳转单元2322,用于若存在一致的公共渲染接口,则跳过公共渲染接口;
第三页面渲染单元2323,用于若不存在一致的公共渲染接口,则基于公共渲染接口进行页面渲染,获取目标渲染页面。
在一实施例中,在底层接口渲染单元21之前,页面渲染装置还包括请求获取单元201、渲染函数判断单元202、原生底层接口生成单元203、公共渲染代码获取单元204和公共渲染接口获取单元205。
请求获取单元201,用于获取页面渲染配置请求,页面渲染配置请求包括至少一个样式渲染标识和渲染顺序。
渲染函数判断单元202,用于基于样式渲染标识查询渲染函数库,判断渲染函数库中 是否包含与样式渲染标识对应的渲染函数,渲染函数包括至少一个形式参数。
原生底层接口生成单元203,用于若渲染函数库中包含与样式渲染标识对应的渲染函数,则获取与渲染函数中的形式参数相对应的实际参数,生成与样式渲染标识对应的原生底层接口。
公共渲染代码获取单元204,用于若渲染函数库中不包含与样式渲染标识对应的渲染函数,则获取用户配置的与样式渲染标识对应的公共渲染代码。
公共渲染接口获取单元205,用于根据渲染顺序,对原生底层接口和公共渲染代码进行封装,获取公共渲染接口。
在一实施例中,底层接口渲染单元21包括接口解析单元211和第一页面渲染单元212。
接口解析单元211,用于若公共渲染代码封装有原生底层接口,则采用解析引擎对原生底层接口进行解析,获取与原生底层接口对应的渲染函数。
第一页面渲染单元212,用于根据渲染函数进行页面渲染,获取目标渲染页面。
关于页面渲染装置的具体限定可以参见上文中对于页面渲染方法的限定,在此不再赘述。上述页面渲染装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储执行代码等。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种页面渲染方法。
在一个实施例中,提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机可读指令,处理器执行计算机可读指令时实现以下步骤:获取页面访问请求,页面访问请求包括url地址;根据url地址,获取与url地址对应的页面执行代码,页面执行代码包括至少一个公共渲染接口,每一公共渲染接口对应一公共渲染代码;若公共渲染代码封装有原生底层接口,则通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面;若公共渲染代码未封装有原生底层接口,则公共渲染接口调用公共渲染代码进行页面渲染,获取目标渲染页面。
在一实施例中,页面执行代码包括主页面执行代码和内容页面执行代码;根据url地址,获取与url地址对应的页面执行代码,包括:判断页面访问请求的url地址与当前页面的url地址是否对应同一ip地址;若对应同一ip地址,则根据url地址,获取与url地址对应的内容页面执行代码;若不对应同一ip地址,则根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码。
在一实施例中,在根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码的步骤之后,处理器执行计算机可读指令时还实现以下步骤:根据并行处理方式分别对主页面执行代码和内容页面执行代码进行页面渲染,分别获取主页面和内容页面;根 据叠加方式对主页面和内容页面进行叠加,获取目标渲染页面。
在一实施例中,在根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码的步骤之后,处理器执行计算机可读指令时还实现以下步骤:判断url地址对应的主页面执行代码中的公共渲染接口是否在当前页面的页面执行代码中存在一致的公共渲染接口;若存在一致的公共渲染接口,则跳过公共渲染接口;若不存在一致的公共渲染接口,则基于公共渲染接口进行页面渲染,获取目标渲染页面。
在一实施例中,若公共渲染代码封装有原生底层接口,则通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面的步骤之前,处理器执行计算机可读指令时实现以下步骤:获取页面渲染配置请求,页面渲染配置请求包括至少一个样式渲染标识和渲染顺序;基于样式渲染标识查询渲染函数库,判断渲染函数库中是否包含与样式渲染标识对应的渲染函数,渲染函数包括至少一个形式参数;若渲染函数库中包含与样式渲染标识对应的渲染函数,则获取与渲染函数中的形式参数相对应的实际参数,生成与样式渲染标识对应的原生底层接口;若渲染函数库中不包含与样式渲染标识对应的渲染函数,则获取用户配置的与样式渲染标识对应的公共渲染代码;根据渲染顺序,对原生底层接口和公共渲染代码进行封装,获取公共渲染接口。
在一实施例中,若公共渲染代码封装有原生底层接口,通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面,包括:若公共渲染代码封装有原生底层接口,则采用解析引擎对原生底层接口进行解析,获取与原生底层接口对应的渲染函数;根据渲染函数进行页面渲染,获取目标渲染页面。
在一个实施例中,提供一个或多个存储有计算机可读指令的非易失性可读存储介质,计算机可读存储介质存储有计算机可读指令,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如下步骤:获取页面访问请求,页面访问请求包括url地址;根据url地址,获取与url地址对应的页面执行代码,页面执行代码包括至少一个公共渲染接口,每一公共渲染接口对应一公共渲染代码;若公共渲染代码封装有原生底层接口,则通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面;若公共渲染代码未封装有原生底层接口,则公共渲染接口调用公共渲染代码进行页面渲染,获取目标渲染页面。
在一实施例中,页面执行代码包括主页面执行代码和内容页面执行代码;根据url地址,获取与url地址对应的页面执行代码,包括:判断页面访问请求的url地址与当前页面的url地址是否对应同一ip地址;若对应同一ip地址,则根据url地址,获取与url地址对应的内容页面执行代码;若不对应同一ip地址,则根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码。
在一实施例中,在根据url地址,获取与url地址对应的主页面执行代码和内容页面执行代码的步骤之后,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器还执行如下步骤:根据并行处理方式分别对主页面执行代码和内容页面执行代码进行页面渲染,分别获取主页面和内容页面;根据叠加方式对主页面和内容页面进行叠加,获取目标渲染页面。
在一实施例中,在根据url地址,获取与url地址对应的主页面执行代码和内容页面执 行代码的步骤之后,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器还执行如下步骤:判断url地址对应的主页面执行代码中的公共渲染接口是否在当前页面的页面执行代码中存在一致的公共渲染接口;若存在一致的公共渲染接口,则跳过公共渲染接口;若不存在一致的公共渲染接口,则基于公共渲染接口进行页面渲染,获取目标渲染页面。
在一实施例中,若公共渲染代码封装有原生底层接口,则通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面的步骤之前,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如下步骤:获取页面渲染配置请求,页面渲染配置请求包括至少一个样式渲染标识和渲染顺序;基于样式渲染标识查询渲染函数库,判断渲染函数库中是否包含与样式渲染标识对应的渲染函数,渲染函数包括至少一个形式参数;若渲染函数库中包含与样式渲染标识对应的渲染函数,则获取与渲染函数中的形式参数相对应的实际参数,生成与样式渲染标识对应的原生底层接口;若渲染函数库中不包含与样式渲染标识对应的渲染函数,则获取用户配置的与样式渲染标识对应的公共渲染代码;根据渲染顺序,对原生底层接口和公共渲染代码进行封装,获取公共渲染接口。
在一实施例中,若公共渲染代码封装有原生底层接口,通过公共渲染接口调用原生底层接口进行页面渲染,获取目标渲染页面,包括:若公共渲染代码封装有原生底层接口,则采用解析引擎对原生底层接口进行解析,获取与原生底层接口对应的渲染函数;根据渲染函数进行页面渲染,获取目标渲染页面。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本实施例中所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种页面渲染方法,其特征在于,包括:
    获取页面访问请求,所述页面访问请求包括url地址;
    根据所述url地址,获取与所述url地址对应的页面执行代码,所述页面执行代码包括至少一个公共渲染接口,每一所述公共渲染接口对应一公共渲染代码;
    若所述公共渲染代码封装有原生底层接口,则通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面;
    若所述公共渲染代码未封装有原生底层接口,则所述公共渲染接口调用所述公共渲染代码进行页面渲染,获取目标渲染页面。
  2. 如权利要求1所述的页面渲染方法,其特征在于,所述页面执行代码包括主页面执行代码和内容页面执行代码;
    所述根据所述url地址,获取与所述url地址对应的页面执行代码,包括:
    判断所述页面访问请求的url地址与当前页面的url地址是否对应同一ip地址;
    若对应同一ip地址,则根据所述url地址,获取与所述url地址对应的内容页面执行代码;
    若不对应同一ip地址,则根据所述url地址,获取与所述url地址对应的主页面执行代码和内容页面执行代码。
  3. 如权利要求2所述的页面渲染方法,其特征在于,在所述根据所述url地址,获取与所述url地址对应的主页面执行代码和内容页面执行代码的步骤之后,所述页面渲染方法还包括:
    根据并行处理方式分别对所述主页面执行代码和所述内容页面执行代码进行页面渲染,分别获取主页面和内容页面;
    根据叠加方式对所述主页面和所述内容页面进行叠加,获取目标渲染页面。
  4. 如权利要求2所述的页面渲染方法,其特征在于,在所述根据所述url地址,获取与所述url地址对应的主页面执行代码和内容页面执行代码的步骤之后,所述页面渲染方法还包括:
    判断所述url地址对应的主页面执行代码中的公共渲染接口是否在当前页面的页面执行代码中存在一致的公共渲染接口;
    若存在一致的公共渲染接口,则跳过所述公共渲染接口;
    若不存在一致的公共渲染接口,则基于所述公共渲染接口进行页面渲染,获取目标渲染页面。
  5. 如权利要求1所述的页面渲染方法,其特征在于,在所述若所述公共渲染代码封装有原生底层接口,则通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面的步骤之前,所述页面渲染方法还包括:
    获取页面渲染配置请求,所述页面渲染配置请求包括至少一个样式渲染标识和渲染顺序;
    基于所述样式渲染标识查询渲染函数库,判断所述渲染函数库中是否包含与所述样式 渲染标识对应的渲染函数,所述渲染函数包括至少一个形式参数;
    若所述渲染函数库中包含与所述样式渲染标识对应的渲染函数,则获取与渲染函数中的形式参数相对应的实际参数,生成与所述样式渲染标识对应的原生底层接口;
    若所述渲染函数库中不包含与所述样式渲染标识对应的渲染函数,则获取用户配置的与所述样式渲染标识对应的公共渲染代码;
    根据所述渲染顺序,对所述原生底层接口和所述公共渲染代码进行封装,获取公共渲染接口。
  6. 如权利要求1所述的页面渲染方法,其特征在于,所述若所述公共渲染代码封装有原生底层接口,通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面,包括:
    若所述公共渲染代码封装有原生底层接口,则采用解析引擎对所述原生底层接口进行解析,获取与所述原生底层接口对应的渲染函数;
    根据所述渲染函数进行页面渲染,获取目标渲染页面。
  7. 一种页面渲染装置,其特征在于,包括:
    请求获取模块,用于获取页面访问请求,所述页面访问请求包括url地址;
    代码获取模块,用于根据所述url地址,获取与所述url地址对应的页面执行代码,所述页面执行代码包括至少一个公共渲染接口,每一所述公共渲染接口对应一公共渲染代码;
    底层接口渲染模块,用于若所述公共渲染代码封装有原生底层接口,则通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面;
    代码渲染模块,用于若所述公共渲染代码未封装有原生底层接口,则所述公共渲染接口调用所述公共渲染代码进行页面渲染,获取目标渲染页面。
  8. 如权利要求7所述的页面渲染装置,其特征在于,所述页面执行代码包括主页面执行代码和内容页面执行代码;
    所述代码获取模块,包括:
    地址判断单元,用于判断所述页面访问请求的url地址与当前页面的url地址是否对应同一ip地址;
    第一代码获取单元,用于若对应同一ip地址,则根据所述url地址,获取与所述url地址对应的内容页面执行代码;
    第二代码获取单元,用于若不对应同一ip地址,则根据所述url地址,获取与所述url地址对应的主页面执行代码和内容页面执行代码。
  9. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:
    获取页面访问请求,所述页面访问请求包括url地址;
    根据所述url地址,获取与所述url地址对应的页面执行代码,所述页面执行代码包括至少一个公共渲染接口,每一所述公共渲染接口对应一公共渲染代码;
    若所述公共渲染代码封装有原生底层接口,则通过所述公共渲染接口调用所述原生底 层接口进行页面渲染,获取目标渲染页面;
    若所述公共渲染代码未封装有原生底层接口,则所述公共渲染接口调用所述公共渲染代码进行页面渲染,获取目标渲染页面。
  10. 如权利要求9所述的计算机设备,其特征在于,所述页面执行代码包括主页面执行代码和内容页面执行代码;
    所述根据所述url地址,获取与所述url地址对应的页面执行代码,包括:
    判断所述页面访问请求的url地址与当前页面的url地址是否对应同一ip地址;
    若对应同一ip地址,则根据所述url地址,获取与所述url地址对应的内容页面执行代码;
    若不对应同一ip地址,则根据所述url地址,获取与所述url地址对应的主页面执行代码和内容页面执行代码。
  11. 如权利要求10所述的计算机设备,其特征在于,在所述根据所述url地址,获取与所述url地址对应的主页面执行代码和内容页面执行代码的步骤之后,所述处理器执行所述计算机可读指令时还实现如下步骤:
    根据并行处理方式分别对所述主页面执行代码和所述内容页面执行代码进行页面渲染,分别获取主页面和内容页面;
    根据叠加方式对所述主页面和所述内容页面进行叠加,获取目标渲染页面。
  12. 如权利要求10所述的计算机设备,其特征在于,在所述根据所述url地址,获取与所述url地址对应的主页面执行代码和内容页面执行代码的步骤之后,所述处理器执行所述计算机可读指令时实现如下步骤:
    判断所述url地址对应的主页面执行代码中的公共渲染接口是否在当前页面的页面执行代码中存在一致的公共渲染接口;
    若存在一致的公共渲染接口,则跳过所述公共渲染接口;
    若不存在一致的公共渲染接口,则基于所述公共渲染接口进行页面渲染,获取目标渲染页面。
  13. 如权利要求9所述的计算机设备,其特征在于,在所述若所述公共渲染代码封装有原生底层接口,则通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面的步骤之前,所述处理器执行所述计算机可读指令时实现如下步骤:
    获取页面渲染配置请求,所述页面渲染配置请求包括至少一个样式渲染标识和渲染顺序;
    基于所述样式渲染标识查询渲染函数库,判断所述渲染函数库中是否包含与所述样式渲染标识对应的渲染函数,所述渲染函数包括至少一个形式参数;
    若所述渲染函数库中包含与所述样式渲染标识对应的渲染函数,则获取与渲染函数中的形式参数相对应的实际参数,生成与所述样式渲染标识对应的原生底层接口;
    若所述渲染函数库中不包含与所述样式渲染标识对应的渲染函数,则获取用户配置的与所述样式渲染标识对应的公共渲染代码;
    根据所述渲染顺序,对所述原生底层接口和所述公共渲染代码进行封装,获取公共渲染接口。
  14. 如权利要求9所述的计算机设备,其特征在于,所述若所述公共渲染代码封装有原生底层接口,通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面,包括:
    若所述公共渲染代码封装有原生底层接口,则采用解析引擎对所述原生底层接口进行解析,获取与所述原生底层接口对应的渲染函数;
    根据所述渲染函数进行页面渲染,获取目标渲染页面。
  15. 一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:
    获取页面访问请求,所述页面访问请求包括url地址;
    根据所述url地址,获取与所述url地址对应的页面执行代码,所述页面执行代码包括至少一个公共渲染接口,每一所述公共渲染接口对应一公共渲染代码;
    若所述公共渲染代码封装有原生底层接口,则通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面;
    若所述公共渲染代码未封装有原生底层接口,则所述公共渲染接口调用所述公共渲染代码进行页面渲染,获取目标渲染页面。
  16. 如权利要求15所述的非易失性可读存储介质,其特征在于,所述页面执行代码包括主页面执行代码和内容页面执行代码;
    所述根据所述url地址,获取与所述url地址对应的页面执行代码,包括:
    判断所述页面访问请求的url地址与当前页面的url地址是否对应同一ip地址;
    若对应同一ip地址,则根据所述url地址,获取与所述url地址对应的内容页面执行代码;
    若不对应同一ip地址,则根据所述url地址,获取与所述url地址对应的主页面执行代码和内容页面执行代码。
  17. 如权利要求16所述的非易失性可读存储介质,其特征在于,在所述根据所述url地址,获取与所述url地址对应的主页面执行代码和内容页面执行代码的步骤之后,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:
    根据并行处理方式分别对所述主页面执行代码和所述内容页面执行代码进行页面渲染,分别获取主页面和内容页面;
    根据叠加方式对所述主页面和所述内容页面进行叠加,获取目标渲染页面。
  18. 如权利要求16所述的非易失性可读存储介质,其特征在于,在所述根据所述url地址,获取与所述url地址对应的主页面执行代码和内容页面执行代码的步骤之后,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:
    判断所述url地址对应的主页面执行代码中的公共渲染接口是否在当前页面的页面执行代码中存在一致的公共渲染接口;
    若存在一致的公共渲染接口,则跳过所述公共渲染接口;
    若不存在一致的公共渲染接口,则基于所述公共渲染接口进行页面渲染,获取目标渲染页面。
  19. 如权利要求15所述的非易失性可读存储介质,其特征在于,在所述若所述公共渲染代码封装有原生底层接口,则通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面的步骤之前,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:
    获取页面渲染配置请求,所述页面渲染配置请求包括至少一个样式渲染标识和渲染顺序;
    基于所述样式渲染标识查询渲染函数库,判断所述渲染函数库中是否包含与所述样式渲染标识对应的渲染函数,所述渲染函数包括至少一个形式参数;
    若所述渲染函数库中包含与所述样式渲染标识对应的渲染函数,则获取与渲染函数中的形式参数相对应的实际参数,生成与所述样式渲染标识对应的原生底层接口;
    若所述渲染函数库中不包含与所述样式渲染标识对应的渲染函数,则获取用户配置的与所述样式渲染标识对应的公共渲染代码;
    根据所述渲染顺序,对所述原生底层接口和所述公共渲染代码进行封装,获取公共渲染接口。
  20. 如权利要求15所述的非易失性可读存储介质,其特征在于,所述若所述公共渲染代码封装有原生底层接口,通过所述公共渲染接口调用所述原生底层接口进行页面渲染,获取目标渲染页面,包括:
    若所述公共渲染代码封装有原生底层接口,则采用解析引擎对所述原生底层接口进行解析,获取与所述原生底层接口对应的渲染函数;
    根据所述渲染函数进行页面渲染,获取目标渲染页面。
PCT/CN2018/106434 2018-08-02 2018-09-19 页面渲染方法、装置、计算机设备及存储介质 Ceased WO2020024399A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810870260.2 2018-08-02
CN201810870260.2A CN109284454B (zh) 2018-08-02 2018-08-02 页面渲染方法、装置、计算机设备及存储介质

Publications (1)

Publication Number Publication Date
WO2020024399A1 true WO2020024399A1 (zh) 2020-02-06

Family

ID=65182561

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/106434 Ceased WO2020024399A1 (zh) 2018-08-02 2018-09-19 页面渲染方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN109284454B (zh)
WO (1) WO2020024399A1 (zh)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241500A (zh) * 2020-09-17 2021-01-19 上海连尚网络科技有限公司 一种生成配置文件的方法与设备
CN112241499A (zh) * 2020-09-17 2021-01-19 上海连尚网络科技有限公司 一种基于信息流的原生渲染的方法与设备
CN113220380A (zh) * 2021-05-25 2021-08-06 北京小米移动软件有限公司 本地原生程序的调用方法、装置、电子设备及存储介质
CN113312081A (zh) * 2020-02-27 2021-08-27 北京京东尚科信息技术有限公司 应用程序的数据处理方法及装置、电子设备、存储介质
CN114115817A (zh) * 2021-11-30 2022-03-01 北京房江湖科技有限公司 一种业务开发方法、装置、电子设备及存储介质
CN116932958A (zh) * 2023-07-26 2023-10-24 中航信移动科技有限公司 一种页面显示的方法、电子设备及存储介质
CN120045700A (zh) * 2025-04-23 2025-05-27 杭州新中大科技股份有限公司 一种回答内容的渲染方法、装置、设备及介质

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026475A (zh) * 2019-11-19 2020-04-17 上海博泰悦臻电子设备制造有限公司 车辆、车机设备及其基于地图软件的车辆服务处理方法
CN111274510B (zh) * 2020-01-15 2025-08-15 平安银行股份有限公司 页面渲染方法、装置、设备及可读存储介质
CN113778349B (zh) * 2020-06-10 2025-03-25 北京奇虎科技有限公司 页面的打印方法、装置、系统、设备及存储介质
CN111563225A (zh) * 2020-07-13 2020-08-21 随身云(南京)信息技术有限公司 克服首屏空白的源码填充方法和平台
CN112052064B (zh) * 2020-09-28 2024-04-09 深圳前海微众银行股份有限公司 小程序页面跳转方法、装置、设备与计算机可读存储介质
CN112732742B (zh) * 2021-01-12 2023-03-28 深圳平安医疗健康科技服务有限公司 查询页面创建方法、装置、计算机设备和存储介质
CN113655999B (zh) * 2021-08-05 2024-01-09 上海硬通网络科技有限公司 一种页面控件的渲染方法、装置、设备及存储介质
CN113934953B (zh) * 2021-10-11 2024-11-08 上海哔哩哔哩科技有限公司 网页首屏渲染方法及装置
CN114064176B (zh) * 2021-11-11 2025-09-12 北京沃东天骏信息技术有限公司 一种视图交互方法、装置、电子设备及计算机可读介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779164A (zh) * 2012-06-20 2012-11-14 深圳市远行科技有限公司 一种业务系统及其动态页面的渲染方法
CN103440151A (zh) * 2013-09-05 2013-12-11 北京京东尚科信息技术有限公司 一种动态加载Web页面的方法和装置
CN103544209A (zh) * 2013-08-26 2014-01-29 深圳市融创天下科技股份有限公司 访问网页的方法和系统
CN103955548A (zh) * 2014-05-23 2014-07-30 北京金山网络科技有限公司 一种网页渲染方法及装置
CN104020993A (zh) * 2014-05-30 2014-09-03 北京金山网络科技有限公司 一种网页渲染方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8797337B1 (en) * 2009-07-02 2014-08-05 Google Inc. Graphics scenegraph rendering for web applications using native code modules
US8773449B2 (en) * 2009-09-14 2014-07-08 International Business Machines Corporation Rendering of stereoscopic images with multithreaded rendering software pipeline
CN103970966B (zh) * 2014-05-27 2018-01-16 武汉兆图科技有限公司 一种跨嵌入式平台的三维渲染引擎的构建方法
CN105354014B (zh) * 2014-08-18 2018-10-23 阿里巴巴集团控股有限公司 应用界面渲染展示方法及装置
CN107291465B (zh) * 2017-06-14 2024-12-27 北京小米移动软件有限公司 页面显示方法、装置及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779164A (zh) * 2012-06-20 2012-11-14 深圳市远行科技有限公司 一种业务系统及其动态页面的渲染方法
CN103544209A (zh) * 2013-08-26 2014-01-29 深圳市融创天下科技股份有限公司 访问网页的方法和系统
CN103440151A (zh) * 2013-09-05 2013-12-11 北京京东尚科信息技术有限公司 一种动态加载Web页面的方法和装置
CN103955548A (zh) * 2014-05-23 2014-07-30 北京金山网络科技有限公司 一种网页渲染方法及装置
CN104020993A (zh) * 2014-05-30 2014-09-03 北京金山网络科技有限公司 一种网页渲染方法及装置

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312081A (zh) * 2020-02-27 2021-08-27 北京京东尚科信息技术有限公司 应用程序的数据处理方法及装置、电子设备、存储介质
CN112241500A (zh) * 2020-09-17 2021-01-19 上海连尚网络科技有限公司 一种生成配置文件的方法与设备
CN112241499A (zh) * 2020-09-17 2021-01-19 上海连尚网络科技有限公司 一种基于信息流的原生渲染的方法与设备
CN112241499B (zh) * 2020-09-17 2025-04-08 上海连尚网络科技集团有限公司 一种基于信息流的原生渲染的方法与设备
CN113220380A (zh) * 2021-05-25 2021-08-06 北京小米移动软件有限公司 本地原生程序的调用方法、装置、电子设备及存储介质
CN114115817A (zh) * 2021-11-30 2022-03-01 北京房江湖科技有限公司 一种业务开发方法、装置、电子设备及存储介质
CN116932958A (zh) * 2023-07-26 2023-10-24 中航信移动科技有限公司 一种页面显示的方法、电子设备及存储介质
CN120045700A (zh) * 2025-04-23 2025-05-27 杭州新中大科技股份有限公司 一种回答内容的渲染方法、装置、设备及介质

Also Published As

Publication number Publication date
CN109284454B (zh) 2024-06-25
CN109284454A (zh) 2019-01-29

Similar Documents

Publication Publication Date Title
WO2020024399A1 (zh) 页面渲染方法、装置、计算机设备及存储介质
US12182221B2 (en) Method and terminal device for extracting web page content
US20210216700A1 (en) Information Processing Method and System
WO2020024397A1 (zh) 页面访问处理方法、装置、计算机设备及存储介质
US10303748B2 (en) Method and device for providing webpage browsing based on web browser engine kernel
WO2020151333A1 (zh) 页面加载方法、装置、计算机设备和存储介质
CN110765379B (zh) 加载资源文件的方法、装置、计算机设备及存储介质
WO2019104975A1 (zh) 基于dubbo框架的远程调用方法、服务器及存储介质
WO2019019380A1 (zh) 混合app的页面导航方法、装置、终端和存储介质
US9781262B2 (en) Methods and apparatus for voice-enabling a web application
WO2017076315A1 (zh) 页面显示方法、装置、系统以及页面显示辅助方法、装置
CN110177039B (zh) 消息分享方法、装置、计算机设备和存储介质
US9292252B2 (en) Methods and apparatus for voiced-enabling a web application
CN112395848A (zh) 富文本显示方法、装置、计算机设备和存储介质
CN103530329A (zh) 一种进行网页加载的方法、装置和浏览器
WO2022099913A1 (zh) 界面配置方法、装置、设备及介质
CN115145674A (zh) 基于动态锚点的页面跳转方法、装置、设备及介质
CN110362341A (zh) 基于微服务架构的业务管理方法、装置、设备和存储介质
CN104317570A (zh) 动态解析Web应用的装置和方法
CN109902257B (zh) 资源访问方法、装置、计算机设备和存储介质
CN102436509B (zh) 在移动终端进行网页浏览的方法及系统
CN111177624A (zh) 网站前后端通讯方法、装置、计算机设备和存储介质
WO2019024520A1 (zh) 页面展示方法、电子设备及非易失性计算机可读存储介质
CN106648610B (zh) 功能接口远程调用及其响应的方法和装置
CN114254232A (zh) 云产品页面生成方法、装置、计算机设备和存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18928399

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 24.03.2021.)

122 Ep: pct application non-entry in european phase

Ref document number: 18928399

Country of ref document: EP

Kind code of ref document: A1