CN114138276A - Page compiling method and device, electronic equipment and storage medium - Google Patents

Page compiling method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114138276A
CN114138276A CN202111370786.2A CN202111370786A CN114138276A CN 114138276 A CN114138276 A CN 114138276A CN 202111370786 A CN202111370786 A CN 202111370786A CN 114138276 A CN114138276 A CN 114138276A
Authority
CN
China
Prior art keywords
compiling
routing file
file
preset
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111370786.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.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou 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 Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202111370786.2A priority Critical patent/CN114138276A/en
Publication of CN114138276A publication Critical patent/CN114138276A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a page compiling method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving a compiling instruction input by a user; and if the compiling instruction contains on-demand configuration information, determining a target routing file based on the on-demand configuration information, and compiling the page according to the target routing file. According to the technical scheme, whether the compiling instruction contains the on-demand configuration information is judged, if the compiling instruction contains the on-demand configuration information, the target routing file is determined based on the on-demand configuration information, page compiling is carried out according to the target routing file, page on-demand compiling is achieved, the situation that time spent on whole page compiling in the prior art is avoided, and page compiling efficiency is improved.

Description

Page compiling method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of webpage generation, in particular to a page compiling method and device, electronic equipment and a storage medium.
Background
With the development of internet technology and the continuous maturity of web applications, development projects are increasingly huge and often require developers to modify.
In the project building and compiling process, the prior art can only carry out integral building, namely, route files in the project are integrally compiled, a large amount of time is consumed, and the page compiling efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a page compiling method and device, electronic equipment and a storage medium, and aims to improve page compiling efficiency.
In a first aspect, an embodiment of the present invention provides a page compiling method, including:
receiving a compiling instruction input by a user;
and if the compiling instruction contains on-demand configuration information, determining a target routing file based on the on-demand configuration information, and compiling the page according to the target routing file.
In a second aspect, an embodiment of the present invention further provides a page compiling apparatus, including:
the instruction receiving module is used for receiving a compiling instruction input by a user;
and the on-demand configuration module is used for determining a target routing file based on the on-demand configuration information if the compiling instruction contains on-demand configuration information, and compiling a page according to the target routing file.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the page compilation method in any embodiment of the invention.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the page compilation method described in any one of the embodiments of the present invention.
The invention receives the compiling instruction input by the user; and if the compiling instruction contains on-demand configuration information, determining a target routing file based on the on-demand configuration information, and compiling the page according to the target routing file. According to the technical scheme, whether the compiling instruction contains the on-demand configuration information is judged, if the compiling instruction contains the on-demand configuration information, the target routing file is determined based on the on-demand configuration information, and the page compiling is carried out according to the target routing file, so that the page compiling on demand is realized, the condition that the time spent on the whole page compiling in the past is avoided, and the page compiling efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a flowchart illustrating a page compiling method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a page compiling method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a page compiling apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a page compiling method according to an embodiment of the present invention, where this embodiment is applicable to a situation where a page is compiled as needed in a project building process, and the method may be executed by a page compiling apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and the apparatus may be configured on an electronic computing device, for example, a terminal and/or a server. The method specifically comprises the following steps:
and S110, receiving a compiling instruction input by a user.
The compiling instruction may be an instruction for compiling a page input by a user according to an actual compiling requirement, the user may be a project developer, and the device for receiving the compiling instruction input by the user may be a computer of the project developer or a server located in a computer room, which is not limited in this embodiment. In some alternative embodiments, the compiled instructions may include, but are not limited to: a compiled instruction of a routing page associated with the single page. It can be understood that when the compiling instruction is a compiling instruction of a routing page associated with a single page, partial compiling of the single page can be realized without starting a non-associated routing page, and the page compiling efficiency is improved.
For example, a project developer may use a command line tool to input a compiling instruction, which may include the routing information to be constructed, i.e., the on-demand configuration information. Optionally, the compiling instruction is configured in a preset file to obtain a configuration file containing the routing information. In the embodiment of the invention, the compiling instruction is configured in the preset file, so that the transmission of the routing information can be facilitated, and in the subsequent judgment of the compiling instruction, the corresponding configuration information as required is only required to be searched in the configuration file, so that the searching range of the information is reduced, and the efficiency of page compiling is improved.
And S120, if the compiling instruction contains on-demand configuration information, determining a target routing file based on the on-demand configuration information, and compiling a page according to the target routing file.
The compiling instruction may include on-demand configuration information, and the on-demand configuration information may be understood as routing information that the user needs to construct. The target routing file may be used for page compilation, and the target routing file may include, but is not limited to, user access path information and load file path information. The user access path information is a path which can be read or accessed within the user authority range, and the loading file path information is a path which can be used by the user to load the page content file. In some embodiments, the target routing file may further include a routing name, by which a user may conveniently view and manipulate; in some embodiments, the target routing file may also include web page description information to facilitate user lookup and categorization of web pages.
Optionally, the on-demand configuration information may include, but is not limited to, a preset routing file name, preset path information, and a preset identifier. The preset routing file names are one or more routing file names which need to be compiled; presetting path information as a path address for storing a routing file; the preset identification may be an identification of a specific file. If the compiling instruction contains the on-demand configuration information, the target routing file can be determined based on one or more of the name of the preset routing file, the preset path information and the preset identification, and page compiling can be performed according to the target routing file, so that only the page corresponding to the target routing file can be compiled, that is, on-demand compiling is realized, integral compiling of all pages is avoided, and compiling time can be reduced.
In the embodiment of the present invention, if the compiling instruction does not include the on-demand configuration information, page compiling is performed according to all the routing files.
The embodiment of the invention provides a page compiling method, which comprises the steps of receiving a compiling instruction input by a user; and if the compiling instruction contains on-demand configuration information, determining a target routing file based on the on-demand configuration information, and compiling the page according to the target routing file. According to the technical scheme, whether the compiling instruction contains the on-demand configuration information is judged, if the compiling instruction contains the on-demand configuration information, the target routing file is determined based on the on-demand configuration information, and the page compiling is carried out according to the target routing file, so that the page compiling on demand is realized, the condition that the time spent on the whole page compiling in the past is avoided, and the page compiling efficiency is improved.
Example two
Fig. 2 is a flowchart illustration of a page compiling method according to a second embodiment of the present invention, and based on the above-mentioned embodiment, the "determining a target routing file based on the on-demand configuration information" is further detailed. The specific implementation manner of the method can be seen in the detailed description of the technical scheme. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein. As shown in fig. 2, the method of the embodiment of the present invention specifically includes the following steps:
and S210, receiving a compiling instruction input by a user.
S220, if the compiling instruction contains the on-demand configuration information, determining a target routing file based on a preset routing file name; or, determining a target routing file based on the preset path information; or, determining the target routing file based on the preset identification.
In the embodiment of the present invention, the first method for determining the target routing file includes: determining a target routing file according to one or more preset routing file names, and if the preset routing file names are one, determining the routing file corresponding to the preset routing file name as the target routing file; and if the preset routing file names are multiple, combining the routing files corresponding to the multiple preset routing file names to generate a target routing file.
On the basis of the foregoing embodiment, the determining a target routing file based on a preset routing file name includes: calling a routing file corresponding to each preset routing file name based on each preset routing file name; and combining the routing files to obtain a target routing file.
The preset routing file names correspond to the routing files one by one, the corresponding routing files can be called through the preset routing file names, and the path information in the routing files is combined to generate the target routing file.
On the basis of the above embodiment, the combining the routing files to obtain the target routing file includes: extracting path information in each routing file; and combining the path information in the routing files to obtain a target routing file.
The path information is information stored in the routing file, and may be used to render a page, and optionally, the path information includes user access path information and loading file path information. The user access path information is a path which can be read or accessed within the user authority range, and the loading file path information is a path which can be used by the user to load the page content file.
Specifically, the user access path information and the loading file path information in each routing file can be extracted, and combined, that is, the user access path information in each routing file is combined into new user access path information, and the new user access path information is configured to the new routing file; combining the loading file path information in each routing file into new loading file path information, and configuring the new loading file path information to a new routing file; and finally, taking the new routing file configured with the user access path information and the loading file path information as a target routing file.
Illustratively, the preset routing file name may include value [ 'logic', 'member' ], the corresponding routing file logic and member are called according to the routing file name logic and member, and the user access path information and the loading file path information in the routing file logic and member are combined to generate the target routing file including the user access path information and the loading file path information of logic and member.
On the basis of the foregoing embodiment, the determining a target routing file based on preset path information includes: matching a routing file corresponding to the preset path information based on each preset path information; and combining the routing files to obtain a target routing file.
Specifically, the second method for determining the target routing file includes: and automatically fuzzy matching corresponding routing files according to preset path information input by a user, extracting path information of one or more matched routing files, wherein the path information comprises but is not limited to user access path information and loading file path information, and combining the user access path information and the loading file path information in each routing file to generate a target routing file. It can be understood that, in the compiling instruction, the more detailed the preset path information input by the user is compiled, the faster the target routing file is generated.
For example, the preset path information may be configuration ═ type: 'path',// value [ '/user/region', 'member' ] }, and a routing file named member may be determined according to the value in the preset path information.
On the basis of the foregoing embodiment, the determining a target routing file based on a preset identifier includes: and if the on-demand configuration information comprises a preset identifier, determining the customized path file corresponding to the preset identifier as a target routing file.
And the preset identifier is a user-defined identifier. The third method for determining the target routing file comprises the following steps: if the on-demand configuration information is detected to include the preset identification, the customized path file corresponding to the preset identification is directly determined as the target routing file, the target routing file is generated, the retrieval combination of the first method and the second method is not needed, the customized path file is directly loaded, and the compiling speed is improved.
For example, the preset identifier may be config, routes ═ type: 'custom', that is, when custom is detected, file custom-routes, js under the custom root directory is used as the target routing file.
And S230, compiling pages according to the target routing file.
Specifically, in some optional embodiments of the present invention, the target routing file may be determined based on one or more of a preset routing file name, preset path information, and a preset identifier, that is, there is a case that the target routing file is generated according to different on-demand configuration information at the same time.
For example, in some optional embodiments, if the preset routing file name, the preset path information, and the preset identifier exist in the on-demand configuration information at the same time, the target routing file may be determined according to the preset identifier, and compared with the preset routing file name or the preset path information, matching and combining of the routing files may not be performed, and the generation time of the target routing file may be reduced. In some optional embodiments, if the preset routing file name and the preset path information exist in the on-demand configuration information at the same time, the selection may be performed according to the compiling requirement, and the target routing file is generated according to the preset routing file name or the preset path information. Illustratively, if the compiling requirement of the user is to perform page compiling on the route file required to be specified, selecting to generate a target route file according to a preset route file name, and realizing accurate compiling according to the target route file, so as to improve the accuracy of page compiling; if the compiling requirement of the user is that a certain part of routing files are needed to be subjected to page compiling and the number of the routing files is large, selecting to generate the target routing file according to the preset path information, and compared with the method of generating the target routing file by inputting the name of the preset routing file, the method avoids the situation that the names of the routing files are input one by one and the time is wasted, thereby reducing the configuration time of configuring information as required and improving the speed of page compiling. In some optional embodiments, the target routing file may also be confirmed according to the preset routing file name and the preset path information, so that the search information of the routing file is more detailed, and the speed and accuracy of confirming the target routing file may be improved.
The embodiment of the invention provides a page compiling method, which comprises the steps of receiving a compiling instruction input by a user; if the compiling instruction contains the configuration information as required, determining a target routing file based on a preset routing file name; or, determining a target routing file based on the preset path information; or determining a target routing file based on a preset identifier, and compiling a page according to the target routing file. According to the technical scheme, whether the compiling instruction contains the on-demand configuration information is judged, if the compiling instruction contains the on-demand configuration information, the target routing file is determined based on the on-demand configuration information, and the page compiling is carried out according to the target routing file, so that the page compiling on demand is realized, the condition that the time spent on the whole page compiling in the past is avoided, and the page compiling efficiency is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a page compiling device according to a third embodiment of the present invention, where the page compiling device provided in this embodiment may be implemented by software and/or hardware, and may be configured in a terminal and/or a server to implement the page compiling method according to the third embodiment of the present invention. The device may specifically include: an instruction receiving module 310 and an on-demand configuration module 320.
The instruction receiving module 310 is configured to receive a compiling instruction input by a user; an on-demand configuration module 320, configured to determine, if the compiling instruction includes on-demand configuration information, a target routing file based on the on-demand configuration information, and perform page compiling according to the target routing file.
The embodiment of the invention provides a page compiling device, which receives a compiling instruction input by a user; and if the compiling instruction contains on-demand configuration information, determining a target routing file based on the on-demand configuration information, and compiling the page according to the target routing file. According to the technical scheme, whether the compiling instruction contains the on-demand configuration information is judged, if the compiling instruction contains the on-demand configuration information, the target routing file is determined based on the on-demand configuration information, and the page compiling is carried out according to the target routing file, so that the page compiling on demand is realized, the condition that the time spent on the whole page compiling in the past is avoided, and the page compiling efficiency is improved.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the on-demand configuration module 320 includes:
a name determining unit for determining a target routing file based on a preset routing file name; alternatively, the first and second electrodes may be,
a path determining unit for determining a target routing file based on preset path information; alternatively, the first and second electrodes may be,
and the identification determining unit is used for determining the target routing file based on the preset identification.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the name determining unit includes:
the file calling subunit is used for calling the routing file corresponding to the preset routing file name based on each preset routing file name;
and the file combination subunit is used for combining the routing files to obtain a target routing file.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the file combining subunit is further specifically configured to:
extracting path information in each routing file;
and combining the path information in the routing files to obtain a target routing file.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the path information includes user access path information and loading file path information.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the path determining unit is specifically configured to:
matching a routing file corresponding to the preset path information based on each preset path information;
and combining the routing files to obtain a target routing file.
On the basis of any optional technical solution in the embodiment of the present invention, optionally, the identifier determining unit may be specifically configured to:
and if the on-demand configuration information comprises a preset identifier, determining the customized path file corresponding to the preset identifier as a target routing file.
The page compiling device provided by the embodiment of the invention can execute the page compiling method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the executing method.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 4 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 4, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 36 having a set (at least one) of program modules 26 may be stored, for example, in system memory 28, such program modules 26 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 26 generally perform the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 4, the network adapter 20 communicates with the other modules of the electronic device 12 via the bus 18. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing a page compiling method provided by the present embodiment.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute a page compilation method when executed by a computer processor, and the method includes:
receiving a compiling instruction input by a user;
and if the compiling instruction contains on-demand configuration information, determining a target routing file based on the on-demand configuration information, and compiling the page according to the target routing file.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for page compilation, comprising:
receiving a compiling instruction input by a user;
and if the compiling instruction contains on-demand configuration information, determining a target routing file based on the on-demand configuration information, and compiling the page according to the target routing file.
2. The method of claim 1, wherein determining a target routing file based on the on-demand configuration information comprises:
determining a target routing file based on a preset routing file name; alternatively, the first and second electrodes may be,
determining a target routing file based on the preset path information; alternatively, the first and second electrodes may be,
and determining a target routing file based on the preset identification.
3. The method of claim 2, wherein determining the target routing file based on the preset routing file name comprises:
calling a routing file corresponding to each preset routing file name based on each preset routing file name;
and combining the routing files to obtain a target routing file.
4. The method of claim 3, wherein combining the routing files to obtain a destination routing file comprises:
extracting path information in each routing file;
and combining the path information in the routing files to obtain a target routing file.
5. The method of claim 4, wherein the path information comprises user access path information and load file path information.
6. The method of claim 2, wherein determining the target routing file based on the predetermined path information comprises:
matching a routing file corresponding to the preset path information based on each preset path information;
and combining the routing files to obtain a target routing file.
7. The method of claim 2, wherein determining the target routing file based on the preset identifier comprises:
and if the on-demand configuration information comprises a preset identifier, determining the customized path file corresponding to the preset identifier as a target routing file.
8. A page compilation apparatus, comprising:
the instruction receiving module is used for receiving a compiling instruction input by a user;
and the on-demand configuration module is used for determining a target routing file based on the on-demand configuration information if the compiling instruction contains on-demand configuration information, and compiling a page according to the target routing file.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the page compilation method of any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the page compilation method of any one of claims 1-7 when executed by a computer processor.
CN202111370786.2A 2021-11-18 2021-11-18 Page compiling method and device, electronic equipment and storage medium Pending CN114138276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111370786.2A CN114138276A (en) 2021-11-18 2021-11-18 Page compiling method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111370786.2A CN114138276A (en) 2021-11-18 2021-11-18 Page compiling method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114138276A true CN114138276A (en) 2022-03-04

Family

ID=80390300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111370786.2A Pending CN114138276A (en) 2021-11-18 2021-11-18 Page compiling method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114138276A (en)

Similar Documents

Publication Publication Date Title
US11238099B2 (en) Method and device for obtaining answer, and computer device
CN111813804B (en) Data query method and device, electronic equipment and storage medium
CN110990411B (en) Data structure generation method and device, and calling method and device
CN110908707B (en) Resource packaging method, device, server and storage medium
CN110908697A (en) Resource packaging method, device, server and storage medium
CN113971037A (en) Application processing method and device, electronic equipment and storage medium
CN112905933A (en) Page jump method and device, electronic equipment and storage medium
CN113051514A (en) Element positioning method and device, electronic equipment and storage medium
CN113760839A (en) Log data compression processing method and device, electronic equipment and storage medium
CN112039975A (en) Method, device, equipment and storage medium for processing message field
CN109697234B (en) Multi-attribute information query method, device, server and medium for entity
CN114138276A (en) Page compiling method and device, electronic equipment and storage medium
CN112486413B (en) Data reading method, device, medium and computing equipment
CN113141407B (en) Page resource loading method and device and electronic equipment
CN111596997B (en) UI information request method, device, terminal and storage medium
CN107045549B (en) Method and device for acquiring page number of electronic book
CN111506380A (en) Rendering method, device, equipment and storage medium
CN109976765B (en) Application group deployment method, device, equipment and storage medium
CN113535660B (en) Android log storage method and device
CN115858183B (en) Inter-process joint analysis method, device and equipment for asynchronous parallel I/O request
US10606939B2 (en) Applying matching data transformation information based on a user's editing of data within a document
CN113760404A (en) Page rollback method, device, equipment and storage medium
CN114385142A (en) Data storage method and device, electronic equipment and storage medium
CN113849170A (en) Code sharing method and device, electronic equipment and storage medium
CN111273956A (en) Program module loading method, device, equipment and storage medium

Legal Events

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