CN113778488B - Page updating method and device, computer equipment and storage medium - Google Patents

Page updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113778488B
CN113778488B CN202111074851.7A CN202111074851A CN113778488B CN 113778488 B CN113778488 B CN 113778488B CN 202111074851 A CN202111074851 A CN 202111074851A CN 113778488 B CN113778488 B CN 113778488B
Authority
CN
China
Prior art keywords
parameter
configuration
page
target
configuration parameters
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.)
Active
Application number
CN202111074851.7A
Other languages
Chinese (zh)
Other versions
CN113778488A (en
Inventor
蒋俊兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feixun Digital Technology Co ltd
Original Assignee
Beijing Feixun Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feixun Digital Technology Co ltd filed Critical Beijing Feixun Digital Technology Co ltd
Priority to CN202111074851.7A priority Critical patent/CN113778488B/en
Publication of CN113778488A publication Critical patent/CN113778488A/en
Application granted granted Critical
Publication of CN113778488B publication Critical patent/CN113778488B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a page updating method, a page updating device, computer equipment and a storage medium, wherein the page updating method comprises the following steps: responding to a display instruction of a target page, and acquiring first parameter configuration files corresponding to default display configuration parameters in the target page; loading business logic codes in the first parameter configuration file into a memory, and running each business logic code to render to obtain a target page; acquiring alternative display configuration parameters of a user aiming at target default display configuration parameter switching in a target page, and taking the alternative display configuration parameters as updated configuration parameters; and acquiring a second parameter configuration file corresponding to the updated configuration parameters, updating the business logic codes corresponding to the target default display configuration parameters in the memory into the business logic codes in the second parameter configuration file, and running the updated business logic codes to render the updated business logic codes to obtain an updated target page. The technical scheme of the embodiment of the invention can improve the updating efficiency of the page and the use experience of the user on the software product.

Description

Page updating method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a page updating method, a page updating device, computer equipment and a storage medium.
Background
A software page refers to an interface where a software product provides various information and functional operations for a user. Currently, after software products are developed, the layout of the pages, the colors of the pages, the language of the page text, etc. are usually fixed. When developing a software product, a developer usually repeatedly considers the layout, the color and the like of the page, and determines a more proper design mode. However, the final design of the page may directly affect the user's experience of using the software product.
FIG. 1a is a schematic diagram of a page of a conventional software product, as shown in FIG. 1a, assuming that the layout of the page is left and right, four squares on the left side of the page are image display regions, and rectangles on the right side are resource display regions. If the user wants to exchange the positions of the resource display area and the image display area, the developer is required to revise the development code of the page, which is time-consuming and labor-consuming, and results in lower use feeling of the software product by the user.
Disclosure of Invention
The embodiment of the invention provides a page updating method, a page updating device, computer equipment and a storage medium, which can improve the updating efficiency of pages and the use experience of users on software products.
In a first aspect, an embodiment of the present invention provides a method for updating a page, where the method includes:
responding to a display instruction of a target page, and acquiring first parameter configuration files corresponding to default display configuration parameters in the target page;
the business logic codes in each first parameter configuration file are loaded into the memory together, and a target page is rendered by running each business logic code in the memory;
in the display process of the target page, acquiring alternative display configuration parameters switched by a user aiming at least one target default display configuration parameter in the target page, and taking the alternative display configuration parameters as updated configuration parameters corresponding to the target default display configuration parameters;
and acquiring second parameter configuration files corresponding to the updated configuration parameters respectively, updating service logic codes corresponding to the target default display configuration parameters in the memory into service logic codes in the second parameter configuration files, and rendering to obtain updated target pages by running the updated service logic codes in the memory.
In a second aspect, an embodiment of the present invention further provides a page updating apparatus, where the apparatus includes:
The configuration file acquisition module is used for responding to the display instruction of the target page and acquiring first parameter configuration files corresponding to default display configuration parameters in the target page respectively;
the target page rendering module is used for loading the business logic codes in each first parameter configuration file into the memory together and rendering to obtain a target page by running each business logic code in the memory;
the updating parameter acquisition module is used for acquiring alternative display configuration parameters switched by a user aiming at least one target default display configuration parameter in a target page in the target page display process, and taking the alternative display configuration parameters as updating configuration parameters corresponding to the target default display configuration parameters;
the updating page rendering module is used for acquiring second parameter configuration files corresponding to the updating configuration parameters respectively, updating service logic codes corresponding to the target default display configuration parameters in the memory into service logic codes in the second parameter configuration files, and rendering to obtain updated target pages by running the updated service logic codes in the memory.
In a third aspect, an embodiment of the present invention further provides a computer apparatus, including:
One or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the page updating method provided by any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the program when executed by a processor implements the page update method provided in any embodiment of the present invention.
According to the technical scheme, the first parameter configuration files corresponding to the default display configuration parameters in the target page are obtained in response to the display instruction of the target page, the business logic codes in the first parameter configuration files are loaded into the memory together, the target page is rendered by running the business logic codes in the memory, the alternative display configuration parameters switched by a user aiming at least one target default display configuration parameter in the target page are obtained in the display process of the target page, the alternative display configuration parameters are used as update configuration parameters corresponding to the target default display configuration parameters, the second parameter configuration files corresponding to the update configuration parameters are obtained, the business logic codes corresponding to the target default display configuration parameters in the memory are updated to the business logic codes in the second parameter configuration files, and the updated business logic codes in the memory are rendered to obtain the technical means of the target page.
Drawings
FIG. 1a is a schematic page view of a software product in an embodiment of the invention;
FIG. 1b is a flowchart of a page update method according to a first embodiment of the present invention;
FIG. 1c is a schematic page view of another software product in an embodiment of the invention;
FIG. 2 is a flowchart of a page update method according to a second embodiment of the present invention;
FIG. 3 is a flow chart of a page update method in a third embodiment of the present invention;
FIG. 4 is a block diagram of a page updating apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device in a fifth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1b is a flowchart of a page updating method according to a first embodiment of the present invention, where the method is applicable to updating a page of a software product, and the method may be implemented by a page updating apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a computer and all intelligent devices (e.g. terminal devices or servers) including program running functions, and specifically includes the following steps:
Step 110, responding to a display instruction of the target page, and acquiring first parameter configuration files respectively corresponding to default display configuration parameters in the target page.
In this embodiment, the target page may be a display interface of the software product. The software product may be an Application (APP) installed in a mobile smart device or software installed in a computer. Optionally, when detecting that the user triggers an opening module of the software product or triggers a display module for a certain page in the software product, it may be confirmed that the user triggers a page display instruction. If the user triggers the opening module of the software product, the default page after the software product is opened can be used as the target page; if the user triggers a display module for a page in the software product, the page is taken as a target page.
In this step, if it is detected that the user triggers the display instruction of the target page, a first parameter configuration file corresponding to each default display configuration parameter in the target page may be obtained, where the default display configuration parameter may be a configuration parameter used by default when the target page is displayed. The default display configuration parameters may be display configuration parameters selected by a developer for a target page when developing a software product. Optionally, the default display configuration parameters may include a style of each control in the target page, an arrangement position of each control, and the like. The first parameter configuration file corresponding to the default display configuration parameter may include a service logic code corresponding to the default display configuration parameter.
In this embodiment, the first parameter configuration files corresponding to the default display configuration parameters may be stored in the computer device on which the software product is installed in advance. After detecting that the user triggers the display instruction of the target page, a first parameter configuration file corresponding to each default display configuration parameter is obtained from a memory preset in the computer equipment.
And 120, loading the business logic codes in each first parameter configuration file into the memory together, and rendering to obtain the target page by running each business logic code in the memory.
In this embodiment, the service logic code included in the first parameter configuration file is configured to generate a page architecture of the target page that matches the default display configuration parameter, for example, a style and an arrangement position of each control in the target page. And obtaining a target page corresponding to each default display configuration parameter by running the business logic codes in each first parameter configuration file.
Step 130, in the target page display process, acquiring an alternative display configuration parameter switched by a user aiming at least one target default display configuration parameter in a target page, and taking the alternative display configuration parameter as an updated configuration parameter corresponding to the target default display configuration parameter.
In this embodiment, when the developer develops the software product, a plurality of alternative display configuration parameters corresponding to each default display configuration parameter in the target page are also provided, where the alternative display configuration parameters may be different configuration parameters belonging to the same parameter type as the default display configuration parameters.
In a specific embodiment, assuming that a certain default display configuration parameter in the target page is an arrangement position of each control, for example, "the image display control position is on the left side of the page, and the resource display control position is on the right side of the page", the alternative display configuration parameter corresponding to the default display configuration parameter may be "the resource display control position is on the left side of the page, the image display control position is on the right side of the page", or may be "the image display control position is above the page, the resource display control position is below the page", or the like.
In the display process of the target page, if the fact that the target default display configuration parameter of the target page is switched to a certain alternative display configuration parameter in a parameter setting interface provided by a software product by a user is detected, the alternative display configuration parameter can be used as an updated configuration parameter corresponding to the target default display configuration parameter.
And 140, acquiring second parameter configuration files corresponding to the updated configuration parameters respectively, updating service logic codes corresponding to the target default display configuration parameters in the memory into service logic codes in the second parameter configuration files, and rendering to obtain updated target pages by running the updated service logic codes in the memory.
In this embodiment, the second parameter configuration files corresponding to the respective updated configuration parameters may be stored in advance in the computer device on which the software product is installed, or may be stored in a background server corresponding to the software product.
If the second parameter configuration files corresponding to the updated configuration parameters are stored in the computer equipment for installing the software product, the second parameter configuration files corresponding to the updated configuration parameters can be obtained from the corresponding memories according to the preset mapping relation between the updated configuration parameters and the storage positions where the parameter configuration files are located.
If the second parameter configuration files corresponding to the updated configuration parameters are stored in the background server corresponding to the software product, a file acquisition instruction can be sent to the background server, so that the server sends the corresponding second parameter configuration files to the software product according to the file acquisition instruction. The file obtaining instruction may include the updated configuration parameter.
In this embodiment, after the second parameter configuration files corresponding to each updated configuration parameter are obtained, the service logic codes corresponding to each target default display configuration parameter in the memory may be deleted, the service logic codes in each second parameter configuration file are transplanted in the memory, so as to implement updating of the service logic codes in the memory, and the updated target page is rendered by running the updated service logic codes in the memory.
In a specific embodiment, taking the page in fig. 1a as an example, assuming that the user aims at the target default display configuration parameter in the page, that is, "the position of the image display control is on the left side of the page, the position of the resource display control is on the right side of the page", and the switched alternative display configuration parameter is "the position of the resource display control is on the left side of the page, and the position of the image display control is on the right side of the page", the alternative display configuration parameter is taken as the update configuration parameter corresponding to the target default display configuration parameter, by acquiring a second parameter configuration file corresponding to the update configuration parameter, the business logic code corresponding to the target default display configuration parameter in the memory is updated to the business logic code in the second parameter configuration file, and by running the updated business logic code in the memory, the updated target page is rendered and obtained as shown in fig. 1 c.
In this embodiment, after detecting that the user switches the default display configuration parameters in the software page, the user can meet the update requirement of the user on the page by acquiring the configuration file corresponding to the update configuration parameters and running the service logic code in the configuration file, and the developer is not required to modify the development code of the page again, so that the update time of the page can be saved, and the update efficiency of the page and the use experience of the user on the software product can be improved.
According to the technical scheme, the first parameter configuration files corresponding to the default display configuration parameters in the target page are obtained in response to the display instruction of the target page, the business logic codes in the first parameter configuration files are loaded into the memory together, the target page is rendered by running the business logic codes in the memory, the alternative display configuration parameters switched by a user aiming at least one target default display configuration parameter in the target page are obtained in the display process of the target page, the alternative display configuration parameters are used as update configuration parameters corresponding to the target default display configuration parameters, the second parameter configuration files corresponding to the update configuration parameters are obtained, the business logic codes corresponding to the target default display configuration parameters in the memory are updated to the business logic codes in the second parameter configuration files, and the updated business logic codes in the memory are rendered to obtain the technical means of the target page.
Example two
The present embodiment is a further refinement of the first embodiment, and the same or corresponding terms as those of the first embodiment are explained, and the description of the present embodiment is omitted. Fig. 2 is a flowchart of a page updating method provided by the second embodiment of the present invention, in this embodiment, the technical solution of the present embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, and in this embodiment, as shown in fig. 2, the method provided by the embodiment of the present invention may further include:
step 210, responding to a display instruction of the target page, and acquiring first parameter configuration files respectively corresponding to default display configuration parameters in the target page.
In one implementation of this embodiment, the display configuration parameters include a page layout mode, a page color, and a page text format.
The page layout mode may include a style, a position, an arrangement mode, etc. of each control module in the page. The page color may include the color of each control in the page, the color of text in the page, and the like. The page text format may include the language type of the text in the page, the font and size of the text, etc.
And 220, loading the business logic codes in each first parameter configuration file into the memory together, and rendering to obtain the target page by running each business logic code in the memory.
Step 230, in the target page display process, acquiring an alternative display configuration parameter switched by a user aiming at least one target default display configuration parameter in a target page, and taking the alternative display configuration parameter as an updated configuration parameter corresponding to the target default display configuration parameter.
And 240, restarting the application client matched with the target page, and acquiring second parameter configuration files corresponding to the updated configuration parameters respectively after restarting.
In the actual display process of the target page, if the business logic code corresponding to the target default display configuration parameter in the memory is deleted and the business logic code corresponding to the update configuration parameter is transplanted in the memory, some redundant codes are usually required to be added in the memory to realize the connection between the business logic code corresponding to the update configuration parameter and the business logic code originally operated in the memory, and the mode also affects the update efficiency of the page to a certain extent. Therefore, in order to further improve the updating efficiency of the page, the embodiment proposes an implementation manner that the application client matched with the target page is restarted, and after restarting, the service logic code corresponding to the updated configuration parameter is directly loaded into the memory, and the service logic code in the memory is operated.
Step 250, obtaining each remaining default display configuration parameter except each target default display configuration parameter in all default display configuration parameters.
In a specific embodiment, it is assumed that all default display configuration parameters in the target page are "image display control position on the left side of the page, resource display control position on the right side of the page", "control color is red", and "language type is chinese", respectively. If the target default display configuration parameter is "the image display control position is on the left side of the page and the resource display control position is on the right side of the page", the remaining default display configuration parameters except the target default display configuration parameter are "the control color is red" and "the language type is Chinese", respectively.
Step 260, obtaining third parameter configuration files corresponding to the remaining default display configuration parameters respectively.
In this embodiment, the third parameter configuration files corresponding to the remaining default display configuration parameters may be stored in advance in a computer device on which the software product is installed, and the third parameter configuration files corresponding to the remaining default display configuration parameters may be obtained from a memory preset in the computer device.
Step 270, loading the service logic codes in each third parameter configuration file and each second parameter configuration file into the memory together, and rendering to obtain the updated target page by running each service logic code in the memory.
In this embodiment, through the implementation of loading the service logic codes in each third parameter configuration file and each second parameter configuration file into the memory together, compared with the implementation of deleting the service logic code corresponding to the target default display configuration parameter in the memory and then transplanting the service logic code corresponding to the update configuration parameter into the memory, the operation flow of the code can be simplified, and the update efficiency of the page can be improved.
According to the technical scheme, the first parameter configuration files corresponding to the default display configuration parameters in the target page are obtained in response to the display instruction of the target page, service logic codes in the first parameter configuration files are loaded into the memory together, the target page is rendered by running the service logic codes in the memory, in the target page display process, the alternative display configuration parameters switched by a user aiming at least one target default display configuration parameter in the target page are obtained, the alternative display configuration parameters are used as update configuration parameters corresponding to the target default display configuration parameters, restarting is carried out on an application client matched with the target page, after restarting, the second parameter configuration files corresponding to the update configuration parameters are obtained, all the remaining default display configuration parameters except for the target default display configuration parameters are obtained, the third parameter configuration files corresponding to the remaining default display configuration parameters are obtained, the service logic codes in the third parameter configuration files and the second parameter configuration files are loaded into the target page together, and in the running process, the service logic codes in the target page are updated, and the efficiency of the target page can be improved, and the user experience can be improved.
Example III
The present embodiment is a further refinement of the foregoing embodiments, and the same or corresponding terms as those of the foregoing embodiments are explained, which are not repeated herein. Fig. 3 is a flowchart of a page updating method provided by the third embodiment of the present invention, in this embodiment, the technical solution of the present embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, and in this embodiment, as shown in fig. 3, the method provided by the embodiment of the present invention may further include:
step 310, responding to a display instruction of the target page, and acquiring first parameter configuration files respectively corresponding to default display configuration parameters in the target page.
And 320, loading the business logic codes in each first parameter configuration file into the memory together, and rendering to obtain the target page by running each business logic code in the memory.
Step 330, in the target page display process, acquiring an alternative display configuration parameter switched by a user aiming at least one target default display configuration parameter in a target page, and taking the alternative display configuration parameter as an updated configuration parameter corresponding to the target default display configuration parameter.
Step 340, generating a demand configuration file corresponding to each of the updated configuration parameters.
In this embodiment, in order to avoid losing the updated configuration parameters, a requirement configuration file corresponding to each updated configuration parameter may be generated, where the requirement configuration file may be an excel data table, a txt document, or the like.
In a specific embodiment, a requirement configuration file corresponding to the update configuration parameter may be generated according to the identification information corresponding to the update configuration parameter, where the identification information corresponding to the update configuration parameter is recorded in the requirement configuration file. For example, assuming that the update configuration parameter is "red", the identification information recorded in the generated requirement profile may be "red".
And 350, restarting the application client matched with the target page, and searching second parameter configuration files corresponding to each updated configuration parameter respectively in a plurality of pre-stored parameter configuration files according to each required configuration file after restarting.
In this embodiment, optionally, according to the identification information in the requirement configuration file, a second parameter configuration file corresponding to the updated configuration parameter may be searched for in a plurality of pre-stored parameter configuration files.
In a specific embodiment, the pre-stored plurality of parameter configuration files include configuration files corresponding to a plurality of display configuration parameters, such as a layout configuration file corresponding to a plurality of page layout modes, a color configuration file corresponding to a plurality of page colors, and a text configuration file corresponding to a plurality of page text formats. Each parameter configuration file corresponds to a unique file name, and each parameter configuration file comprises a corresponding service logic code. Taking a color profile as an example, assuming that a page corresponding to a color profile is "red", the name of the color profile may be "red.
The text configuration file may further include a text comparison table, where the text comparison table is a data table using names of all controls in the target page as key values and using text displayed in all controls as data, and the text comparison table is used to indicate that the target page is displayed according to the data in the data table.
In a specific embodiment, it is assumed that the target page includes two controls in total, namely a Voice control (control name is "Voice") and a Title control (control name is "Title"), wherein the text displayed on the Voice control is "play", and the text displayed on the Title control is "your good". Assuming that the language type corresponding to the first text configuration file is "chinese", the name of the first text configuration file may be "china. Ini", and assuming that the language type corresponding to the second text configuration file is "english", the name of the second text configuration file may be "englist. Ini". The text comparison table in the first text configuration file may be shown in table 1, and the text comparison table in the second text configuration file may be shown in table 2.
TABLE 1
Key Data
Voice Playing back
Title You good
TABLE 2
Key Data
Voice Play
Title Hello
In one implementation manner of the embodiment of the present invention, generating a demand configuration file corresponding to each of the updated configuration parameters includes: generating a target file name corresponding to each updated configuration parameter according to a mapping relation between each pre-stored display configuration parameter and a parameter configuration file name; and generating a demand configuration file respectively corresponding to each updated configuration parameter according to each target file name, wherein the demand configuration file comprises the corresponding target file name.
In a specific embodiment, assuming that the updated configuration parameter is "green", the destination file name corresponding to the updated configuration parameter may be "green.
Correspondingly, according to each requirement configuration file, searching a second parameter configuration file corresponding to each updated configuration parameter in a plurality of pre-stored parameter configuration files, wherein the second parameter configuration file comprises: reading the names of target files included in each requirement configuration file, and comparing the names of the target files with the names of each parameter configuration file; and determining second parameter configuration files corresponding to the updated configuration parameters respectively according to the comparison result.
The name of the target file included in the read requirement configuration file is "green. Ini", and the name can be compared with the name of each pre-stored parameter configuration file. The advantage of this is that the second parameter configuration file corresponding to the updated configuration parameters can be obtained quickly.
In another implementation manner of the embodiment of the present invention, generating a demand configuration file corresponding to each of the updated configuration parameters includes: and generating a demand configuration file corresponding to each updating configuration parameter according to each updating configuration parameter, wherein the demand configuration file comprises the corresponding updating configuration parameters.
In a specific embodiment, assuming that the updated configuration parameter is "green," the generated demand profile may have "green" recorded therein.
Correspondingly, according to each requirement configuration file, searching a second parameter configuration file corresponding to each updated configuration parameter in a plurality of pre-stored parameter configuration files, wherein the second parameter configuration file comprises: and reading the updated configuration parameters included in each required configuration file, and searching second parameter configuration files corresponding to each updated configuration parameter according to the mapping relation between each pre-stored display configuration parameter and the parameter configuration file.
Step 360, obtaining each remaining default display configuration parameter except each target default display configuration parameter in all default display configuration parameters.
And 370, obtaining third parameter configuration files corresponding to the remaining default display configuration parameters respectively.
And 380, loading the service logic codes in each third parameter configuration file and each second parameter configuration file into the memory together, and rendering to obtain the updated target page by running each service logic code in the memory.
According to the technical scheme, the first parameter configuration files corresponding to the default display configuration parameters in the target page are obtained through responding to the display instruction of the target page, business logic codes in the first parameter configuration files are loaded into the memory together, the target page is rendered through running the business logic codes in the memory, in the target page display process, the alternative display configuration parameters switched by a user aiming at least one target default display configuration parameter in the target page are obtained, the alternative display configuration parameters are used as update configuration parameters corresponding to the target default display configuration parameters, required configuration files corresponding to the update configuration parameters are generated, the application client matched with the target page is restarted, the second parameter configuration files corresponding to the update configuration parameters are searched in the prestored multiple parameter configuration files according to the required configuration files, all the remaining display configuration parameters except the target default display configuration parameters are removed, the third parameter configuration files corresponding to the remaining default display configuration parameters are obtained, the third parameter configuration files corresponding to the target default display configuration parameters respectively are used as update configuration parameters corresponding to the target default display configuration parameters, the service files and the second parameter configuration files are updated to the memory together, and the business logic codes can be updated through running in the memory, and the memory is updated to enable the user to experience to be improved.
Example IV
Fig. 4 is a block diagram of a page updating apparatus according to a third embodiment of the present invention, where the apparatus includes: a profile acquisition module 410, a target page rendering module 420, an update parameter acquisition module 430, and an update page rendering module 440.
The configuration file obtaining module 410 is configured to obtain, in response to a display instruction of the target page, a first parameter configuration file corresponding to each default display configuration parameter in the target page;
the target page rendering module 420 is configured to load the service logic codes in each first parameter configuration file into the memory together, and render the target page by running each service logic code in the memory;
the update parameter obtaining module 430 is configured to obtain, in a target page display process, an alternative display configuration parameter for switching at least one target default display configuration parameter in a target page by a user, and use the alternative display configuration parameter as an update configuration parameter corresponding to the target default display configuration parameter;
the update page rendering module 440 is configured to obtain second parameter configuration files corresponding to each update configuration parameter, update the service logic codes corresponding to each target default display configuration parameter in the memory to the service logic codes in each second parameter configuration file, and render the updated target page by running the updated service logic codes in the memory.
According to the technical scheme, the first parameter configuration files corresponding to the default display configuration parameters in the target page are obtained in response to the display instruction of the target page, the business logic codes in the first parameter configuration files are loaded into the memory together, the target page is rendered by running the business logic codes in the memory, the alternative display configuration parameters switched by a user aiming at least one target default display configuration parameter in the target page are obtained in the display process of the target page, the alternative display configuration parameters are used as update configuration parameters corresponding to the target default display configuration parameters, the second parameter configuration files corresponding to the update configuration parameters are obtained, the business logic codes corresponding to the target default display configuration parameters in the memory are updated to the business logic codes in the second parameter configuration files, and the updated business logic codes in the memory are rendered to obtain the technical means of the target page.
On the basis of the above embodiments, the display configuration parameters include a page layout mode, a page color and a page text format.
Updating the page rendering module 440 may include:
the client restarting unit is used for restarting the application client matched with the target page and acquiring second parameter configuration files corresponding to the updated configuration parameters respectively after restarting;
a remaining parameter obtaining unit, configured to obtain each remaining default display configuration parameter except for each target default display configuration parameter in all default display configuration parameters;
a third parameter configuration file obtaining unit, configured to obtain third parameter configuration files corresponding to the remaining default display configuration parameters respectively;
the code running unit is used for loading the business logic codes in each third parameter configuration file and each second parameter configuration file into the memory together, and rendering to obtain an updated target page by running each business logic code in the memory;
a demand configuration file generating unit, configured to generate demand configuration files corresponding to the updated configuration parameters respectively;
the file searching unit is used for searching second parameter configuration files corresponding to each updated configuration parameter respectively in a plurality of pre-stored parameter configuration files according to each required configuration file;
The pre-stored multiple parameter configuration files comprise character configuration files corresponding to various page character formats; the text configuration file comprises a text comparison table, wherein the text comparison table is a data table taking the names of all the controls in the target page as key values and the text displayed in all the controls as data;
the file name generation unit is used for generating target file names corresponding to the updated configuration parameters respectively according to the pre-stored mapping relation between the display configuration parameters and the parameter configuration file names;
the first demand file generation unit is used for generating demand configuration files respectively corresponding to the updated configuration parameters according to the names of the target files, wherein the demand configuration files comprise the corresponding names of the target files;
the name comparison unit is used for reading the names of the target files included in each required configuration file and comparing the names of the target files with the names of each parameter configuration file;
the file determining unit is used for determining second parameter configuration files corresponding to the updated configuration parameters respectively according to the comparison result;
the second demand file generating unit is used for generating demand configuration files respectively corresponding to the update configuration parameters according to the update configuration parameters, wherein the demand configuration files comprise the corresponding update configuration parameters;
And the parameter reading unit is used for reading the updated configuration parameters included in each required configuration file, and searching second parameter configuration files corresponding to each updated configuration parameter respectively according to the pre-stored mapping relation between each display configuration parameter and the parameter configuration file.
The page updating device provided by the embodiment of the invention can execute the page updating method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example five
Fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention, where, as shown in fig. 5, the computer device includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of processors 510 in the computer device may be one or more, one processor 510 being taken as an example in fig. 5; the processor 510, memory 520, input means 530, and output means 540 in the computer device may be connected by a bus or other means, for example by a bus connection in fig. 5. The memory 520 is a computer readable storage medium, and may be used to store software programs, computer executable programs, and modules, such as program instructions/modules corresponding to a page update method in any embodiment of the present invention (e.g., a configuration file acquisition module 410, a target page rendering module 420, an update parameter acquisition module 430, and an update page rendering module 440 in a page update apparatus). The processor 510 executes various functional applications of the computer device and data processing, i.e., implements a page update method as described above, by running software programs, instructions, and modules stored in the memory 520. That is, the program, when executed by the processor, implements:
Responding to a display instruction of a target page, and acquiring first parameter configuration files corresponding to default display configuration parameters in the target page;
the business logic codes in each first parameter configuration file are loaded into the memory together, and a target page is rendered by running each business logic code in the memory;
in the display process of the target page, acquiring alternative display configuration parameters switched by a user aiming at least one target default display configuration parameter in the target page, and taking the alternative display configuration parameters as updated configuration parameters corresponding to the target default display configuration parameters;
and acquiring second parameter configuration files corresponding to the updated configuration parameters respectively, updating service logic codes corresponding to the target default display configuration parameters in the memory into service logic codes in the second parameter configuration files, and rendering to obtain updated target pages by running the updated service logic codes in the memory.
Memory 520 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 520 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 520 may further include memory located remotely from processor 510, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The input means 530 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the computer device, and may include a keyboard, a mouse, and the like. The output 540 may include a display device such as a display screen.
Example six
The sixth embodiment of the present invention further provides a computer readable storage medium having a computer program stored thereon, where the computer program when executed by a processor implements the method according to any embodiment of the present invention. Of course, the computer readable storage medium provided by the embodiments of the present invention may perform the related operations in the page update method provided by any of the embodiments of the present invention. That is, the program, when executed by the processor, implements:
responding to a display instruction of a target page, and acquiring first parameter configuration files corresponding to default display configuration parameters in the target page;
the business logic codes in each first parameter configuration file are loaded into the memory together, and a target page is rendered by running each business logic code in the memory;
in the display process of the target page, acquiring alternative display configuration parameters switched by a user aiming at least one target default display configuration parameter in the target page, and taking the alternative display configuration parameters as updated configuration parameters corresponding to the target default display configuration parameters;
and acquiring second parameter configuration files corresponding to the updated configuration parameters respectively, updating service logic codes corresponding to the target default display configuration parameters in the memory into service logic codes in the second parameter configuration files, and rendering to obtain updated target pages by running the updated service logic codes in the memory.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the page updating apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A method for updating a page, comprising:
responding to a display instruction of a target page, and acquiring first parameter configuration files corresponding to default display configuration parameters in the target page;
the business logic codes in each first parameter configuration file are loaded into the memory together, and a target page is rendered by running each business logic code in the memory;
in the display process of the target page, acquiring alternative display configuration parameters switched by a user aiming at least one target default display configuration parameter in the target page, and taking the alternative display configuration parameters as updated configuration parameters corresponding to the target default display configuration parameters;
Restarting the application client matched with the target page, and acquiring second parameter configuration files corresponding to each updated configuration parameter respectively after restarting; acquiring all remaining default display configuration parameters except for all target default display configuration parameters in all default display configuration parameters; acquiring third parameter configuration files respectively corresponding to the remaining default display configuration parameters; and loading the business logic codes in each third parameter configuration file and each second parameter configuration file into the memory together, and rendering to obtain the updated target page by running each business logic code in the memory.
2. The method of claim 1, further comprising, prior to restarting the application client that matches the target page:
generating a demand configuration file corresponding to each updated configuration parameter respectively;
obtaining a second parameter configuration file corresponding to each updated configuration parameter respectively, including:
and searching second parameter configuration files corresponding to the updated configuration parameters respectively in a plurality of pre-stored parameter configuration files according to the required configuration files.
3. The method of claim 2, wherein generating a demand profile corresponding to each of the updated configuration parameters comprises:
Generating target file names corresponding to the updated configuration parameters respectively according to the pre-stored mapping relation between the display configuration parameters and the parameter configuration file names;
generating a demand configuration file corresponding to each updated configuration parameter according to each target file name, wherein the demand configuration file comprises the corresponding target file name;
according to each requirement configuration file, searching a second parameter configuration file corresponding to each updating configuration parameter in a plurality of pre-stored parameter configuration files, wherein the second parameter configuration files comprise:
reading the names of target files included in each requirement configuration file, and comparing the names of the target files with the names of each parameter configuration file;
and determining second parameter configuration files corresponding to the updated configuration parameters respectively according to the comparison result.
4. The method of claim 2, wherein generating a demand profile corresponding to each of the updated configuration parameters comprises:
generating a demand configuration file corresponding to each update configuration parameter according to each update configuration parameter, wherein the demand configuration file comprises the corresponding update configuration parameter;
According to each requirement configuration file, searching a second parameter configuration file corresponding to each updating configuration parameter in a plurality of pre-stored parameter configuration files, wherein the second parameter configuration files comprise:
and reading the updated configuration parameters included in each required configuration file, and searching second parameter configuration files corresponding to each updated configuration parameter according to the mapping relation between each pre-stored display configuration parameter and the parameter configuration file.
5. The method of claim 1, wherein the display configuration parameters include page layout, page color, and page text format.
6. The method according to any one of claims 2-5, wherein the pre-stored plurality of parameter profiles includes text profiles corresponding to a plurality of page text formats;
the text configuration file comprises a text comparison table, and the text comparison table is a data table taking the names of all the controls in the target page as key values and the text displayed in all the controls as data.
7. A page updating apparatus, characterized by comprising:
the configuration file acquisition module is used for responding to the display instruction of the target page and acquiring first parameter configuration files corresponding to default display configuration parameters in the target page respectively;
The target page rendering module is used for loading the business logic codes in each first parameter configuration file into the memory together and rendering to obtain a target page by running each business logic code in the memory;
the updating parameter acquisition module is used for acquiring alternative display configuration parameters switched by a user aiming at least one target default display configuration parameter in a target page in the target page display process, and taking the alternative display configuration parameters as updating configuration parameters corresponding to the target default display configuration parameters;
the updating page rendering module is used for restarting the application client matched with the target page and acquiring second parameter configuration files corresponding to the updating configuration parameters respectively after restarting; acquiring all remaining default display configuration parameters except for all target default display configuration parameters in all default display configuration parameters; acquiring third parameter configuration files respectively corresponding to the remaining default display configuration parameters; and loading the business logic codes in each third parameter configuration file and each second parameter configuration file into the memory together, and rendering to obtain the updated target page by running each business logic code in the memory.
8. A computer device, comprising:
one or more processors;
a storage means for storing one or more programs;
the page update method of any of claims 1-6, when the one or more programs are executed by the one or more processors, causing the one or more processors to execute the programs.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the page updating method according to any of claims 1-6.
CN202111074851.7A 2021-09-14 2021-09-14 Page updating method and device, computer equipment and storage medium Active CN113778488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111074851.7A CN113778488B (en) 2021-09-14 2021-09-14 Page updating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111074851.7A CN113778488B (en) 2021-09-14 2021-09-14 Page updating method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113778488A CN113778488A (en) 2021-12-10
CN113778488B true CN113778488B (en) 2024-02-06

Family

ID=78843668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111074851.7A Active CN113778488B (en) 2021-09-14 2021-09-14 Page updating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113778488B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006344237A (en) * 2006-08-07 2006-12-21 Fujitsu Ltd Display device
CN103279373A (en) * 2013-05-31 2013-09-04 广州市动景计算机科技有限公司 Method and device for updating browser shell functions
WO2018077085A1 (en) * 2016-10-28 2018-05-03 腾讯科技(深圳)有限公司 Application processing method, device and storage medium
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN108304201A (en) * 2017-09-14 2018-07-20 腾讯科技(深圳)有限公司 Object updating method, device and equipment
CN110413932A (en) * 2019-07-31 2019-11-05 北京金山云网络技术有限公司 Page display method, device, terminal, server, system and storage medium
CN111857903A (en) * 2020-04-22 2020-10-30 北京嘀嘀无限科技发展有限公司 Display page processing method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10705965B2 (en) * 2018-07-23 2020-07-07 EMC IP Holding Company LLC Metadata loading in storage systems

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006344237A (en) * 2006-08-07 2006-12-21 Fujitsu Ltd Display device
CN103279373A (en) * 2013-05-31 2013-09-04 广州市动景计算机科技有限公司 Method and device for updating browser shell functions
WO2018077085A1 (en) * 2016-10-28 2018-05-03 腾讯科技(深圳)有限公司 Application processing method, device and storage medium
CN108304201A (en) * 2017-09-14 2018-07-20 腾讯科技(深圳)有限公司 Object updating method, device and equipment
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN110413932A (en) * 2019-07-31 2019-11-05 北京金山云网络技术有限公司 Page display method, device, terminal, server, system and storage medium
CN111857903A (en) * 2020-04-22 2020-10-30 北京嘀嘀无限科技发展有限公司 Display page processing method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于配置文件的web页面自动生成系统;尹航;詹舒波;;软件(第10期);全文 *

Also Published As

Publication number Publication date
CN113778488A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
CN111045655B (en) Page rendering method and device, rendering server and storage medium
US20080079730A1 (en) Character-level font linking
CN111666123A (en) Page theme control method and system and computer equipment
CN110705237B (en) Automatic document generation method, data processing device and storage medium
US10402474B2 (en) Keyboard input corresponding to multiple languages
US8667022B2 (en) Adjustment apparatus, adjustment method, and recording medium of adjustment program
US7272792B2 (en) Kana-to-kanji conversion method, apparatus and storage medium
JP4502615B2 (en) Similar sentence search device, similar sentence search method, and program
CN110580189A (en) method and device for generating front-end page, computer equipment and storage medium
JP2016531352A (en) Method, device, program and device for updating input system
CN115048177B (en) Dynamic configuration method for completing business scene based on custom container
CN113268246B (en) Regular expression generation method and device and computer equipment
US20180018315A1 (en) Information processing device, program, and information processing method
WO2019149065A1 (en) Sticker-compatible display method, device, terminal, and computer readable storage medium
CN111258434A (en) Method, device, equipment and storage medium for inserting pictures into chat interface
CN111930891B (en) Knowledge graph-based search text expansion method and related device
JP2020030648A (en) File management device, file management method, and program
CN113778488B (en) Page updating method and device, computer equipment and storage medium
CN117313675A (en) Text modification method, apparatus, computer device and computer readable storage medium
CN113268232A (en) Page skin generation method and device and computer readable storage medium
CN115713572A (en) Text image generation method and device, electronic equipment and readable storage medium
KR20230124420A (en) Method and computer program of providing an editing interface of translated content
CN111857906A (en) Text display method, device and system of terminal and storage medium
CN111198742B (en) Customized font implementation method, device, terminal and readable storage medium
US20040025114A1 (en) Preserving content or attribute information during conversion from a structured document to a computer program

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
GR01 Patent grant
GR01 Patent grant