CN117194831A - Network application display method and device, computer equipment and storage medium - Google Patents

Network application display method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN117194831A
CN117194831A CN202310651218.2A CN202310651218A CN117194831A CN 117194831 A CN117194831 A CN 117194831A CN 202310651218 A CN202310651218 A CN 202310651218A CN 117194831 A CN117194831 A CN 117194831A
Authority
CN
China
Prior art keywords
file
static resource
displayed
network application
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310651218.2A
Other languages
Chinese (zh)
Inventor
朱双杰
姜平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Minglue Artificial Intelligence Group Co Ltd
Original Assignee
Shanghai Minglue Artificial Intelligence Group 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 Shanghai Minglue Artificial Intelligence Group Co Ltd filed Critical Shanghai Minglue Artificial Intelligence Group Co Ltd
Priority to CN202310651218.2A priority Critical patent/CN117194831A/en
Publication of CN117194831A publication Critical patent/CN117194831A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a network application display method, a 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; storing the first static resource into an interface display file; responding to a display request of a user for a network interface, and displaying the first network application to be displayed and the second network application to be displayed on the network interface according to the first static resource and the second static resource in the interface display file. By adopting the method, on the basis of not modifying the static resources of the network applications, the static resources of a plurality of network applications are put into the same file stream for network display, thereby being beneficial to reducing the labor cost of developers.

Description

Network application display method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for displaying a network application, a computer device, and a storage medium.
Background
In order to enable a user to access a plurality of applications (a main application and a sub-application) through one page of a browser, the sub-application (an application which needs to be shown but is not shown) is generally required to be accessed into the main application (an application which is being shown in a current page) so as to realize that the main application and the sub-application are simultaneously shown on the current interface; in the prior art, the method for accessing the sub-application to the main application is to modify the static resource and rendering logic of the main application, and add the rendering logic for controlling the sub-application to display on the page into the static resource of the main application, so that the sub-application can be displayed in the main application according to the modified static resource.
The inventor finds in the research that, because the sub-application and the main application may have the conditions of old and old technical stacks and complicated rendering logic, when the rendering logic of the main application is modified, a developer needs to spend a great deal of time to modify the code, so that the labor cost of the developer is increased.
Disclosure of Invention
In view of the above, the present application is directed to a method, an apparatus, a computer device and a storage medium for displaying a web application, which are beneficial to reducing the labor cost of a developer.
In a first aspect, an embodiment of the present application provides a network application display method, where the method includes:
requesting a first static resource corresponding to a first network application to be displayed according to a first link address of the first network application to be displayed, wherein the first link address is used for describing a storage path of the first static resource in a network, and the first static resource is used for realizing display of the first network application to be displayed on a network interface;
storing the first static resources into an interface display file, wherein the interface display file further comprises second static resources corresponding to a second network application to be displayed;
responding to a display request of a user for a network interface, and displaying the first network application to be displayed and the second network application to be displayed on the network interface according to the first static resource and the second static resource in the interface display file.
Optionally, the requesting, according to the first link address of the first network application to be displayed, the first static resource corresponding to the first network application to be displayed includes:
acquiring a first hypertext markup language file of the first network application to be displayed according to the first link address;
analyzing the first hypertext markup language file to obtain a first file address of a first file for describing the display attribute of the first network application to be displayed and a second file address of a second file for describing the interaction attribute of the first network application to be displayed;
resolving the first file address to obtain the first file;
resolving the second file address to obtain the second file;
and storing the first hypertext markup language file, the first file and the second file as the first static resource.
Optionally, the storing the first static resource in an interface presentation file includes:
acquiring a first storage path of the interface display file in a computer system;
and writing the first static resource into the interface display file according to the first storage path.
Optionally, the displaying the first to-be-displayed network application and the second to-be-displayed network application on the network interface according to the first static resource and the second static resource in the interface display file includes:
transmitting the first static resource and the second static resource to a browser;
enabling a static resource analysis engine preset in the browser to analyze the first static resource and the second static resource;
and displaying the first network application to be displayed and the second network application to be displayed, which are obtained through analysis, on the network interface.
Optionally, the first file is a JavaScript file of the first network application to be displayed, and the second file is a cascading style sheet file of the first network application to be displayed.
In a second aspect, an embodiment of the present application provides a network application display apparatus, where the apparatus includes:
the system comprises a static resource request module, a network interface module and a network interface module, wherein the static resource request module is used for requesting a first static resource corresponding to a first network application to be displayed according to a first link address of the first network application to be displayed, the first link address is used for describing a storage path of the first static resource in a network, and the first static resource is used for realizing the display of the first network application to be displayed on the network interface;
the static resource storage module is used for storing the first static resource into an interface display file, wherein the interface display file also comprises a second static resource corresponding to a second network application to be displayed;
and the network application display module is used for responding to a display request of a user on a network interface, and displaying the first network application to be displayed and the second network application to be displayed on the network interface according to the first static resource and the second static resource in the interface display file.
Optionally, the static resource request module is configured to, when requesting, according to a first link address of a first network application to be displayed, a first static resource corresponding to the first network application to be displayed, specifically:
acquiring a first hypertext markup language file of the first network application to be displayed according to the first link address;
analyzing the first hypertext markup language file to obtain a first file address of a first file for describing the display attribute of the first network application to be displayed and a second file address of a second file for describing the interaction attribute of the first network application to be displayed;
resolving the first file address to obtain the first file;
resolving the second file address to obtain the second file;
and storing the first hypertext markup language file, the first file and the second file as the first static resource.
Optionally, the static resource storage module is specifically configured to, when configured to store the first static resource in an interface presentation file:
acquiring a first storage path of the interface display file in a computer system;
and writing the first static resource into the interface display file according to the first storage path.
Optionally, the network application display module is configured to, when configured to display the first to-be-displayed network application and the second to-be-displayed network application on the network interface according to the first static resource and the second static resource in the interface display file, specifically:
transmitting the first static resource and the second static resource to a browser;
enabling a static resource analysis engine preset in the browser to analyze the first static resource and the second static resource;
and displaying the first network application to be displayed and the second network application to be displayed, which are obtained through analysis, on the network interface.
Optionally, the first file is a JavaScript file of the first network application to be displayed, and the second file is a cascading style sheet file of the first network application to be displayed.
In a third aspect, an embodiment of the present application provides a computer apparatus, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the network application presentation method as described in any of the alternative embodiments of the first aspect above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the network application presentation method described in any of the alternative embodiments of the first aspect.
The technical scheme provided by the application comprises the following beneficial effects:
requesting a first static resource corresponding to a first network application to be displayed according to a first link address of the first network application to be displayed, wherein the first link address is used for describing a storage path of the first static resource in a network, and the first static resource is used for realizing the display of the first network application to be displayed on a network interface; storing the first static resources into an interface display file, wherein the interface display file also comprises second static resources corresponding to a second network application to be displayed, and storing the static resources of the first network application to be displayed into the same file stream where the static resources of the second network application to be displayed are located, so that the two network applications can communicate with each other in the same file stream, and meanwhile, because the two network applications are independent resources, the script, style and element of the two network applications to be displayed can be isolated from each other; responding to a display request of a user for a network interface, and displaying the first network application to be displayed and the second network application to be displayed on the network interface according to the first static resource and the second static resource in the interface display file. By adopting the method, on the basis of not modifying the static resources of the network applications, the static resources of a plurality of network applications are put into the same file stream for network display, thereby being beneficial to reducing the labor cost of developers.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a network application display method according to a first embodiment of the present application;
fig. 2 is a schematic diagram showing a network application display effect according to a first embodiment of the present application;
FIG. 3 is a flow chart of a static resource request method according to a first embodiment of the present application;
FIG. 4 is a flow chart of a static resource storage method according to a first embodiment of the present application;
FIG. 5 is a flowchart of another method for displaying a web application according to a first embodiment of the present application;
fig. 6 is a schematic structural diagram of a network application display device according to a second embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to a third embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
Example 1
For the convenience of understanding the present application, the following describes the first embodiment of the present application in detail with reference to the flowchart of the first embodiment of the present application shown in fig. 1.
Referring to fig. 1, fig. 1 shows a flowchart of a network application display method according to a first embodiment of the present application, where the method includes steps S101 to S103:
s101: requesting a first static resource corresponding to a first network application to be displayed according to a first link address of the first network application to be displayed, wherein the first link address is used for describing a storage path of the first static resource in a network, and the first static resource is used for realizing display of the first network application to be displayed on a network interface.
Specifically, the web application is an application software that operates on the internet or an intranet using a web browser, and is an application program written in a web language (e.g., a programming language such as hypertext markup language HTML, javaScript, java) that needs to be run through the browser; the static resources refer to resources issued by using a static webpage development technology, and are mainly used for building a basic webpage, displaying the content of the webpage, laying out and beautifying the webpage, controlling the page elements and enabling the webpage to have a dynamic effect; that is, when the web application is presented on a web page, the presentation of the page needs to be controlled by static resources.
In order to ensure that each network application can be independently operated and independently displayed, each network application is provided with a static resource belonging to the network application, so that the current network application can be displayed on a page according to the static resource of the network application; in order to reduce occupation of internal storage space of a computer and facilitate sharing of data by other developers, before acquiring a first static resource of a first network application to be displayed, the first static resource is stored in a network cloud server, a storage path capable of being used for finding the storage position is generated according to the storage position of the first static resource in a network, and the storage path is converted into a link address for storage, so that the first static resource can be found by accessing the link address when the first static resource needs to be requested.
S102: and storing the first static resources into an interface display file, wherein the interface display file further comprises second static resources corresponding to the second network application to be displayed.
Specifically, when two applications are simultaneously displayed on an interface, the two applications are divided into two cases, wherein the first case is when two applications (a main application and a sub-application) are simultaneously displayed on a blank page, and the second case is that the sub-application is displayed in the interface of the main application which has been displayed:
in the first case, the interface display file does not include static resources of a sub application (corresponding to a first network application to be displayed) and a main application (corresponding to a second network application to be displayed), so that in order to enable the first network application to be displayed and the second network application to be displayed on a page at the same time, the first static resources and the second static resources need to be stored in the interface display file, so that static resources capable of displaying the first network application to be displayed and the second network application to be displayed on the interface exist in the interface display file.
In the second case, the interface display file includes the static resources of the main application (the second to-be-displayed resources of the second to-be-displayed network application), but there are no static resources of the sub-application (the first to-be-displayed resources of the first to-be-displayed network application), so that in order to display the first to-be-displayed network application in the second to-be-displayed network application, the first static resource storage value obtained in step S101 needs to be stored in the interface display file, so that there are static resources in the interface display file, which can realize displaying the first to-be-displayed network application in the second to-be-displayed network application.
S103: responding to a display request of a user for a network interface, and displaying the first network application to be displayed and the second network application to be displayed on the network interface according to the first static resource and the second static resource in the interface display file.
Specifically, referring to fig. 2, fig. 2 shows a schematic diagram of a web application display effect provided by the first embodiment of the present application, when a user needs to display a web application on an interface, the user may access the web interface of the browser or click on a page display plug-in of the browser, and according to a first static resource and a second static resource, a computer system displays the first web application to be displayed and the second web application to be displayed on the web interface according to settings (such as display element, color, layout, size, etc.) of display attributes and interaction attributes of the web application in the static resources.
In a possible implementation manner, referring to fig. 3, fig. 3 shows a flowchart of a static resource request method according to an embodiment of the present application, wherein the requesting 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 includes steps S301 to S305:
s301: and acquiring a first hypertext markup language file of the first network application to be displayed according to the first link address.
Specifically, a first hypertext markup language file of the first network application to be displayed is obtained according to the first link address, wherein the first hypertext markup language file comprises a first file address of a first file for describing display attributes of the first network application to be displayed and a second file address of a second file for describing interaction attributes of the first network application to be displayed.
The hypertext markup language HTML file is used for building a basic web page and displaying the content of the page, and meanwhile, the hypertext markup language file carries an address of a first file for describing display attributes of a first network application to be displayed (the display attributes are used for controlling page elements so that the page has dynamic effects), and an address of a second file for describing interaction attributes of the first network application to be displayed (the interaction attributes are used for providing interaction elements in an interface and performing page skip in response to operation of the interaction elements by a user).
S302: and analyzing the first hypertext markup language file to obtain a first file address of a first file for describing the display attribute of the first network application to be displayed and a second file address of a second file for describing the interaction attribute of the first network application to be displayed.
Specifically, after the first hypertext markup file is parsed, a first file address and a second file address can be obtained.
S303: and resolving the first file address to obtain the first file.
Specifically, the first file address is a storage path of the first file, where the storage path may point to a memory of the computer or point to a storage area of the cloud server, and when the file address is accessed, the first file may be acquired.
S304: and resolving the second file address to obtain the second file.
Specifically, when the second file address is accessed, the second file may be obtained according to the storage path of the second file.
S305: and storing the first hypertext markup language file, the first file and the second file as the first static resource.
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, where the storage location may be a computer memory or a cloud server.
In a possible implementation manner, referring to fig. 4, fig. 4 shows a flowchart of a static resource storage method according to an embodiment of the present application, where the storing the first static resource in an interface presentation file includes steps S401 to S402:
s401: and acquiring a first storage path of the interface display file in the computer system.
S402: and writing the first static resource into the interface display file according to the first storage path.
Specifically, when a file or data is written into a certain file of a computer, a storage path of the file in the computer system needs to be acquired, whether the storage path is an effective path is determined, when the storage path is the effective path, whether the interface display file has enough storage space to store the first static resource is judged, and when enough storage space exists, four hundred million static resources are written into the interface display file.
In a possible implementation manner, referring to fig. 5, fig. 5 shows a flowchart of another method for displaying a web application according to an embodiment of the present application, where the displaying the first web application to be displayed and the second web application to be displayed on the web interface according to the first static resource and the second static resource in the interface display file includes steps S501 to S503:
s501: and sending the first static resource and the second static resource to a browser.
Specifically, when the first network application to be displayed and the second network application to be displayed need to be displayed simultaneously, the first static resource corresponding to the first network application to be displayed and the second static resource corresponding to the second network application to be displayed need to be analyzed, so that the static resources need to be sent to a browser with an analysis engine at first.
S502: and starting a static resource analysis engine preset in the browser to analyze the first static resource and the second static resource.
Specifically, after the browser acquires the first static resource and the second static resource, a static resource analysis engine is started to analyze the first static resource and the second static resource so as to obtain a corresponding first network application to be displayed and a corresponding second network application to be displayed.
S503: and displaying the first network application to be displayed and the second network application to be displayed, which are obtained through analysis, on the network interface.
Specifically, after the analysis of the first static resource is completed, the first network application to be displayed can be displayed on the network interface according to the display attribute in the first static resource, and likewise, after the analysis of the second static resource is completed, the second network application to be displayed can be displayed on the network interface according to the display attribute in the second static resource, so that the effect that the first network application to be displayed and the second network application to be displayed are displayed on the network interface at the same time is achieved.
In one possible implementation, the first file is a JavaScript file of the first network application to be exposed, and the second file is a cascading style sheet file of the first network application to be exposed.
Specifically, the JavaScript file is a file taking JS as an extension, is a scripting language written by a JavaScript scripting language and used for developing a Web page, and is used for providing a presentation element for the page; while cascading style sheets (Cascading Style Sheet, CSS) files are a computer language used to represent file styles such as HTML (an application of standard universal markup language) or XML (a subset of standard universal markup language); the CSS not only can statically modify the webpage, but also can dynamically format each element of the webpage in cooperation with various scripting languages, that is, the CSS can accurately control the typesetting of the element positions in the webpage at the pixel level, supports almost all font size styles and has the capability of editing webpage objects and model styles; the web application can be displayed on the page under the cooperation of the JavaScript file, the cascading style sheet file and the hypertext markup language file.
When the above web application display method is implemented in a computer, HTML Entry (hypertext markup language built by a child application is used as an Entry) and Custom Web Component (Custom elements Custom Element and Custom Shadow Dow) (Custom Shadow Dow is a specification of HTML that allows a developer to package its own HTML tag, stack CSS style, and JavaScript code) are mainly used; the creation of custom tags in combination with custom Shadow Dom implements a Web Component native Component that can be accessed like a Web Component to enable users to embed sub-applications directly into a host application through browser plug-ins.
Example two
Referring to fig. 6, fig. 6 is a schematic structural diagram of a network application display device according to a second embodiment of the present application, where, as shown in fig. 6, the network application display device according to the second embodiment of the present application includes:
the static resource request module 601 is configured to request a first static resource corresponding to a first network application to be displayed according to a first link address of the first network application to be displayed, where the first link address is used to describe a storage path of the first static resource in a network, and the first static resource is used to implement display of the first network application to be displayed on a network interface.
The static resource storage module 602 is configured to store the first static resource into an interface presentation file, where the interface presentation file further includes a second static resource corresponding to a second network application to be presented.
The network application display module 603 is configured to respond to a display request of a user for a network interface, and display the first network application to be displayed and the second network application to be displayed on the network interface according to the first static resource and the second static resource in the interface display file.
In a possible implementation manner, the static resource request module is specifically configured to, when being configured to request, according to a first link address of a first network application to be exposed, a first static resource corresponding to the first network application to be exposed:
acquiring a first hypertext markup language file of the first network application to be displayed according to the first link address; analyzing the first hypertext markup language file to obtain a first file address of a first file for describing the display attribute of the first network application to be displayed and a second file address of a second file for describing the interaction attribute of the first network application to be displayed; resolving the first file address to obtain the first file; resolving the second file address to obtain the second file; and storing the first hypertext markup language file, the first file and the second file as the first static resource.
In a possible embodiment, the static resource storage module is specifically configured to, when configured to store the first static resource in an interface presentation file:
acquiring a first storage path of the interface display file in a computer system; and writing the first static resource into the interface display file according to the first storage path.
In a possible implementation manner, the network application display module is specifically configured to, when configured to display the first to-be-displayed network application and the second to-be-displayed network application on the network interface according to the first static resource and the second static resource in the interface display file at the same time:
transmitting the first static resource and the second static resource to a browser; enabling a static resource analysis engine preset in the browser to analyze the first static resource and the second static resource; and displaying the first network application to be displayed and the second network application to be displayed, which are obtained through analysis, on the network interface.
In one possible implementation, the first file is a JavaScript file of the first network application to be exposed, and the second file is a cascading style sheet file of the first network application to be exposed.
Example III
Based on the same application concept, referring to fig. 7, fig. 7 shows a schematic structural diagram of a computer device provided in a third embodiment of the present application, where, as shown in fig. 7, a computer device 700 provided in the third embodiment of the present application includes:
a processor 701, a memory 702 and a bus 703, said memory 702 storing machine readable instructions executable by said processor 701, said processor 701 and said memory 702 communicating via said bus 703 when said computer device 700 is run, said machine readable instructions being executed by said processor 701 to perform the steps of a network application presentation method as described in the above embodiment one.
Example IV
Based on the same application concept, the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of a network application display method in any one of the foregoing embodiments are executed.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
The computer program product for displaying a network application provided by the embodiment of the present application includes a computer readable storage medium storing program codes, where the instructions included in the program codes may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
The network application display device provided by the embodiment of the application can be specific hardware on equipment or software or firmware installed on the equipment. The device provided by the embodiment of the present application has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned. It will be clear to those skilled in the art that, for convenience and brevity, the specific operation of the system, apparatus and unit described above may refer to the corresponding process in the above method embodiment, which is not described in detail herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments provided in the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that: like reference numerals and letters in the following figures denote like items, and thus once an item is defined in one figure, no further definition or explanation of it is required in the following figures, and furthermore, the terms "first," "second," "third," etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the corresponding technical solutions. Are intended to be encompassed within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for displaying a web application, the method comprising:
requesting a first static resource corresponding to a first network application to be displayed according to a first link address of the first network application to be displayed, wherein the first link address is used for describing a storage path of the first static resource in a network, and the first static resource is used for realizing display of the first network application to be displayed on a network interface;
storing the first static resources into an interface display file, wherein the interface display file further comprises second static resources corresponding to a second network application to be displayed;
responding to a display request of a user for a network interface, and displaying the first network application to be displayed and the second network application to be displayed on the network interface according to the first static resource and the second static resource in the interface display file.
2. The method of claim 1, wherein requesting the first static resource corresponding to the first network application to be exposed according to the first link address of the first network application to be exposed comprises:
acquiring a first hypertext markup language file of the first network application to be displayed according to the first link address;
analyzing the first hypertext markup language file to obtain a first file address of a first file for describing the display attribute of the first network application to be displayed and a second file address of a second file for describing the interaction attribute of the first network application to be displayed;
resolving the first file address to obtain the first file;
resolving the second file address to obtain the second file;
and storing the first hypertext markup language file, the first file and the second file as the first static resource.
3. The method of claim 1, wherein storing the first static resource in an interface presentation file comprises:
acquiring a first storage path of the interface display file in a computer system;
and writing the first static resource into the interface display file according to the first storage path.
4. The method of claim 1, wherein the concurrently exposing the first web application to be exposed and the second web application to be exposed on the web interface according to the first static resource and the second static resource in the interface exposure file comprises:
transmitting the first static resource and the second static resource to a browser;
enabling a static resource analysis engine preset in the browser to analyze the first static resource and the second static resource;
and displaying the first network application to be displayed and the second network application to be displayed, which are obtained through analysis, on the network interface.
5. The method of claim 2, wherein the first file is a JavaScript file of the first web application to be exposed and the second file is a cascading style sheet file of the first web application to be exposed.
6. A web application presentation device, the device comprising:
the system comprises a static resource request module, a network interface module and a network interface module, wherein the static resource request module is used for requesting a first static resource corresponding to a first network application to be displayed according to a first link address of the first network application to be displayed, the first link address is used for describing a storage path of the first static resource in a network, and the first static resource is used for realizing the display of the first network application to be displayed on the network interface;
the static resource storage module is used for storing the first static resource into an interface display file, wherein the interface display file also comprises a second static resource corresponding to a second network application to be displayed;
and the network application display module is used for responding to a display request of a user on a network interface, and displaying the first network application to be displayed and the second network application to be displayed on the network interface according to the first static resource and the second static resource in the interface display file.
7. The apparatus of claim 6, wherein the static resource request module is configured to, when requesting the first static resource corresponding to the first network application to be exposed according to the first link address of the first network application to be exposed, specifically:
acquiring a first hypertext markup language file of the first network application to be displayed according to the first link address;
analyzing the first hypertext markup language file to obtain a first file address of a first file for describing the display attribute of the first network application to be displayed and a second file address of a second file for describing the interaction attribute of the first network application to be displayed;
resolving the first file address to obtain the first file;
resolving the second file address to obtain the second file;
and storing the first hypertext markup language file, the first file and the second file as the first static resource.
8. The apparatus of claim 6, wherein the static resource storage module, when configured to store the first static resource in an interface presentation file, is specifically configured to:
acquiring a first storage path of the interface display file in a computer system;
and writing the first static resource into the interface display file according to the first storage path.
9. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the network application presentation method of any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the network application presentation method according to any of claims 1 to 5.
CN202310651218.2A 2023-06-02 2023-06-02 Network application display method and device, computer equipment and storage medium Pending CN117194831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310651218.2A CN117194831A (en) 2023-06-02 2023-06-02 Network application display method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310651218.2A CN117194831A (en) 2023-06-02 2023-06-02 Network application display method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117194831A true CN117194831A (en) 2023-12-08

Family

ID=89000477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310651218.2A Pending CN117194831A (en) 2023-06-02 2023-06-02 Network application display method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117194831A (en)

Similar Documents

Publication Publication Date Title
US10726195B2 (en) Filtered stylesheets
US10289649B2 (en) Webpage advertisement interception method, device and browser
JP4344693B2 (en) System and method for browser document editing
JP4208081B2 (en) System, web server, method and program for adding personalized value to multiple websites
CN106294658B (en) Webpage quick display method and device
RU2459238C2 (en) Managed execution environment for software application interfacing
US8522132B2 (en) Widget behavior customization via cascaded style sheets
KR20150079867A (en) Html5-protocol-based webpage presentation method and device
US9749440B2 (en) Systems and methods for hosted application marketplaces
AU2020352890B2 (en) Dynamic typesetting
US20030084115A1 (en) Facilitating contextual help in a browser environment
WO2018160423A1 (en) Markup code generator
US20170031889A1 (en) Creating a communication editable in a browser independent of platform and operating system
US11604662B2 (en) System and method for accelerating modernization of user interfaces in a computing environment
CN112287255A (en) Page construction method and device, computing equipment and computer readable storage medium
CN117194831A (en) Network application display method and device, computer equipment and storage medium
US20210232408A1 (en) Simulated Visual Hierarchy While Facilitating Cross-Extension Communication
CN110020318B (en) Processing method of keywords and extended reading behaviors, browser and electronic equipment
TWI610183B (en) An operational system for centralized management base on ajax website
CN117540118A (en) Skeleton screen page generation method, device and equipment
CN113918852A (en) Webpage display method, device and equipment
CN113326456A (en) Webpage resource acquisition method, device, equipment, system and storage medium
CN113051502A (en) Webpage saving method, device, equipment and storage medium
KR100594800B1 (en) Service system for web
CN111949266A (en) Webpage generation method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination