A network application display method and device, computer equipment and a storage medium

CN117194831BActive Publication Date: 2026-09-29SHANGHAI MININGLAMP ARTIFICIAL INTELLIGENCE GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310651218.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-02
Publication Date
2026-09-29
Estimated Expiration
2043-06-02

AI Technical Summary

Technical Problem

[0003]发明人在研究中发现,由于子应用和主应用都可能存在技术栈老旧和渲染逻辑复杂的情况,所以在对主应用的渲染逻辑进行修改时,开发人员需要耗费大量时间去修改代码,从而会增加开发人员的人力成本

Benefits of technology

[0044]根据第一待展示网络应用的第一链接地址请求第一待展示网络应用对应的第一静态资源,其中,所述第一链接地址用于描述所述第一静态资源在网络中的存储路径,所述第一静态资源用于实现所述第一待展示网络应用在网络界面上的展示,通过上述步骤,通过访问用于存储第一静态资源的链接地址,能够直接获取到第一静态资源,为将第一待展示网络应用的展示提供了实现基础;将所述第一静态资源存储至界面展示文件中,其中,所述界面展示文件还包括第二待展示网络应用对应的第二静态资源,通过上述步骤,将第一待展示网络应用的静态资源存储至与第二待展示网络应用的静态资源所在的相同的文件流中,能够实现两个网络应用在同一文件流中的相互通信,同时又由于是两个独立的资源,还能够保证两个待展示网络应用的脚本、样式和元素相互隔离;响应用户对网络界面的展示请求,根据所述界面展示文件中的所述第一静态资源和所述第二静态资源将所述第一待展示网络应用和所述第二待展示网络应用同时在所述网络界面上进行展示。采用上述方法,在不对网络应用的静态资源进行修改的基础上,将多个网络应用的静态资源放入同一个文件流中进行网络展示,有利于减小开发人员的人力成本。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117194831B_ABST
    Figure CN117194831B_ABST
Patent Text Reader

Abstract

The application provides a network application display method and device, computer equipment and a storage medium, wherein a first static resource corresponding to a first network application to be displayed is requested according to a first link address of the first network application to be displayed; the first static resource is stored into an interface display file; and the first network application to be displayed and a second network application to be displayed are simultaneously displayed on a network interface according to the first static resource and the second static resource in the interface display file in response to a display request of the network interface by a user. By using the above method, the static resources of multiple network applications are put into the same file stream for network display without modifying the static resources of the network applications, which is beneficial to reducing the labor cost of developers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and more specifically, to a method, apparatus, computer device, and storage medium for demonstrating network applications. Background Technology

[0002] To enable users to access multiple applications (main application and sub-applications) through a single browser page, it is typically necessary for sub-applications (applications that need to be displayed but have not yet been displayed) to be integrated into the main application (the application currently displayed on the page). This allows both the main application and sub-applications to be displayed simultaneously on the current interface. In existing technologies, the method for integrating a sub-application into the main application involves modifying the static resources and rendering logic of the main application. The rendering logic used to control the display of the sub-application on the page is added to the static resources of the main application, enabling the sub-application to be displayed within the main application based on the modified static resources.

[0003] The inventors discovered in their research that because both sub-applications and the main application may have outdated technology stacks and complex rendering logic, developers need to spend a lot of time modifying the code when modifying the rendering logic of the main application, which increases the developers' manpower costs. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a method, apparatus, computer equipment and storage medium for displaying network applications, which helps to reduce the human resource costs of developers.

[0005] In a first aspect, embodiments of this application provide a method for demonstrating a network application, the method comprising:

[0006] The first static resource corresponding to the first network application to be displayed is requested according to the first link address of the first network application to be displayed, wherein the first link address is used to describe the storage path of the first static resource in the network, and the first static resource is used to realize the display of the first network application to be displayed on the network interface.

[0007] The first static resource is stored in the interface display file, wherein the interface display file also includes the second static resource corresponding to the second network application to be displayed;

[0008] In response to a user's request to display the network interface, the first network application to be displayed and the second network application to be displayed are simultaneously displayed on the network interface according to the first static resource and the second static resource in the interface display file.

[0009] Optionally, requesting the first static resource corresponding to the first network application to be displayed based on the first link address of the first network application to be displayed includes:

[0010] Obtain the first hypertext markup language file of the first web application to be displayed based on the first link address;

[0011] The first hypertext markup language file is parsed to obtain the first file address of the first file used to describe the display attributes of the first web application to be displayed and the second file address of the second file used to describe the interactive attributes of the first web application to be displayed.

[0012] The first file address is parsed to obtain the first file;

[0013] The second file address is parsed to obtain the second file;

[0014] The first hypertext markup language file, the first file, and the second file are stored as the first static resource.

[0015] Optionally, storing the first static resource in the interface display file includes:

[0016] Obtain the first storage path of the interface display file in the computer system;

[0017] Write the first static resource into the interface display file according to the first storage path.

[0018] Optionally, the step of simultaneously displaying the first network application to be displayed and the second network application to be displayed on the network interface based on the first static resource and the second static resource in the interface display file includes:

[0019] Send the first static resource and the second static resource to the browser;

[0020] Enable the static resource parsing engine pre-configured in the browser to parse the first static resource and the second static resource;

[0021] The first and second network applications to be displayed, obtained from the parsing, are then displayed on the network interface.

[0022] Optionally, the first file is the JavaScript file of the first web application to be displayed, and the second file is the Cascading Style Sheets (CSS) file of the first web application to be displayed.

[0023] Secondly, embodiments of this application provide a network application demonstration device, the device comprising:

[0024] The static resource request module is used to request the first static resource corresponding to the first network application to be displayed based on the first link address of the first network application to be displayed. The first link address is used to describe the storage path of the first static resource in the network, and the first static resource is used to realize the display of the first network application to be displayed on the network interface.

[0025] A static resource storage module is used to store the first static resource into an interface display file, wherein the interface display file further includes a second static resource corresponding to the second network application to be displayed;

[0026] The network application display module is used to respond to the user's request to display the network interface, and to display the first network application to be displayed and the second network application to be displayed simultaneously on the network interface according to the first static resource and the second static resource in the interface display file.

[0027] Optionally, when the static resource request module requests the first static resource corresponding to the first network application to be displayed based on the first link address of the first network application to be displayed, it is specifically used for:

[0028] Obtain the first hypertext markup language file of the first web application to be displayed based on the first link address;

[0029] The first hypertext markup language file is parsed to obtain the first file address of the first file used to describe the display attributes of the first web application to be displayed and the second file address of the second file used to describe the interactive attributes of the first web application to be displayed.

[0030] The first file address is parsed to obtain the first file;

[0031] The second file address is parsed to obtain the second file;

[0032] The first hypertext markup language file, the first file, and the second file are stored as the first static resource.

[0033] Optionally, when the static resource storage module is used to store the first static resource in the interface display file, it is specifically used for:

[0034] Obtain the first storage path of the interface display file in the computer system;

[0035] Write the first static resource into the interface display file according to the first storage path.

[0036] Optionally, when the network application display module displays the first network application to be displayed and the second network application to be displayed simultaneously on the network interface based on the first static resource and the second static resource in the interface display file, it is specifically used for:

[0037] Send the first static resource and the second static resource to the browser;

[0038] Enable the static resource parsing engine pre-configured in the browser to parse the first static resource and the second static resource;

[0039] The first and second network applications to be displayed, obtained from the parsing, are then displayed on the network interface.

[0040] Optionally, the first file is the JavaScript file of the first web application to be displayed, and the second file is the Cascading Style Sheets (CSS) file of the first web application to be displayed.

[0041] Thirdly, embodiments of this application provide a computer device, including: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the network application display method described in any of the optional embodiments of the first aspect are performed.

[0042] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the network application display method described in any of the optional embodiments of the first aspect.

[0043] The technical solution provided in this application includes, but is not limited to, the following beneficial effects:

[0044] The system requests a first static resource corresponding to a first network application to be displayed based on its first link address. The first link address describes the storage path of the first static resource on the network. This first static resource is used to display the first network application on the network interface. Through these steps, the first static resource can be directly obtained by accessing the link address used to store it, providing a foundation for displaying the first network application. The first static resource is then stored in an interface display file, which also includes a second static resource corresponding to a second network application to be displayed. By storing the static resource of the first network application in the same file stream as the static resource of the second network application, communication between the two network applications within the same file stream is possible. Furthermore, since these are two independent resources, the scripts, styles, and elements of the two network applications are kept isolated. Finally, in response to the user's request to display the network interface, the first and second network applications are simultaneously displayed on the network interface based on the first and second static resources in the interface display file. By using the above method, the static resources of multiple web applications can be placed into the same file stream for web display without modifying the static resources of the web applications, which helps to reduce the manpower cost of developers.

[0045] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0046] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 A flowchart of a network application demonstration method provided in Embodiment 1 of the present invention is shown;

[0048] Figure 2 A schematic diagram illustrating the display effect of a network application provided in Embodiment 1 of the present invention is shown;

[0049] Figure 3 A flowchart of a static resource request method provided in Embodiment 1 of the present invention is shown;

[0050] Figure 4A flowchart of a static resource storage method provided in Embodiment 1 of the present invention is shown;

[0051] Figure 5 A flowchart of another network application demonstration method provided in Embodiment 1 of the present invention is shown;

[0052] Figure 6 This diagram illustrates the structure of a network application demonstration device provided in Embodiment 2 of the present invention.

[0053] Figure 7 A schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention is shown. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0055] Example 1

[0056] To facilitate understanding of this application, the following is combined with... Figure 1 The flowchart illustrating a network application demonstration method provided in Embodiment 1 of the present invention will be described in detail for Embodiment 1 of this application.

[0057] See Figure 1 The above, Figure 1 The flowchart of a network application demonstration method provided in Embodiment 1 of the present invention is shown. The method includes steps S101 to S103:

[0058] S101: Request the first static resource corresponding to the first network application to be displayed according to the first link address of the first network application to be displayed, wherein the first link address is used to describe the storage path of the first static resource in the network, and the first static resource is used to realize the display of the first network application to be displayed on the network interface.

[0059] Specifically, a web application is an application software that operates on the Internet or a corporate intranet using a web browser. It is an application written in web languages ​​(such as HTML, JavaScript, Java, etc.) and needs to be run through a browser. Static resources refer to resources published using static web page development technology. They are mainly used to build basic web pages, display page content, layout and beautify the page, control page elements, and give the page dynamic effects. In other words, when a web application is displayed on a web page, the display of the page needs to be controlled by static resources.

[0060] To ensure that each web application can run and be displayed independently, each web application is equipped with its own static resources, allowing the current web application to be displayed on the page based on its own static resources. To reduce the occupation of internal computer storage space and facilitate data sharing among other developers, before obtaining the first static resource of the first web application to be displayed, the first static resource is stored in a network cloud server. A storage path is generated based on the storage location of the first static resource in the network, and the storage path is converted into a link address for storage, so that when the first static resource needs to be requested, it can be found by accessing the link address.

[0061] S102: Store the first static resource in the interface display file, wherein the interface display file further includes the second static resource corresponding to the second network application to be displayed.

[0062] Specifically, when displaying two applications simultaneously on the interface, there are two scenarios. The first scenario is when both applications (the main application and the sub-application) are displayed on a blank page. The second scenario is when the sub-application is displayed within the interface of the main application, which has already been displayed.

[0063] In the first case, the interface display file does not contain static resources for the sub-application (equivalent to the first network application to be displayed) and the main application (equivalent to the second network application to be displayed). In order to enable the first network application to be displayed and the second network application to be displayed to be displayed on the page at the same time, the first static resource and the second static resource need to be stored in the interface display file so that the interface display file contains static resources that can enable the first network application to be displayed and the second network application to be displayed to be displayed on the interface.

[0064] In the second case, the interface display file contains static resources of the main application (the second display resource of the second network application to be displayed), but does not contain static resources of the sub-application (the first display resource of the first network application to be displayed). In order to enable the first network application to be displayed to be displayed in the second network application to be displayed, the first static resource obtained by step S101 needs to be stored in the interface display file, so that the interface display file contains static resources that enable the first network application to be displayed to be displayed in the second network application to be displayed.

[0065] S103: In response to the user's request to display the network interface, the first network application to be displayed and the second network application to be displayed are simultaneously displayed on the network interface according to the first static resource and the second static resource in the interface display file.

[0066] For details, see Figure 2 As shown, Figure 2 The diagram illustrates a network application display effect provided in Embodiment 1 of the present invention. When a user needs to display a network application on the interface, they can access the browser's network interface or click the browser's page display plugin. The computer system will display the first network application to be displayed and the second network application to be displayed on the network interface according to the settings of the display attributes and interaction attributes of the network application in the static resources (such as display elements, colors, layouts, sizes, etc.).

[0067] In one feasible implementation plan, see Figure 3 As shown, Figure 3 The flowchart illustrates a static resource request method according to Embodiment 1 of the present invention, wherein the step of requesting the first static resource corresponding to the first network application to be displayed based on the first link address of the first network application to be displayed includes steps S301 to S305:

[0068] S301: Obtain the first hypertext markup language file of the first web application to be displayed based on the first link address.

[0069] Specifically, the first hypertext markup language file of the first web application to be displayed is obtained according to the first link address. The first hypertext markup language file contains a first file address of a first file for describing the display attributes of the first web application to be displayed and a second file address of a second file for describing the interactive attributes of the first web application to be displayed.

[0070] HTML files are used to build basic web pages and display page content. At the same time, the HTML file will carry the address of a first file that describes the display attributes of the first web application to be displayed (display attributes are used to control page elements and make the page have dynamic effects), and the address of a second file that describes the interactive attributes of the first web application to be displayed (interactive attributes are used to provide interactive elements in the interface and respond to the user's operation of interactive elements to redirect the page).

[0071] S302: Parse the first hypertext markup language file to obtain the first file address of the first file used to describe the display attributes of the first web application to be displayed and the second file address of the second file used to describe the interactive attributes of the first web application to be displayed.

[0072] Specifically, after parsing the first hypertext markup file, the first file address and the second file address can be obtained.

[0073] S303: Parse the address of the first file to obtain the first file.

[0074] Specifically, the first file address is the storage path of the first file. This storage path can point to the computer's memory or to the cloud server's storage area. When the file address is accessed, the first file can be retrieved.

[0075] S304: Parse the address of the second file to obtain the second file.

[0076] Specifically, when accessing the address of the second file, the second file can be obtained based on its storage path.

[0077] S305: Store the first hypertext markup language file, the first file, and the second file as the first static resource.

[0078] Specifically, the first hypertext markup language file obtained in step S301, the first file obtained in step S303, and the second file obtained in step S304 are stored as the first static resource, and the storage location can be computer memory or a cloud server.

[0079] In one feasible implementation plan, see Figure 4 As shown, Figure 4 The flowchart illustrates a static resource storage method according to Embodiment 1 of the present invention, wherein storing the first static resource into the interface display file includes steps S401 to S402:

[0080] S401: Obtain the first storage path of the interface display file in the computer system.

[0081] S402: Write the first static resource into the interface display file according to the first storage path.

[0082] Specifically, in order to write a file or data to a file on the computer, it is necessary to obtain the storage path of the file in the computer system and determine whether the storage path is a valid path. When the storage path is a valid path, it is then determined whether the interface display file has enough storage space to store the first static resource. When there is enough storage space, the four hundred million static resources are written to the interface display file.

[0083] In one feasible implementation plan, see Figure 5 As shown, Figure 5 The flowchart illustrates another network application display method provided in Embodiment 1 of the present invention, wherein the step of simultaneously displaying the first network application to be displayed and the second network application to be displayed on the network interface based on the first static resource and the second static resource in the interface display file includes steps S501 to S503:

[0084] S501: Send the first static resource and the second static resource to the browser.

[0085] Specifically, when it is necessary to display the first web application and the second web application simultaneously, it is necessary to parse the first static resource corresponding to the first web application and the second static resource corresponding to the second web application. Therefore, the static resources need to be sent to a browser with a parsing engine first.

[0086] S502: Enable the static resource parsing engine pre-configured in the browser to parse the first static resource and the second static resource.

[0087] Specifically, after the browser obtains the first static resource and the second static resource, it uses a static resource parsing engine to parse the first static resource and the second static resource to obtain the corresponding first web application to be displayed and the corresponding second web application to be displayed.

[0088] S503: Display the first network application to be displayed and the second network application to be displayed obtained from the parsing on the network interface.

[0089] Specifically, after parsing the first static resource, the first network application to be displayed will be displayed on the network interface according to the display attributes in the first static resource. Similarly, after parsing the second static resource, the second network application to be displayed will be displayed on the network interface according to the display attributes in the second static resource, thereby achieving the effect of displaying the first network application to be displayed and the second network application to be displayed on the network interface at the same time.

[0090] In one feasible implementation, the first file is the JavaScript file of the first web application to be displayed, and the second file is the Cascading Style Sheets (CSS) file of the first web application to be displayed.

[0091] Specifically, JavaScript files, with the .js extension, are scripting languages ​​written in JavaScript, used to develop web pages and provide display elements. Cascading Style Sheets (CSS) files, on the other hand, are computer languages ​​used to style HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standard Generalized Markup Language). CSS can not only statically format web pages but also dynamically format web page elements in conjunction with various scripting languages. In other words, CSS can precisely control the layout of elements on a web page down to the pixel level, supports almost all font sizes and styles, and has the ability to edit the styles of web page objects and models. With the collaboration of JavaScript files, Cascading Style Sheets, and Hypertext Markup Language files, web applications can be displayed on a web page.

[0092] When implementing the above-mentioned web application display method in a computer, the main methods used are HTML Entry (using the hypertext markup language built from the sub-application as the entry point) and Custom Web Component (custom elements and custom Shadow Dow) (custom Shadow Dow is an HTML specification that allows developers to encapsulate their own HTML tags, cascading CSS styles, and JavaScript code); creating custom tags combined with custom Shadow DOM to implement native Web Components can be integrated into micro-frontends like web components, allowing users to embed sub-applications directly into the main application through browser plugins.

[0093] Example 2

[0094] See Figure 6 As shown, Figure 6This diagram illustrates the structure of a network application demonstration device according to Embodiment 2 of the present invention, wherein, as shown... Figure 6 As shown, the network application demonstration device provided in Embodiment 2 of the present invention includes:

[0095] The static resource request module 601 is used to request the first static resource corresponding to the first network application to be displayed according to the first link address of the first network application to be displayed, wherein the first link address is used to describe the storage path of the first static resource in the network, and the first static resource is used to realize the display of the first network application to be displayed on the network interface.

[0096] The static resource storage module 602 is used to store the first static resource into the interface display file, wherein the interface display file also includes the second static resource corresponding to the second network application to be displayed.

[0097] The network application display module 603 is used to respond to the user's request to display the network interface, and to display the first network application to be displayed and the second network application to be displayed simultaneously on the network interface according to the first static resource and the second static resource in the interface display file.

[0098] In a feasible implementation, when the static resource request module requests the first static resource corresponding to the first web application to be displayed based on the first link address of the first web application to be displayed, it is specifically used for:

[0099] Obtain the first hypertext markup language file of the first web application to be displayed according to the first link address; parse the first hypertext markup language file to obtain the first file address of the first file used to describe the display attributes of the first web application to be displayed and the second file address of the second file used to describe the interactive attributes of the first web application to be displayed; parse the first file address to obtain the first file; parse the second file address to obtain the second file; store the first hypertext markup language file, the first file, and the second file as the first static resource.

[0100] In one feasible implementation, the static resource storage module, when used to store the first static resource in the interface display file, is specifically used for:

[0101] Obtain the first storage path of the interface display file in the computer system; write the first static resource into the interface display file according to the first storage path.

[0102] In a feasible implementation, when the network application display module is used to simultaneously display the first network application to be displayed and the second network application to be displayed on the network interface based on the first static resource and the second static resource in the interface display file, it is specifically used for:

[0103] Send the first static resource and the second static resource to the browser; enable the static resource parsing engine pre-set in the browser to parse the first static resource and the second static resource; display the parsed first web application to be displayed and the second web application to be displayed on the web interface.

[0104] In one feasible implementation, the first file is the JavaScript file of the first web application to be displayed, and the second file is the Cascading Style Sheets (CSS) file of the first web application to be displayed.

[0105] Example 3

[0106] Based on the same application concept, see [link / reference] Figure 7 As shown, Figure 7 A schematic diagram of the structure of a computer device provided in Embodiment 3 of the present invention is shown, wherein, as Figure 7 As shown, the computer device 700 provided in Embodiment 3 of this application includes:

[0107] The computer device 700 includes a processor 701, a memory 702, and a bus 703. The memory 702 stores machine-readable instructions that can be executed by the processor 701. When the computer device 700 is running, the processor 701 communicates with the memory 702 through the bus 703. The machine-readable instructions are executed by the processor 701 to perform the steps of the network application demonstration method shown in Embodiment 1 above.

[0108] Example 4

[0109] Based on the same concept, this application also provides a computer-readable storage medium storing a computer program, which, when run by a processor, executes the steps of a network application demonstration method as described in any of the above embodiments.

[0110] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0111] The computer program product for demonstrating network applications provided in this embodiment of the invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation details, please refer to the method embodiments, which will not be repeated here.

[0112] The network application demonstration device provided in this embodiment of the invention can be specific hardware on a device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in this embodiment of the invention are the same as those in the foregoing method embodiments. For the sake of brevity, any parts not mentioned in the device embodiments can be referred to the corresponding content in the foregoing method embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can all be referred to the corresponding processes in the above method embodiments, and will not be repeated here.

[0113] In the embodiments provided by this invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.

[0114] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0115] In addition, the functional units in the embodiments provided by the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0116] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0117] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0118] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. All should be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for displaying network applications, characterized in that, The method includes: The first static resource corresponding to the first network application to be displayed is requested according to the first link address of the first network application to be displayed, wherein the first link address is used to describe the storage path of the first static resource in the network, and the first static resource is used to realize the display of the first network application to be displayed on the network interface. The first static resource is stored in the interface display file, wherein the interface display file also includes the second static resource corresponding to the second network application to be displayed; In response to a user's request to display the network interface, the first network application to be displayed and the second network application to be displayed are simultaneously displayed on the network interface according to the first static resource and the second static resource in the interface display file. The step of requesting the first static resource corresponding to the first network application to be displayed based on the first link address of the first network application to be displayed includes: Obtain the first hypertext markup language file of the first web application to be displayed based on the first link address; The first hypertext markup language file is parsed to obtain the first file address of the first file used to describe the display attributes of the first web application to be displayed and the second file address of the second file used to describe the interactive attributes of the first web application to be displayed. The first file address is parsed to obtain the first file; The second file address is parsed to obtain the second file; The first hypertext markup language file, the first file, and the second file are stored as the first static resource.

2. The method according to claim 1, characterized in that, The step of storing the first static resource in the interface display file includes: Obtain the first storage path of the interface display file in the computer system; Write the first static resource into the interface display file according to the first storage path.

3. The method according to claim 1, characterized in that, The step of simultaneously displaying the first network application to be displayed and the second network application to be displayed on the network interface based on the first static resource and the second static resource in the interface display file includes: Send the first static resource and the second static resource to the browser; Enable the static resource parsing engine pre-configured in the browser to parse the first static resource and the second static resource; The first and second network applications to be displayed, obtained from the parsing, are then displayed on the network interface.

4. The method according to claim 1, characterized in that, The first file is the JavaScript file of the first web application to be displayed, and the second file is the Cascading Style Sheets (CSS) file of the first web application to be displayed.

5. A network application demonstration device, characterized in that, The device includes: The static resource request module is used to request the first static resource corresponding to the first network application to be displayed based on the first link address of the first network application to be displayed. The first link address is used to describe the storage path of the first static resource in the network, and the first static resource is used to realize the display of the first network application to be displayed on the network interface. A static resource storage module is used to store the first static resource into an interface display file, wherein the interface display file further includes a second static resource corresponding to the second network application to be displayed; The network application display module is used to respond to the user's request for displaying the network interface, and to display the first network application to be displayed and the second network application to be displayed simultaneously on the network interface according to the first static resource and the second static resource in the interface display file. When the static resource request module requests the first static resource corresponding to the first network application to be displayed based on the first link address of the first network application to be displayed, it is specifically used for: Obtain the first hypertext markup language file of the first web application to be displayed based on the first link address; The first hypertext markup language file is parsed to obtain the first file address of the first file used to describe the display attributes of the first web application to be displayed and the second file address of the second file used to describe the interactive attributes of the first web application to be displayed. The first file address is parsed to obtain the first file; The second file address is parsed to obtain the second file; The first hypertext markup language file, the first file, and the second file are stored as the first static resource.

6. The apparatus according to claim 5, characterized in that, When the static resource storage module is used to store the first static resource in the interface display file, it is specifically used for: Obtain the first storage path of the interface display file in the computer system; Write the first static resource into the interface display file according to the first storage path.

7. A computer device, characterized in that, include: The computer device includes a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the computer device is running, the processor communicates with the memory via the bus. When the machine-readable instructions are executed by the processor, the steps of the network application demonstration method as described in any one of claims 1 to 4 are performed.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the network application demonstration method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Webpage-based loading method, device, equipment and storage medium

    CN110990732A