CN113238753A - Page generation method and device - Google Patents

Page generation method and device Download PDF

Info

Publication number
CN113238753A
CN113238753A CN202110608527.2A CN202110608527A CN113238753A CN 113238753 A CN113238753 A CN 113238753A CN 202110608527 A CN202110608527 A CN 202110608527A CN 113238753 A CN113238753 A CN 113238753A
Authority
CN
China
Prior art keywords
access
module
resource
page
access request
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
CN202110608527.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.)
Beijing Jingdong Tuoxian Technology Co Ltd
Original Assignee
Beijing Jingdong Tuoxian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Tuoxian Technology Co Ltd filed Critical Beijing Jingdong Tuoxian Technology Co Ltd
Priority to CN202110608527.2A priority Critical patent/CN113238753A/en
Publication of CN113238753A publication Critical patent/CN113238753A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The embodiment of the application provides a page generation method and a page generation device, wherein the method comprises the following steps: acquiring an input address of an access request sent by terminal equipment; determining at least one access object of the access request according to the input address of the access request; and loading module resources corresponding to at least one access object, and generating a target access page, wherein the access request comprises inquiry information of a user for a target hospital, and the target access interface is used for displaying an inquiry result corresponding to the inquiry information. By the method, the access object is determined based on the access request, and the module resource corresponding to the access object is loaded to realize different module functions, so that the different module functions can be developed independently, and the development speed of the access page is improved.

Description

Page generation method and device
Technical Field
The invention relates to the technical field of computers, in particular to a page generation method and device.
Background
With the popularization of information technology, access objects such as hospitals and the like are generally provided with access interfaces for users to browse and access. The access interfaces of different access objects are usually provided with different project modules, so as to realize different functions. Taking a hospital as an example, the access interface can comprise a registration module, a prescription module, a medical record module and the like.
In the related art, the background management systems of different access objects can independently set respective front-end items. However, since the projects between different access objects are not related, the projects of different access objects need to be developed and deployed separately.
In order to improve reusability, some background management systems accessing objects can also share one front-end item. However, when the number of the items accessing the object is too large, the code coupling degree between the items is high, the number of conflicts is large, and the development speed of accessing the page is slow.
Disclosure of Invention
The embodiment of the application provides a page generation method and device, and aims to solve the technical problem that in the prior art, when the number of items of an access object is too large, the development speed of the access page is low.
In a first aspect, an embodiment of the present application provides a page generation method, where the method includes:
acquiring an input address of an access request sent by terminal equipment;
determining at least one access object of the access request according to the input address of the access request;
loading module resources corresponding to the at least one access object, and generating a target access page;
the access request comprises inquiry information of a user aiming at a target hospital, and the target access interface is used for displaying an inquiry result corresponding to the inquiry information.
In an optional implementation manner, an input address of the access request includes page jump information; the determining at least one access object of the access request according to the input address of the access request comprises:
and determining at least one access object of the access request according to the page jump information.
In an optional implementation manner, before the loading the module resource corresponding to the at least one access object and generating the target access page, the method further includes:
acquiring a resource address of the at least one access object;
and acquiring the module resource corresponding to the at least one access object according to the resource address of the at least one access object.
In an optional implementation manner, the access request further includes first indication information, where the first indication information is used to indicate a loading environment of the module resource of the at least one access object.
In an optional implementation manner, the loading environment of the module resource includes a first loading environment and a second loading environment, the first loading environment is a loader, and the second loading environment is a virtual execution environment.
In an optional implementation manner, if the first indication information indicates the first loading environment, the loading the module resource corresponding to the at least one access object and generating a target access page includes:
and inserting the module resource corresponding to the at least one access object into the target access page in the loader in the form of a tag.
In an optional implementation manner, the module resource corresponding to the at least one access object is a cascading style sheet resource.
In an optional implementation manner, if the first indication information indicates the second loading environment, the loading the module resource corresponding to the at least one access object and generating a target access page includes:
initializing the virtual execution environment;
and loading module resources corresponding to the at least one access object in the virtual execution environment.
In an optional embodiment, the module resource corresponding to the at least one access object is a script language resource.
In an optional implementation manner, after the generating the target access page, the method further includes:
receiving an updating indication of state data of a first module resource sent by terminal equipment;
updating the state data of the first module resource in a state pool, and synchronizing the updated state data of the first module resource to an observer pool;
controlling the observer pool to send the state data of the first module resource to the loader and module resources subscribed to the observer pool.
In an alternative embodiment, the status pool is used to update status data of the loader and the module resource, and the observer pool is used to synchronize the status data between the loader and the module resource.
In a second aspect, an embodiment of the present application provides a page generating apparatus, where the apparatus includes:
the acquisition module is used for acquiring an input address of an access request sent by the terminal equipment;
the processing module is used for determining at least one access object of the access request according to the input address of the access request; loading module resources corresponding to the at least one access object, and generating a target access page;
the access request comprises inquiry information of a user aiming at a target hospital, and the target access interface is used for displaying an inquiry result corresponding to the inquiry information.
In an optional implementation manner, an input address of the access request includes page jump information; the processing module is specifically configured to determine at least one access object of the access request according to the page jump information.
In an optional embodiment, the obtaining module is further configured to obtain a resource address of the at least one access object; and acquiring the module resource corresponding to the at least one access object according to the resource address of the at least one access object.
In an optional implementation manner, the access request further includes first indication information, where the first indication information is used to indicate a loading environment of the module resource of the at least one access object.
In an optional implementation manner, the loading environment of the module resource includes a first loading environment and a second loading environment, the first loading environment is a loader, and the second loading environment is a virtual execution environment.
In an optional implementation manner, if the first indication information indicates the first loading environment, the processing module is specifically configured to insert, in the loader, a module resource corresponding to the at least one access object into the target access page in a form of a tag.
In an optional implementation manner, the module resource corresponding to the at least one access object is a cascading style sheet resource.
In an optional implementation manner, if the first indication information indicates the second loading environment, the processing module is specifically configured to initialize the virtual execution environment; and loading module resources corresponding to the at least one access object in the virtual execution environment.
In an optional embodiment, the module resource corresponding to the at least one access object is a script language resource.
In an optional implementation manner, the processing module is further configured to receive an update indication of status data of a first module resource, where the update indication is sent by a terminal device; updating the state data of the first module resource in a state pool, and synchronizing the updated state data of the first module resource to an observer pool; controlling the observer pool to send the state data of the first module resource to the loader and module resources subscribed to the observer pool.
In an alternative embodiment, the status pool is used to update status data of the loader and the module resource, and the observer pool is used to synchronize the status data between the loader and the module resource.
In a third aspect, the present application also provides a computer program product comprising a computer program that, when executed by a processor, performs the method of any of the first aspects.
In a fourth aspect, the present application further provides an electronic device, including:
a processor; and
a memory for storing a computer program for the processor;
wherein the processor is configured to implement any one of the possible methods of the first aspect by executing the computer program.
In a fifth aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program of instructions for implementing any one of the possible methods of the first aspect when executed by a processor.
According to the page generation method and device provided by the embodiment of the application, the input address of the access request sent by the terminal equipment is obtained at first. Subsequently, at least one access object of the access request is determined according to the input address of the access request. And finally, loading the module resource corresponding to at least one access object to generate a target access page. By the method, the access object is determined based on the access request, and the module resource corresponding to the access object is loaded to realize different module functions, so that the different module functions can be developed independently, and the development speed of the module functions is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the following briefly introduces the drawings needed to be used in the description of the embodiments or the prior art, and obviously, the drawings in the following description are some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without inventive labor.
Fig. 1 is a schematic view of an application scenario of a page generation method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a page generation method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a page generation method according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating data interaction between module resources according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another page generation method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another page generation method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a surface generating apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the related art, the background management systems of different access objects can independently set respective front-end items. However, since the projects between different access objects are not related, the projects of different access objects need to be developed and deployed separately. In order to improve reusability, some background management systems accessing objects can also share one front-end item. However, when the number of the items accessing the object is too large, the code coupling degree between the items is high, the number of conflicts is large, and the development speed of accessing the page is slow.
In order to solve the above problem, embodiments of the present application provide a page generation method and apparatus, an access object is determined based on an access request, and then a module resource corresponding to the access object is loaded to generate an access page, so as to implement different module functions, so that different module functions can be developed separately, and the development speed of the access page is increased.
An application scenario of the page generation method according to the present application will be described below.
Fig. 1 is a schematic view of an application scenario of a page generation method according to an embodiment of the present application. As shown in fig. 1, the page generation system includes a terminal device 101 and a server 102, and the terminal device 101 and the server 102 can communicate with each other via a network. When a user needs to access a certain access object, an access request can be sent to the server 102 through the terminal device 101, the server 102 determines a target access object of the user based on an input address of the access request, and loads a corresponding module resource of the target access object to generate a target access page.
It should be understood that the access object related to the embodiment of the present application may be a background management system of a certain organization, and may also be a certain functional module of a certain background management system, which is not limited in the embodiment of the present application.
The terminal device 101 may be a mobile phone (mobile phone), a tablet (pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self driving), a wireless terminal in remote surgery (remote medical supply), a wireless terminal in smart grid (smart grid), a wireless terminal in smart home (smart home), and the like. In the embodiment of the present application, the apparatus for implementing the function of the terminal may be the terminal, or may be an apparatus capable of supporting the terminal to implement the function, such as a chip system, and the apparatus may be installed in the terminal. In the embodiment of the present application, the chip system may be composed of a chip, and may also include a chip and other discrete devices.
Server 102 may be, but is not limited to, a single web server, a server farm of multiple web servers, or a cloud of numerous computers or web servers based on cloud computing. Cloud computing is a kind of distributed computing, and is a super virtual computer composed of a group of loosely coupled computers.
It should be understood that the application scenario shown in fig. 1 provided in the technical solution of the present application may be applied to the background management systems of multiple hospitals, and may also be applied to the background management systems of multiple schools, but is not limited thereto, and the embodiment of the present application does not limit this.
It can be understood that the above-mentioned page generating method can be implemented by the page generating apparatus provided in the embodiment of the present application, and the page generating apparatus may be part or all of a certain device, for example, a server or a chip of the server.
The following takes a server integrated or installed with relevant execution codes as an example, and details the technical solution of the embodiment of the present application with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a schematic flowchart of a page generation method provided in an embodiment of the present application, and fig. 3 is a schematic diagram of a principle of the page generation method provided in the embodiment of the present application, which relates to a process how a server generates a target access page based on an access request. As shown in fig. 2 and 3, the method includes:
s201, acquiring an input address of an access request sent by the terminal equipment.
In the application, when a user needs to access a certain access object, an access request can be sent to the server through the terminal device, and the input address of the user can be extracted from the access request after the server receives the access request.
It should be understood that the input address related to the embodiment of the present application may be an address of a target access object input by a user. The embodiment of the application does not limit how the server acquires the input address from the access request, and a common address acquisition mode can be adopted.
The access object related to the embodiment of the present application may be a background management system of a certain organization, or may be a certain functional module of a certain background management system, which is not limited in the embodiment of the present application.
S202, determining at least one access object of the access request according to the input address of the access request.
In this step, after the server obtains the input address of the access request sent by the terminal device, at least one access object of the access request may be determined according to the access address.
The user can access one access object of one background management system, and can also access a plurality of access objects of the same background management system at the same time. For example, if a user accesses a background management system of a certain hospital, only the registration item of the background management system may be accessed, or the registration item and the prescription item of the background management system may be accessed at the same time.
The embodiment of the application does not limit how the server determines the at least one access object of the access request. In some embodiments, the server may parse out the at least one access object directly from the input address of the access request. In other embodiments, the input address of the access request includes page jump information, and the server may determine at least one access object of the access request according to the page jump information.
Illustratively, the page jump information may include indication information such as a hash value (hash), a forward (forward), a backward (back), a go (go), a refresh (replace State), and the server may determine at least one access object of the access request by monitoring the indication information.
S203, loading module resources corresponding to at least one access object, and generating a target access page.
The access request comprises inquiry information of a user aiming at a target hospital, and the target access interface is used for displaying an inquiry result corresponding to the inquiry information.
In this step, after the server determines at least one access object of the access request, module resources corresponding to the at least one access object may be loaded to generate a target access page.
It should be understood that the module resource related to the embodiment of the present application may be split, by a project code management tool (gitlab), each functional module of the background management system into a distributed version control system (git) library in units of projects, so as to form a corresponding module resource. Through the method, each module resource is independently constructed, so that coupling and conflict are reduced, the multi-user cooperation efficiency is improved, and the generation speed of the access page is increased.
In addition, the output of the scripting language (JavaScript, js) of the module resource can be umd (a js specification), so that the module resource is compatible with the operation of each browser.
It should be understood that, the embodiment of the present application is not limited to how to determine the module resource corresponding to the at least one access object. In some embodiments, before loading the module resource corresponding to the at least one access object, the server may first obtain the resource address of the at least one access object, and then obtain the module resource corresponding to the at least one access object according to the resource address of the at least one access object.
In some embodiments, the server may obtain the resource address of the at least one access object in an analytic manner. Illustratively, the server may analyze the corresponding resource by using a method import in an import-html-entry library, and obtain a resource address of at least one access object.
It should be noted that, in the embodiment of the present application, for different loading environments, the server may select different resource addresses, so as to obtain different module resources.
The following describes different loading modes of module resources according to different indication information.
In some embodiments, the access request further includes first indication information indicating a loading environment of the module resource of the at least one access object. The loading environment of the module resource includes a first loading environment and a second loading environment, the first loading environment is a loader, and the second loading environment is a virtual execution environment (also called a sandbox environment).
Accordingly, if the first indication information indicates the first loading environment, the server may select a style resource address in a parsed hypertext Markup Language (HTML). Subsequently, the server acquires Cascading Style Sheets (CSS) character string resources based on the Style resource address. Finally, the server may insert the CSS string resource corresponding to the at least one access object in the form of a tag into the target access page in the loader.
Accordingly, if the first indication information indicates the second loading environment, the server may select a js resource address in the parsed HTML. Then, the server acquires the js resource based on the js resource address. Then, the server initializes the virtual execution environment, and loads the module resource corresponding to the at least one access object in the virtual execution environment.
It should be noted that, in the embodiment of the present application, there is no limitation on how the server initializes the virtual execution environment and loads the resource module in the virtual execution environment. For example, the server may wrap a js resource corresponding to at least one access object into an immediate execution function, and change a window environment of the immediate execution function through a parameter, thereby becoming a virtual execution environment. During initialization, the server may replicate the window generation mirroring agent and generate a corresponding new Map () object for the resource module. When modifying the window data, modifications to the new Map () object can be intercepted and implemented, thereby preventing window global contamination.
In some embodiments, after the server generates the target access page, the server receives an update indication of the status data of the first module resource sent by the terminal device. Then, the server updates the state data of the first module resource in the state pool, and synchronizes the updated state data of the first module resource to the observer pool. Finally, the watcher pool is controlled to send the state data of the first module resource to the loader and module resources of the subscription watcher pool.
The state pool is used to update the state data of the loader and module resources, and the observer pool is used to synchronize the state data between the loader and module resources.
Fig. 4 is a schematic diagram illustrating data interaction between module resources according to an embodiment of the present application. As shown in fig. 4, the loader or each resource module may synchronize state data to the state pool by publishing a subscription schema. And after the state data depending on the subscription in each resource module is changed, synchronizing the state data into the state pool through the corresponding callback function. Subsequently, when the watcher pool determines that the state data on which the loader or each resource module depends has changed, a publish operation may be performed to synchronize the changed state data to the loader and module resources subscribing to the watcher pool.
In the application, each functional module is split into module resources, so that the development speed is improved, the degree of coupling is reduced, and the reusability of the reuse codes is improved. Also, each module resource may use a different technology stack. When incremental technology updating is carried out on a certain module resource, other module resources are not affected, and each module resource can be independently developed and deployed. Therefore, the page generation method provided by the embodiment of the application reduces the problem of slow construction speed of the access page caused by excessive projects, and avoids iteration blockage caused by code conflict and version dependence.
The page generation method provided by the embodiment of the application firstly obtains an input address of an access request sent by a terminal device. Subsequently, at least one access object of the access request is determined according to the input address of the access request. And finally, loading the module resource corresponding to at least one access object to generate a target access page. By the method, the access object is determined based on the access request, and the module resource corresponding to the access object is loaded to realize different module functions, so that the different module functions can be developed independently, and the development speed of the module functions is improved.
On the basis of the above embodiments, how to perform data interaction between resource modules is described below. Fig. 5 is a schematic flowchart of another page generation method provided in the embodiment of the present application, and as shown in fig. 5, the method includes:
s301, an input address of an access request sent by the terminal equipment is obtained.
S302, determining at least one access object of the access request according to the input address of the access request.
S303, loading module resources corresponding to at least one access object, and generating a target access page.
The access request comprises inquiry information of a user aiming at a target hospital, and the target access interface is used for displaying an inquiry result corresponding to the inquiry information.
S304, receiving an updating indication of the state data of the first module resource sent by the terminal equipment.
S305, updating the state data of the first module resource in the state pool, and synchronizing the updated state data of the first module resource to the observer pool.
S306, controlling the observer pool to send the state data of the first module resource to the loader and the module resource of the subscription observer pool.
The state pool is used to update the state data of the loader and module resources, and the observer pool is used to synchronize the state data between the loader and module resources.
The technical terms, technical effects, technical features and alternative embodiments of S301 to S306 can be understood by referring to S201 to S203 shown in fig. 2, and repeated descriptions will not be repeated here.
On the basis of the above embodiment, how the server loads the module resource corresponding to the access object is described below. Fig. 6 is a schematic flowchart of another page generation method provided in the embodiment of the present application, and as shown in fig. 6, the method includes:
s401, acquiring an input address of an access request sent by terminal equipment;
s402, determining at least one access object of the access request according to the input address of the access request;
s403, determining whether the first indication information indicates the first loading environment.
If yes, go to S404, otherwise go to S405.
S404, inserting the module resource corresponding to at least one access object into the target access page in the form of a tag in the loader.
S405, initializing the virtual execution environment.
S406, loading module resources corresponding to at least one access object in the virtual execution environment.
The technical terms, technical effects, technical features, and alternative embodiments of S401 to S406 can be understood with reference to S201 to S203 shown in fig. 2, and repeated descriptions thereof will not be repeated here.
The page generation method provided by the embodiment of the application firstly obtains an input address of an access request sent by a terminal device. Subsequently, at least one access object of the access request is determined according to the input address of the access request. And finally, loading the module resource corresponding to at least one access object to generate a target access page. By the method, the access object is determined based on the access request, and the module resource corresponding to the access object is loaded to realize different module functions, so that the different module functions can be developed independently, and the development speed of the module functions is improved.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Fig. 7 is a schematic structural diagram of a page generation apparatus according to an embodiment of the present application. The page generating apparatus may be implemented by software, hardware or a combination of the two, and may be, for example, a server or a chip of the server in the foregoing embodiment, to execute the page generating method in the foregoing embodiment. As shown in fig. 7, the page generating apparatus 500 includes:
an obtaining module 501, configured to obtain an input address of an access request sent by a terminal device.
A processing module 502, configured to determine at least one access object of the access request according to the input address of the access request; and loading the module resource corresponding to the at least one access object to generate a target access page.
The access request comprises inquiry information of a user aiming at a target hospital, and the target access interface is used for displaying an inquiry result corresponding to the inquiry information.
In an optional implementation manner, an input address of the access request includes page jump information; the processing module 502 is specifically configured to determine at least one access object of the access request according to the page jump information.
In an optional embodiment, the obtaining module 501 is further configured to obtain a resource address of at least one access object; and acquiring the module resource corresponding to the at least one access object according to the resource address of the at least one access object.
In an optional implementation manner, the access request further includes first indication information, where the first indication information is used to indicate a loading environment of the module resource of the at least one access object.
In an alternative embodiment, the loading environment of the module resource includes a first loading environment and a second loading environment, the first loading environment is a loader, and the second loading environment is a virtual execution environment.
In an optional implementation manner, if the first indication information indicates the first loading environment, the processing module 502 is specifically configured to insert, in the loader, a module resource corresponding to the at least one access object into the target access page in a form of a tag.
In an optional implementation manner, the module resource corresponding to at least one access object is a cascading style sheet resource.
In an alternative embodiment, if the first indication information indicates the second loading environment, the processing module 502 is specifically configured to initialize the virtual execution environment; and loading module resources corresponding to at least one access object in the virtual execution environment.
In an optional embodiment, the module resource corresponding to at least one access object is a script language resource.
In an optional implementation manner, the processing module 502 is further configured to receive an update indication of status data of a first module resource sent by the terminal device; updating the state data of the first module resource in the state pool, and synchronizing the updated state data of the first module resource to the observer pool; the watcher pool is controlled to send the state data of the first module resource to the loader and module resources of the subscription watcher pool.
In an alternative embodiment, a status pool is used to update the status data of the loader and module resources and a watcher pool is used to synchronize the status data between the loader and module resources.
It should be noted that the page generating apparatus provided in the embodiment shown in fig. 7 may be configured to execute the method provided in any of the above embodiments, and the specific implementation manner and the technical effect are similar, and are not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 8, the electronic device may include: at least one processor 601 and memory 602. Fig. 8 shows an electronic device as an example of a processor.
A memory 602 for storing programs. In particular, the program may include program code including computer operating instructions.
The memory 602 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 601 is used for executing computer execution instructions stored in the memory 602 to implement the page generation method;
the processor 601 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement the embodiments of the present Application.
Alternatively, in a specific implementation, if the communication interface, the memory 602 and the processor 601 are implemented independently, the communication interface, the memory 602 and the processor 601 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. Buses may be classified as address buses, data buses, control buses, etc., but do not represent only one bus or type of bus.
Alternatively, in a specific implementation, if the communication interface, the memory 602 and the processor 601 are integrated into a chip, the communication interface, the memory 602 and the processor 601 may complete communication through an internal interface.
The embodiment of the application also provides a chip which comprises a processor and an interface. Wherein the interface is used for inputting and outputting data or instructions processed by the processor. The processor is configured to perform the methods provided in the above method embodiments. The chip can be applied to a page generation device.
The present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, are specifically, the computer-readable storage medium stores program information, and the program information is used in the page generating method.
Embodiments of the present application further provide a program, which when executed by a processor, is configured to perform the page generating method provided in the above method embodiments.
Embodiments of the present application further provide a program product, for example, a computer-readable storage medium, where instructions are stored in the program product, and when the program product runs on a computer, the program product causes the computer to execute the page generation method provided in the foregoing method embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (15)

1. A page generation method, characterized in that the method comprises:
acquiring an input address of an access request sent by terminal equipment;
determining at least one access object of the access request according to the input address of the access request;
loading module resources corresponding to the at least one access object, and generating a target access page;
the access request comprises inquiry information of a user aiming at a target hospital, and the target access interface is used for displaying an inquiry result corresponding to the inquiry information.
2. The method of claim 1, wherein the input address of the access request contains page jump information; the determining at least one access object of the access request according to the input address of the access request comprises:
and determining at least one access object of the access request according to the page jump information.
3. The method according to claim 1, wherein before the loading of the module resource corresponding to the at least one access object and the generation of the target access page, the method further comprises:
acquiring a resource address of the at least one access object;
and acquiring the module resource corresponding to the at least one access object according to the resource address of the at least one access object.
4. The method according to claim 1, wherein the access request further includes first indication information indicating a loading environment of the module resource of the at least one access object.
5. The method of claim 4, wherein the loading environment of the module resource comprises a first loading environment and a second loading environment, wherein the first loading environment is a loader and the second loading environment is a virtual execution environment.
6. The method according to claim 5, wherein if the first indication information indicates the first loading environment, the loading module resources corresponding to the at least one access object and generating a target access page includes:
and inserting the module resource corresponding to the at least one access object into the target access page in the loader in the form of a tag.
7. The method according to claim 6, wherein the module resource corresponding to the at least one access object is a cascading style sheet resource.
8. The method according to claim 5, wherein if the first indication information indicates the second loading environment, the loading module resources corresponding to the at least one access object and generating a target access page includes:
initializing the virtual execution environment;
and loading module resources corresponding to the at least one access object in the virtual execution environment.
9. The method of claim 8, wherein the module resource corresponding to the at least one access object is a scripting language resource.
10. The method of claim 1, wherein after the generating the target access page, the method further comprises:
receiving an updating indication of state data of a first module resource sent by terminal equipment;
updating the state data of the first module resource in a state pool, and synchronizing the updated state data of the first module resource to an observer pool;
controlling the observer pool to send the state data of the first module resource to the loader and module resources subscribed to the observer pool.
11. The method of claim 10, wherein the status pool is used to update status data of the loader and the module resource, and wherein the watcher pool is used to synchronize the status data between the loader and the module resource.
12. A page generating apparatus, comprising:
the acquisition module is used for acquiring an input address of an access request sent by the terminal equipment;
the processing module is used for determining at least one access object of the access request according to the input address of the access request; loading module resources corresponding to the at least one access object, and generating a target access page;
the access request comprises inquiry information of a user aiming at a target hospital, and the target access interface is used for displaying an inquiry result corresponding to the inquiry information.
13. A computer program product comprising a computer program, characterized in that the computer program realizes the method of any of claims 1-11 when executed by a processor.
14. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any of claims 1-11.
15. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method according to any of claims 1-11.
CN202110608527.2A 2021-06-01 2021-06-01 Page generation method and device Pending CN113238753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110608527.2A CN113238753A (en) 2021-06-01 2021-06-01 Page generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110608527.2A CN113238753A (en) 2021-06-01 2021-06-01 Page generation method and device

Publications (1)

Publication Number Publication Date
CN113238753A true CN113238753A (en) 2021-08-10

Family

ID=77136082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110608527.2A Pending CN113238753A (en) 2021-06-01 2021-06-01 Page generation method and device

Country Status (1)

Country Link
CN (1) CN113238753A (en)

Similar Documents

Publication Publication Date Title
CN110597595B (en) Method for providing multi-language information, method for configuring multi-language information, device, equipment and medium
CN106415494B (en) Enhanced updating of digital content
US20190102201A1 (en) Component invoking method and apparatus, and component data processing method and apparatus
US8856365B2 (en) Computer-implemented method, computer system and computer readable medium
CN109144619B (en) Icon font information processing method, device and system
CN108776587B (en) Data acquisition method and device, computer equipment and storage medium
CN106462442B (en) System and method for loading virtual machine
CN111756779B (en) Data serialization processing method, device and computer system
CN104268229A (en) Resource obtaining method and device based on multi-process browser
CN111125057A (en) Service request processing method and device and computer system
CN111818145A (en) File transmission method, device, system, equipment and storage medium
CN110888972A (en) Sensitive content identification method and device based on Spark Streaming
CN113127430B (en) Mirror image information processing method, mirror image information processing device, computer readable medium and electronic equipment
CN112948018A (en) Dynamic library loading method, device, equipment and medium for small program
CN111125257B (en) Dictionary updating method, device, equipment and storage medium
CN112433780A (en) Client plug-in method and device, electronic equipment and storage medium
CN108667902B (en) Remote control system, method, device and equipment of iOS equipment
CN113238753A (en) Page generation method and device
CN114186156A (en) Access method, device, medium and equipment for sub-application
CN113805854A (en) Method, system and device for realizing Hook of application layer based on Linux system and storage medium
CN117112500B (en) Resource management method, device, equipment and storage medium
CN105808550B (en) A kind of method and device accessing file
CN114860350B (en) Data processing method and device based on cloud diskless tree-like mirror image
KR102466247B1 (en) Device and method for management container for using agent in orchestrator
CN113760356B (en) Differential configuration method, device, equipment and medium of program product

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