CN114416040A - Page construction method, device, equipment and storage medium - Google Patents

Page construction method, device, equipment and storage medium Download PDF

Info

Publication number
CN114416040A
CN114416040A CN202210091227.6A CN202210091227A CN114416040A CN 114416040 A CN114416040 A CN 114416040A CN 202210091227 A CN202210091227 A CN 202210091227A CN 114416040 A CN114416040 A CN 114416040A
Authority
CN
China
Prior art keywords
page
function
page application
target
offline
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
CN202210091227.6A
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202210091227.6A priority Critical patent/CN114416040A/en
Publication of CN114416040A publication Critical patent/CN114416040A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a page construction method, a page construction device, page construction equipment and a page construction storage medium. The method comprises the following steps: when detecting page construction operation aiming at the single-page application, acquiring a function identifier of a target single-page application function corresponding to the page construction operation; according to the function identification of the target single-page application function, acquiring an offline package corresponding to the target single-page application function from offline packages corresponding to each single-page application function of the single-page application stored in the server; generating a current main page of the single-page application according to the page resource information in the offline package corresponding to the target single-page application function; the current home page includes page content corresponding to the target single-page application function. According to the embodiment of the invention, the main page only containing the page content corresponding to the single-page application function required by the user can be constructed according to the function use requirement of the user, so that the page construction efficiency of the main page of the single-page application is improved.

Description

Page construction method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a page construction method, apparatus, device, and storage medium.
Background
A single-page application is an application that has only one main page. Single page applications typically have multiple different functions for use by a user. The main page of the single-page application contains page content corresponding to the function of the single-page application. The user requests the browser to build a home page for the single page application. The browser builds the home page of the single-page application according to the user request, so that the user can browse the home page of the single-page application.
In the related art, a page construction scheme of a main page of a single-page application is as follows: under the condition that a user requests the browser to construct a main page of the single-page application, the browser acquires all page resource information of the single-page application, and generates the main page containing page contents corresponding to all functions according to the page resource information.
The single-page application has more functions, and the main page of the single-page application also has more page contents correspondingly. The page construction scheme in the related technology is easy to cause the problems that the time for constructing the main page of the single-page application by the browser is long, and the page construction speed of the main page of the single-page application is low.
Disclosure of Invention
The invention provides a page construction method, a page construction device, page construction equipment and a storage medium, and aims to solve the problems that a page construction scheme in the related art is easy to cause long time for a browser to construct a main page of a single-page application and low page construction speed of the main page of the single-page application.
According to an aspect of the present invention, there is provided a page construction method, including:
when detecting page construction operation aiming at a single-page application, acquiring a function identifier of a target single-page application function corresponding to the page construction operation;
according to the function identification of the target single-page application function, acquiring an offline package corresponding to the target single-page application function from offline packages corresponding to each single-page application function of the single-page application stored in a server; the offline package corresponding to each single-page application function comprises page resource information corresponding to each single-page application function;
generating a current main page of the single-page application according to page resource information in an offline package corresponding to the target single-page application function; and the current main page comprises page content corresponding to the target single-page application function.
According to another aspect of the present invention, there is provided a page building apparatus including:
the function identification acquisition module is used for acquiring a function identification of a target single-page application function corresponding to a page construction operation when the page construction operation aiming at the single-page application is detected;
the offline package acquisition module is used for acquiring offline packages corresponding to the target single-page application function from the offline packages corresponding to the single-page application functions of the single-page application stored in the server according to the function identification of the target single-page application function; the offline package corresponding to each single-page application function comprises page resource information corresponding to each single-page application function;
the page construction generates a current main page of the single-page application according to page resource information in an offline package corresponding to the target single-page application function; and the current main page comprises page content corresponding to the target single-page application function.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the page building method according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the page building method according to any one of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, when the page construction operation aiming at the single-page application is detected, the function identification of the target single-page application function corresponding to the page construction operation is obtained, and then according to the function identification of the target single-page application function, the offline package corresponding to the target single-page application function is obtained from the offline package corresponding to each single-page application function of the single-page application stored in the server; finally, according to the page resource information in the offline package corresponding to the target single-page application function, the current main page of the single-page application is generated, the current main page contains the page content corresponding to the target single-page application function, the problems that the time for constructing the main page of the single-page application by the browser is long and the page construction speed of the main page of the single-page application is low easily in a page construction scheme in the related technology are solved, the offline package corresponding to the single-page application function required by the user is obtained according to the function use requirement of the single-page application by the user, the main page of the single-page application only containing the page content corresponding to the single-page application function required by the user is constructed according to the offline package, the time for obtaining the page resource information of the single-page application can be effectively reduced, and the page content contained in the main page of the single-page application can be effectively reduced, therefore, the page construction speed of the main page of the single-page application is increased, the page construction efficiency of the main page of the single-page application is improved, and the use is convenient.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a page construction method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a page construction method according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a page constructing apparatus according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an electronic device implementing the page construction method according to the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 invention.
It should be noted that the terms "object," "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a page building method according to an embodiment of the present invention, where the present embodiment is applicable to a case where a browser builds a main page of a single-page application when a user requests to build the main page of the single-page application, and the method may be executed by a page building apparatus, which may be implemented in a form of hardware and/or software, and the page building apparatus may be configured in a browser installed in an electronic device. As shown in fig. 1, the method includes:
step 101, when detecting a page construction operation for a single-page application, acquiring a function identifier of a target single-page application function corresponding to the page construction operation.
Optionally, the single-page application in the embodiment of the present invention is a single-page application in which a user may perform page construction through a browser in the electronic device. A single-page application is an application that has only one main page. The single page application function is a function that a single page application can be used by a user. Single page applications typically have multiple different functions for use by a user. The home page of the single-page application may contain page content corresponding to the single-page application functionality.
Optionally, the page building operation for the single-page application is an operation for triggering the browser to build a main page of the single-page application. The page jump operation for the application program may be a user click operation on a page build control for a single page application in the browser. The page build control is a control for inputting a page build operation for a single page application.
Optionally, when a user needs to use a certain function of the single-page application, the user inputs a page construction operation for the single-page application, so that the browser constructs a main page of the single-page application, and then uses the function according to page content corresponding to the function in the main page of the single-page application. And the target single-page application function corresponding to the page construction operation is a single-page application function required by the user.
Optionally, each single-page application function has a unique function identifier. The function identifier is identification information for distinguishing different single-page application functions. The function identifiers of the application functions of different single pages are different. The function identifier may be a digital identifier. And the function identifier of the target single-page application function corresponding to the page construction operation is the function identifier of the single-page application function required by the user.
Optionally, when detecting a page building operation for a single-page application, acquiring a function identifier of a target single-page application function corresponding to the page building operation includes: when the click operation of a user on a page construction control of a single-page application is detected, a function identification of a target single-page application function corresponding to the click operation and input by the user is obtained through a function configuration page.
Optionally, the function configuration page is a page for interacting with the user and acquiring a function identifier of the target single-page application function corresponding to the click operation, which is input by the user. The obtaining, through a function configuration page, a function identifier of a target single-page application function corresponding to the click operation, which is input by the user, includes: and acquiring a function identifier of the application function of the target single page corresponding to the click operation, which is input by the user in a function identifier input area provided by the function configuration page. The function identifier input area is a page area in the function configuration page for inputting the function identifier of the target single-page application function corresponding to the click operation. The user may fill in or select a function identifier of the target single-page application function corresponding to the click operation in the function identifier input area. The browser acquires the function identifier of the target single-page application function corresponding to the click operation, which is input by the user in the function identifier input area provided by the function configuration page.
102, according to the function identifier of the target single-page application function, obtaining an offline package corresponding to the target single-page application function from offline packages corresponding to each single-page application function of the single-page application stored in a server.
The offline package corresponding to each single-page application function comprises page resource information corresponding to each single-page application function.
Optionally, the offline package corresponding to each single-page application function of the single-page application is a data package containing page resource information corresponding to each single-page application function of the single-page application.
Optionally, the page resource information is related information for generating a page, including but not limited to: theme information, layout information, text, pictures, etc. For each single-page application function, the page resource information corresponding to the single-page application function is related information for generating a main page of the single-page application only containing page content corresponding to the single-page application function.
Optionally, for each single-page application function, the browser may generate, according to the page resource information corresponding to the single-page application function, a main page of the single-page application that only includes page content corresponding to the single-page application function.
Optionally, the user uploads the function identifiers of the individual page application functions of the individual page application and the offline packets corresponding to the individual page application functions of the individual page application to the server. The server stores the function identification of each single-page application function and the offline package corresponding to each single-page application function, and establishes the corresponding relation between the function identification of each single-page application function and the offline package corresponding to each single-page application function. Namely, the server correspondingly stores the function identifiers of the application functions of the single pages and the corresponding offline packets.
Optionally, the obtaining, according to the function identifier of the target single-page application function, an offline package corresponding to the target single-page application function from offline packages corresponding to each single-page application function of the single-page application stored in a server includes: inquiring a target function identifier which is the same as the function identifier of the target single-page application function from the function identifiers of the single-page application functions of the single-page application stored in the server; if the target function identification is inquired, according to the corresponding relation between the preset function identification and the offline package, acquiring the offline package corresponding to the target function identification from the offline packages corresponding to the single-page application functions of the single-page application stored in the server, and taking the offline package as the offline package corresponding to the target single-page application function.
Optionally, the preset correspondence between the function identifier and the offline package is a correspondence between the function identifier of each single-page application function established by the server and the offline package corresponding to each single-page application function. The target function identification is the same as the function identification of the target single-page application function. And the offline packet corresponding to the target function identifier is the offline packet corresponding to the target single-page application function. The offline package corresponding to the target single-page application function contains page resource information corresponding to the target single-page application function. The page resource information corresponding to the target single-page application function is related information for generating a main page of the single-page application containing only page content corresponding to the target single-page application function. The browser may generate, according to the page resource information corresponding to the target single-page application function, a home page of the single-page application that only includes page content corresponding to the target single-page application function.
And 103, generating the current main page of the single-page application according to the page resource information in the offline package corresponding to the target single-page application function.
And the current main page comprises page content corresponding to the target single-page application function.
Optionally, after generating the current main page of the single-page application according to the page resource information in the offline package corresponding to the target single-page application function, the method further includes: and displaying the current main page in a browser window.
And the browser generates the current main page of the single-page application according to the page resource information in the offline packet corresponding to the target single-page application function, so that the page construction process of the main page of the single-page application is completed. And the current main page of the single-page application is the main page of the single-page application constructed by the browser according to the current page construction operation aiming at the single-page application by the user. And the current main page only contains page content corresponding to the target single-page application function. And the browser displays the current main page in a browser window so that a user can use the target single-page application function of the single-page application according to the page content corresponding to the target single-page application function in the current main page of the single-page application.
Optionally, after generating the current main page of the single-page application according to the page resource information in the offline package corresponding to the target single-page application function, the method further includes: and deleting the offline packet corresponding to the target single-page application function. And after the browser finishes the page construction process of the main page of the single-page application, deleting the off-line package corresponding to the target single-page application function. Therefore, the browser can delete the offline package in time after the acquired offline package is used, and the storage space is saved.
Optionally, the obtaining, according to the function identifier of the target single-page application function, an offline package corresponding to the target single-page application function from offline packages corresponding to each single-page application function of the single-page application stored in a server, further includes: if the target function identification is not inquired, acquiring a basic offline packet corresponding to the single-page application in the server as an offline packet corresponding to the target single-page application function; and the basic offline package corresponding to the single-page application comprises page resource information corresponding to all single-page application functions of the single-page application.
Optionally, the generating a current main page of the single-page application according to the page resource information in the offline package corresponding to the target single-page application function includes: generating a current main page of the single-page application according to page resource information in an offline package corresponding to the target single-page application function; and the current main page comprises page contents corresponding to all single-page application functions of the single-page application.
Optionally, the basic offline package corresponding to the single-page application includes page resource information corresponding to all single-page application functions of the single-page application. The browser may generate a home page of the single-page application including page contents corresponding to all the single-page application functions of the single-page application according to page resource information corresponding to all the single-page application functions of the single-page application included in the basic offline package.
Therefore, under the condition that the target function identification is not inquired, namely the browser cannot accurately acquire the offline package corresponding to the target single-page application function according to the function identification of the target single-page application function, the current main page of the single-page application containing the page contents corresponding to all the single-page application functions of the single-page application is generated according to the page resource information corresponding to all the single-page application functions of the single-page application contained in the basic offline package, so that a user can browse the page contents corresponding to the target single-page application function in the page contents corresponding to all the single-page application functions of the single-page application in the current main page, and the user can use the target single-page application function of the single-page application.
According to the technical scheme of the embodiment of the invention, when the page construction operation aiming at the single-page application is detected, the function identification of the target single-page application function corresponding to the page construction operation is obtained, and then according to the function identification of the target single-page application function, the offline package corresponding to the target single-page application function is obtained from the offline package corresponding to each single-page application function of the single-page application stored in the server; finally, according to the page resource information in the offline package corresponding to the target single-page application function, the current main page of the single-page application is generated, the current main page contains the page content corresponding to the target single-page application function, the problems that the time for constructing the main page of the single-page application by the browser is long and the main page construction of the single-page application is slow easily caused by a page construction scheme in the related technology are solved, the offline package corresponding to the single-page application function required by the user is obtained according to the function use requirement of the single-page application by the user, and the main page of the single-page application only containing the page content corresponding to the single-page application function required by the user is generated according to the offline package, so that the time for obtaining the page resource information of the single-page application can be effectively reduced, and the page content contained in the main page of the single-page application can be effectively reduced, therefore, the page construction speed of the main page of the single-page application is increased, the page construction efficiency of the main page of the single-page application is improved, and the use is convenient.
Example two
Fig. 2 is a flowchart of a page building method according to a second embodiment of the present invention, which may be combined with various alternatives in one or more of the above embodiments. As shown in fig. 2, the method includes:
step 201, when detecting a page construction operation for a single-page application, acquiring a function identifier of a target single-page application function corresponding to the page construction operation.
Step 202, inquiring a target function identifier which is the same as the function identifier of the target single-page application function from the function identifiers of the single-page application functions of the single-page application stored in the server.
Optionally, the user uploads the function identifiers of the individual page application functions of the individual page application and the offline packets corresponding to the individual page application functions of the individual page application to the server. The server stores the function identification of each single-page application function and the offline package corresponding to each single-page application function, and establishes the corresponding relation between the function identification of each single-page application function and the offline package corresponding to each single-page application function. Namely, the server correspondingly stores the function identifiers of the application functions of the single pages and the corresponding offline packets.
Step 203, if the target function identifier is found, acquiring an offline package corresponding to the target function identifier from the offline packages corresponding to the single-page application functions of the single-page application stored in the server according to a corresponding relationship between a preset function identifier and the offline package, and using the offline package as the offline package corresponding to the target single-page application function.
The offline package corresponding to each single-page application function comprises page resource information corresponding to each single-page application function.
Optionally, the preset correspondence between the function identifier and the offline package is a correspondence between the function identifier of each single-page application function established by the server and the offline package corresponding to each single-page application function. The target function identification is the same as the function identification of the target single-page application function. And the offline packet corresponding to the target function identifier is the offline packet corresponding to the target single-page application function. The offline package corresponding to the target single-page application function contains page resource information corresponding to the target single-page application function. The page resource information corresponding to the target single-page application function is related information for generating a main page of the single-page application containing only page content corresponding to the target single-page application function. The browser may generate, according to the page resource information corresponding to the target single-page application function, a home page of the single-page application that only includes page content corresponding to the target single-page application function.
And 204, generating the current main page of the single-page application according to the page resource information in the offline package corresponding to the target single-page application function.
And the current main page comprises page content corresponding to the target single-page application function.
Optionally, the browser generates the current main page of the single-page application according to the page resource information in the offline package corresponding to the target single-page application function, and completes the page construction process of the main page of the single-page application. And the current main page of the single-page application is the main page of the single-page application generated by the browser according to the current page construction operation aiming at the single-page application by the user. And the current main page only contains page content corresponding to the target single-page application function.
And step 205, displaying the current main page in a browser window.
Optionally, the browser displays the current home page in a browser window, so that a user may use the target single-page application function of the single-page application according to the page content corresponding to the target single-page application function in the current home page of the single-page application.
According to the technical scheme of the embodiment of the invention, the off-line package corresponding to the single-page application function required by the user is obtained according to the function use requirement of the single-page application by the user, and the main page of the single-page application only containing the page content corresponding to the single-page application function required by the user is constructed according to the off-line package, so that the time for obtaining the page resource information of the single-page application can be effectively reduced, the page content contained in the main page of the single-page application can be effectively reduced, the page construction speed of the main page of the single-page application is accelerated, the page construction efficiency of the main page of the single-page application is improved, and the use is convenient.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a page constructing apparatus according to a third embodiment of the present invention. The apparatus may be configured in a browser installed in an electronic device. As shown in fig. 3, the apparatus includes: a function identifier obtaining module 301, an offline package obtaining module 302, and a page constructing module 303.
The function identifier obtaining module 301 is configured to, when detecting a page construction operation for a single-page application, obtain a function identifier of a target single-page application function corresponding to the page construction operation; an offline package obtaining module 302, configured to obtain, according to the function identifier of the target single-page application function, an offline package corresponding to the target single-page application function from offline packages corresponding to each single-page application function of the single-page application stored in a server; the offline package corresponding to each single-page application function comprises page resource information corresponding to each single-page application function; the page construction module 303 is configured to generate a current main page of the single-page application according to page resource information in an offline package corresponding to the target single-page application function; and the current main page comprises page content corresponding to the target single-page application function.
According to the technical scheme of the embodiment of the invention, when the page construction operation aiming at the single-page application is detected, the function identification of the target single-page application function corresponding to the page construction operation is obtained, and then according to the function identification of the target single-page application function, the offline package corresponding to the target single-page application function is obtained from the offline package corresponding to each single-page application function of the single-page application stored in the server; finally, according to the page resource information in the offline package corresponding to the target single-page application function, the current main page of the single-page application is generated, the current main page contains the page content corresponding to the target single-page application function, the problems that the time for constructing the main page of the single-page application by the browser is long and the page construction speed of the main page of the single-page application is low easily in a page construction scheme in the related technology are solved, the offline package corresponding to the single-page application function required by the user is obtained according to the function use requirement of the single-page application by the user, the main page of the single-page application only containing the page content corresponding to the single-page application function required by the user is constructed according to the offline package, the time for obtaining the page resource information of the single-page application can be effectively reduced, and the page content contained in the main page of the single-page application can be effectively reduced, therefore, the page construction speed of the main page of the single-page application is increased, the page construction efficiency of the main page of the single-page application is improved, and the use is convenient.
In an optional implementation manner of the embodiment of the present invention, optionally, the offline packet obtaining module 302 is specifically configured to: inquiring a target function identifier which is the same as the function identifier of the target single-page application function from the function identifiers of the single-page application functions of the single-page application stored in the server; if the target function identification is inquired, according to the corresponding relation between the preset function identification and the offline package, acquiring the offline package corresponding to the target function identification from the offline packages corresponding to the single-page application functions of the single-page application stored in the server, and taking the offline package as the offline package corresponding to the target single-page application function.
In an optional implementation manner of the embodiment of the present invention, optionally, the page constructing module 303 is further configured to: and displaying the current main page in a browser window.
In an optional implementation manner of the embodiment of the present invention, optionally, the function identifier obtaining module 301 is specifically configured to: when the click operation of a user on a page construction control of a single-page application is detected, a function identification of a target single-page application function corresponding to the click operation and input by the user is obtained through a function configuration page.
In an optional implementation manner of the embodiment of the present invention, optionally, the page constructing apparatus further includes: and the offline packet deleting module is used for deleting the offline packet corresponding to the target single-page application function.
In an optional implementation manner of the embodiment of the present invention, optionally, the offline packet obtaining module 302 is further configured to: if the target function identification is not inquired, acquiring a basic offline packet corresponding to the single-page application in the server as an offline packet corresponding to the target single-page application function; and the basic offline package corresponding to the single-page application comprises page resource information corresponding to all single-page application functions of the single-page application.
In an optional implementation manner of the embodiment of the present invention, optionally, the page constructing module 303 is further configured to: generating a current main page of the single-page application according to page resource information in an offline package corresponding to the target single-page application function; the current main page comprises page contents corresponding to all single-page application functions of the single-page application; and displaying the current main page in a browser window.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The data acquisition device can execute the page construction method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the page construction method.
Example four
Fig. 4 shows a schematic structural diagram of an electronic device 10 that can be used to implement the page building method of the embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM)12, a Random Access Memory (RAM)13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM)12 or the computer program built from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the page building method.
In some embodiments, the page construction method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is built into the RAM 13 and executed by the processor 11, one or more steps of the page building method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the page building method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
The computer program for implementing the page construction method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A page construction method is characterized by comprising the following steps:
when detecting page construction operation aiming at a single-page application, acquiring a function identifier of a target single-page application function corresponding to the page construction operation;
according to the function identification of the target single-page application function, acquiring an offline package corresponding to the target single-page application function from offline packages corresponding to each single-page application function of the single-page application stored in a server; the offline package corresponding to each single-page application function comprises page resource information corresponding to each single-page application function;
generating a current main page of the single-page application according to page resource information in an offline package corresponding to the target single-page application function; and the current main page comprises page content corresponding to the target single-page application function.
2. The method according to claim 1, wherein the obtaining, according to the function identifier of the target single-page application function, an offline package corresponding to the target single-page application function from offline packages corresponding to each single-page application function of the single-page application stored in a server comprises:
inquiring a target function identifier which is the same as the function identifier of the target single-page application function from the function identifiers of the single-page application functions of the single-page application stored in the server;
if the target function identification is inquired, according to the corresponding relation between the preset function identification and the offline package, acquiring the offline package corresponding to the target function identification from the offline packages corresponding to the single-page application functions of the single-page application stored in the server, and taking the offline package as the offline package corresponding to the target single-page application function.
3. The method of claim 1, after generating the current home page of the single-page application according to the page resource information in the offline package corresponding to the target single-page application function, further comprising:
and displaying the current main page in a browser window.
4. The method according to claim 1, wherein when detecting a page building operation for a single-page application, acquiring a function identifier of a target single-page application function corresponding to the page building operation comprises:
when the click operation of a user on a page construction control of a single-page application is detected, a function identification of a target single-page application function corresponding to the click operation and input by the user is obtained through a function configuration page.
5. The method of claim 1, after generating the current home page of the single-page application according to the page resource information in the offline package corresponding to the target single-page application function, further comprising:
and deleting the offline packet corresponding to the target single-page application function.
6. The method according to claim 2, wherein the obtaining, according to the function identifier of the target single-page application function, an offline package corresponding to the target single-page application function from offline packages corresponding to each single-page application function of the single-page application stored in a server, further comprises:
if the target function identification is not inquired, acquiring a basic offline packet corresponding to the single-page application in the server as an offline packet corresponding to the target single-page application function;
and the basic offline package corresponding to the single-page application comprises page resource information corresponding to all single-page application functions of the single-page application.
7. The method of claim 6, wherein the generating the current home page of the single-page application according to the page resource information in the offline package corresponding to the target single-page application function comprises:
generating a current main page of the single-page application according to page resource information in an offline package corresponding to the target single-page application function; and the current main page comprises page contents corresponding to all single-page application functions of the single-page application.
8. A page building apparatus, comprising:
the function identification acquisition module is used for acquiring a function identification of a target single-page application function corresponding to a page construction operation when the page construction operation aiming at the single-page application is detected;
the offline package acquisition module is used for acquiring offline packages corresponding to the target single-page application function from the offline packages corresponding to the single-page application functions of the single-page application stored in the server according to the function identification of the target single-page application function; the offline package corresponding to each single-page application function comprises page resource information corresponding to each single-page application function;
the page construction module is used for generating a current main page of the single-page application according to the page resource information in the offline package corresponding to the target single-page application function; and the current main page comprises page content corresponding to the target single-page application function.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the page building method of any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the page construction method of any one of claims 1-7 when executed.
CN202210091227.6A 2022-01-26 2022-01-26 Page construction method, device, equipment and storage medium Pending CN114416040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210091227.6A CN114416040A (en) 2022-01-26 2022-01-26 Page construction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210091227.6A CN114416040A (en) 2022-01-26 2022-01-26 Page construction method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114416040A true CN114416040A (en) 2022-04-29

Family

ID=81276849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210091227.6A Pending CN114416040A (en) 2022-01-26 2022-01-26 Page construction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114416040A (en)

Similar Documents

Publication Publication Date Title
CN115242731A (en) Message processing method, device, equipment and storage medium
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN112925623B (en) Task processing method, device, electronic equipment and medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN115599438A (en) Method, device, equipment and medium for constructing application program publishing package
CN115309730A (en) Data auditing method and device, electronic equipment and storage medium
CN112965836B (en) Service control method, device, electronic equipment and readable storage medium
CN114416040A (en) Page construction method, device, equipment and storage medium
CN115081413A (en) Report generation method, device, system, equipment and medium
CN113905040A (en) File transmission method, device, system, equipment and storage medium
CN113656731A (en) Advertisement page processing method and device, electronic equipment and storage medium
CN112968876A (en) Content sharing method and device, electronic equipment and storage medium
CN112860811A (en) Method and device for determining data blood relationship, electronic equipment and storage medium
CN113032040B (en) Method, apparatus, device, medium, and article for processing tasks
CN113992729B (en) Cloud mobile phone control method, related device and computer program product
CN114564133A (en) Application program display method, device, equipment and medium
CN117271104A (en) Resource arrangement method, device, electronic equipment and storage medium
CN115061664A (en) Object conversion method and device, electronic equipment and storage medium
CN115455029A (en) Battery replacement data acquisition method and device, electronic equipment and storage medium
CN116170188A (en) Network access control method, device, electronic equipment and storage medium
CN115202791A (en) Method and device for determining first screen loading resource, server and storage medium
CN115967638A (en) Equipment simulation system, method, equipment and storage medium
CN117651078A (en) Data transmission method and device, electronic 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