CN113760317A - Page display method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN113760317A
CN113760317A CN202011289047.6A CN202011289047A CN113760317A CN 113760317 A CN113760317 A CN 113760317A CN 202011289047 A CN202011289047 A CN 202011289047A CN 113760317 A CN113760317 A CN 113760317A
Authority
CN
China
Prior art keywords
page
displayed
variable parameter
display control
control expression
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
CN202011289047.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.)
Beijing Jingdong Tuoxian Technology Co Ltd
Original Assignee
Beijing Jingdong Tuoxian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Tuoxian Technology Co Ltd filed Critical Beijing Jingdong Tuoxian Technology Co Ltd
Priority to CN202011289047.6A priority Critical patent/CN113760317A/en
Publication of CN113760317A publication Critical patent/CN113760317A/en
Pending legal-status Critical Current

Links

Images

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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the invention discloses a page display method, a page display device, page display equipment and a storage medium. The method comprises the following steps: when a page display instruction is received, acquiring page configuration data of a page to be displayed, which is issued by a server; the page configuration data comprises a display control expression of an element to be displayed in the page to be displayed, and the display control expression comprises at least one variable parameter and an operator; determining the value of a variable parameter contained in the display control expression, and determining an operation result corresponding to the display control expression according to the value of the variable parameter; and rendering and displaying the page to be displayed according to the operation result. According to the embodiment of the invention, the expression issued by the server is acquired and operated, and the page is rendered and displayed based on the operation result, so that the problem of resubmitting the updated version is solved, and the upgrading efficiency and the user experience of the client are improved.

Description

Page display method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a page display method, a page display device, page display equipment and a storage medium.
Background
In mobile terminal development, personalized configuration update is often performed on a display page of an application program due to business requirements or problem solving. At present, a common configuration updating method is that a developer at a client submits an updated application program to an application market, and a user can download an updated version through the application market and upgrade the application program.
In the process of implementing the invention, the inventor finds that at least the following technical problems exist in the prior art:
due to different auditing rules of each application market, after the updated version of the application program is submitted, the updated version of the application program needs to be issued to a user for upgrading after being audited by application market auditors, so that timeliness of repairing emergency problems is affected. In addition, developers need to monitor the running condition of the application program in real time so as to timely repair the problems. If the user is required to download the updated configuration through the application marketplace after each repair, the user experience may be greatly reduced.
Disclosure of Invention
The embodiment of the invention provides a page display method, a page display device, page display equipment and a page display storage medium, which are used for improving the updating efficiency and user experience of a client.
In a first aspect, an embodiment of the present invention provides a page display method, where the method includes:
when a page display instruction is received, acquiring page configuration data of a page to be displayed, which is issued by a server; the page configuration data comprises a display control expression of an element to be displayed in the page to be displayed, and the display control expression comprises at least one variable parameter and an operator;
determining the value of a variable parameter contained in the display control expression, and determining an operation result corresponding to the display control expression according to the value of the variable parameter;
and rendering and displaying the page to be displayed according to the operation result.
In a second aspect, an embodiment of the present invention further provides a page display apparatus, where the apparatus includes:
the page configuration data acquisition module is used for acquiring page configuration data of a page to be displayed, which is issued by the server side, when a page display instruction is received; the page configuration data comprises a display control expression of an element to be displayed in the page to be displayed, and the display control expression comprises at least one variable parameter and an operator;
the operation result determining module is used for determining the value of the variable parameter contained in the display control expression and determining the operation result corresponding to the display control expression according to the value of the variable parameter;
and the page rendering display module is used for rendering and displaying the page to be displayed according to the operation result.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory 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 implement any of the page display methods referred to above.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform any of the above-mentioned page display methods.
The embodiment of the invention has the following advantages or beneficial effects:
according to the embodiment of the invention, the display control expression of the elements to be displayed in the page to be displayed issued by the server is obtained, the operation result of the display control expression is determined based on the value of the variable parameter, the page to be displayed is rendered and displayed according to the operation result, and the problem of complex version updating process of the client is solved, so that a developer can update the display control expression issued to the client at the server, and execute the display control expression through the client, so that the purpose of updating the client is achieved, the configuration updating efficiency of the client is improved, and the user experience is further improved.
Drawings
Fig. 1 is a flowchart of a page display method according to an embodiment of the present invention.
Fig. 2 is a flowchart of a page display method according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a specific example of a page display method according to a second embodiment of the present invention.
Fig. 4 is a schematic diagram of a page display device according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a page display method according to an embodiment of the present invention, where the method is applicable to a case where a client displays an application page, and the method may be executed by a page display apparatus, where the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in a terminal device, and for example, the terminal device may be an intelligent terminal such as a mobile terminal, a desktop computer, a notebook computer, and a tablet computer.
The embodiment specifically comprises the following steps:
s110, when a page display instruction is received, page configuration data of a page to be displayed, which is issued by a server, is acquired.
Illustratively, when a user performs a page opening operation, the client generates a page display instruction. Specifically, when the page display instruction is the display instruction of the page a, the page configuration data sent by the server and associated with the page a is obtained, and when the page display instruction is the display instruction of the page B, the page configuration data sent by the server and associated with the page B is obtained. The page configuration data comprises configuration data which can be directly modified by a developer at a server.
In this embodiment, the page configuration data includes a display control expression of an element to be displayed in the page to be displayed, and the display control expression includes at least one variable parameter and an operator.
The elements to be displayed include, but are not limited to, application controls, numerical content, object styles, hyperlinks, and the like, wherein the object styles may be image styles, table styles, text styles, and the like. The display control expression is used for representing display logic of the element to be displayed. Illustratively, the operator includes, but is not limited to, at least one of an arithmetic operator, a join operator, a relational operator, a valuation operator, and a logical operator. For example, the control expression is shown as "A + B + C", where A, B and C represent variable parameters and "+" represents an arithmetic operator.
In one embodiment, optionally, before receiving the page display instruction, the method further includes: when a preset updating condition is met, acquiring page configuration data of a page to be displayed in a client from a server, and storing the page configuration data in a local cache; correspondingly, acquiring the page configuration data of the page to be displayed issued by the server includes: and reading page configuration data of the page to be displayed from the local cache.
In one embodiment, optionally, the preset update condition includes at least one of a time when the client starts up, a preset update time period is met, and the client runs in the background. Here, the preset update time period may be 1 hour or 1 day, for example. When a preset updating condition is met, the client pulls the page configuration data of the page to be displayed from the server, wherein the pulled page configuration data can be specifically updated page configuration data. In this embodiment, since the page configuration data is stored in the local cache, only the updated page configuration data needs to be pulled from the server, and the locally stored page configuration data is updated, so as to reduce the data amount of data transmission, thereby improving the updating efficiency.
The method has the advantages that when the server does not update the client, the client only needs to obtain the page configuration data from the local, and does not need to obtain the page configuration data from the server when the page is displayed each time, so that page rendering and displaying efficiency is improved, and access pressure of the server is reduced.
And S120, determining the value of the variable parameter contained in the display control expression, and determining the operation result corresponding to the display control expression according to the value of the variable parameter.
In an exemplary embodiment, the value of the variable parameter included in the display control expression is obtained from a local cache, or the value of the variable parameter included in the display control expression is obtained from a server.
In an embodiment, optionally, determining an operation result corresponding to the display control expression according to a value of the variable parameter includes: adding values of the display control expression and the variable parameters into the analysis object through an adding function in the analysis object which is created in advance; the analysis object is an analysis tool for analyzing the display control expression; and executing the analysis operation on the analysis object which has executed the addition operation through the evaluation function in the analysis object to obtain an operation result of the display control expression.
In one embodiment, optionally, the parsing object includes a script engine object or a context object, and accordingly, the method further includes: when the running system of the client is an android system, a script engine object is created through a script engine management class and a script engine interface in a java extension script packet in the client; and when the running system of the client is the IOS system, creating the context object through the JSContext library in the client.
In one embodiment, when the running system of the client is an android system, a script engine object (script engine object) is created through a script engine manager (script engine management class) and a script engine (script engine interface) in a script (script) package in a javax (Java extension package) in the client. Illustratively, a script engine manager object is created by the script engine manager, and then the script engine object is obtained by the script engine.
In another embodiment, when the running system of the client is an IOS system, a context object (context object) is created by calling the JSContext library in the client.
Taking the android system as an example, specifically, values of the display control expression and the variable parameter are added to the script engine object through a put (adding) function of the script engine object, and an analysis operation is performed on the display control expression in the script engine object through an eval (evaluating) function of the script engine object, so that an operation result is obtained.
And S130, rendering and displaying the page to be displayed according to the operation result.
Specifically, the operation result is an operation result corresponding to an element to be displayed in the page to be displayed, the display information of the element to be displayed is determined according to the corresponding relation between the element to be displayed and different operation results, and the element to be displayed is rendered and displayed based on the display information.
According to the technical scheme, the display control expression of the elements to be displayed in the page to be displayed, which is issued by the server, is obtained, the operation result of the display control expression is determined based on the value of the variable parameter, the page to be displayed is rendered and displayed according to the operation result, the problem that the version updating process of the client is complex is solved, developers can update the display control expression issued to the client at the server, and the display control expression is executed through the client, so that the purpose of updating the client is achieved, the configuration updating efficiency of the client is improved, and further the user experience is improved.
Example two
Fig. 2 is a flowchart of a page display method according to a second embodiment of the present invention, and the technical solution of the present embodiment is further detailed based on the above-mentioned embodiment. Optionally, the page configuration data further includes a variable parameter set.
The specific implementation steps of this embodiment include:
s210, when a page display instruction is received, a display control expression and a variable parameter set of a page to be displayed, which are issued by a server, are obtained.
The variable parameter set may be used to represent a parameter set that controls an operation result of the display control expression, and for example, the variable parameter set is stored in a local cache as an object Entry instance. In one embodiment, the variable parameter set optionally includes at least one variable parameter in the display control expression. In this embodiment, for example, the display control expression is "a + B + C", the variable parameter set may be [ a, B ], or [ a, B, C ], and specifically, the number of the variable parameters in the variable parameter set is less than or equal to the number of the variable parameters included in the display control expression.
In another embodiment, optionally, the variable parameter set includes at least one variable parameter in the display control expression and values of each variable parameter in the at least one variable parameter. In this embodiment, the variable parameter set is exemplarily [ a ═ 1, B ═ 2] or [ a, 1, B, 2], and the correspondence between the variable parameters in the variable parameter set and the values of the variable parameters is not limited herein.
S220, determining the value of the variable parameter contained in the display control expression, and determining the operation result corresponding to the display control expression according to the value of the variable parameter.
In an embodiment, optionally, when the variable parameter set includes at least one variable parameter in the display control expression, determining a value of the variable parameter included in the display control expression includes: for the variable parameters contained in the variable parameter set, obtaining the values of the variable parameters from the server side; and for the variable parameters not contained in the variable parameter set, determining the values of the variable parameters as preset default values.
Specifically, a locally stored variable parameter set is obtained, and values of variable parameters in the variable parameter set issued by the server are obtained based on a java reflection mechanism.
For example, the preset default value may be set to any value, and certainly may be a value used in the last operation. For example, assuming that the value of the variable C is "1" when the display control expression is operated last time, and the variable C is not included in the variable parameter set issued by the server in the operation of this time, the preset default value of the variable C in the display control expression is set to "1" in the operation of this time.
In another embodiment, optionally, when the variable parameter set includes at least one variable parameter in the display control expression and values of each variable parameter in the at least one variable parameter, determining values of the variable parameters included in the display control expression, includes: for the variable parameters contained in the variable parameter set, reading the values of the variable parameters from the variable parameter set; and for the variable parameters not contained in the variable parameter set, determining the values of the variable parameters as preset default values.
Specifically, the value of each variable parameter in the variable parameter set of the page to be displayed is read from the local cache.
And S230, rendering and displaying the page to be displayed according to the operation result.
On the basis of the foregoing embodiment, optionally, rendering and displaying the page to be displayed according to the operation result includes: when the element to be displayed is the application control, determining whether the application control is rendered and displayed in the page to be displayed or not according to the operation result; or when the element to be displayed is numerical content, taking the operation result as the numerical content, and rendering and displaying the numerical content on the page to be displayed; or when the element to be displayed is the object style, selecting a target object style corresponding to the operation result, and rendering and displaying the page to be displayed based on the target object style.
In one embodiment, when the element to be displayed is an application control, the application control may be, for example, a button, a text box, a window, or the like. There are only two kinds of operation results corresponding to the application control, and for example, the display control expression corresponding to the application control is "a < ═ 0& & B & & 1& (C ═ 0| | | D ═ 1)", the operation result of the display control expression may be "0" or "1", where "0" indicates that all the variable parameters satisfy the above condition and "1" indicates that at least one variable parameter does not satisfy the above condition. Illustratively, the application control is not rendered and displayed in the page to be displayed when the operation result is '0', and the application control is rendered and displayed in the page to be displayed when the operation result is '1'.
In one embodiment, when the element to be displayed is numerical content, for example, the numerical content represents a specific displayed numerical value in the page to be displayed, such as the content related to the numerical value, such as price, number of people, time, size, and the like, included in the page to be displayed. The operation result corresponding to the numerical content may be any numerical value, for example, when the element to be displayed is a price, the operation result is 100, and then 100 is rendered and displayed on the page to be displayed as the numerical content.
In one embodiment, when the element to be displayed is an object style, the object style may be, for example, an image style, a table style, a text style, a page style, and the like. The operation result corresponding to the object style is related to the type of the preset object style. For example, when the element to be displayed is a page style, the preset page style includes a page style a, a page style B, and a page style C, and sequentially corresponds to the operation results "1", "2", and "3", specifically, when the operation result is "1", the target page style is the page style a, and the page to be displayed is rendered and displayed based on the page style a.
The above examples are explained only by specific operation numerical values, but the specific numerical values of the operation results are not limited and may be set according to specific situations.
Fig. 3 is a flowchart of a specific example of a page display method according to a second embodiment of the present invention. After a user starts a client, the client pulls page configuration data of a server, wherein the page configuration data comprises a display control expression. And when the user opens the configured data of the page to be displayed, the client renders the page according to the operation result obtained by the display control expression, and displays the rendered page to be displayed to the user.
If the page configuration data only contains the display control expression, when a client developer needs to update the configuration, the updated display control expression can only be sent to the client through the server.
EXAMPLE III
Fig. 4 is a schematic diagram of a page display device according to a third embodiment of the present invention. The embodiment is applicable to the case that the client displays the application page, and the apparatus can be implemented in a software and/or hardware manner, and the apparatus can be configured in the terminal device. The page display device includes: a page configuration data acquisition module 310, an operation result determination module 320 and a page rendering display module 330.
The page configuration data obtaining module 310 is configured to, when a page display instruction is received, obtain page configuration data of a page to be displayed, which is issued by a server; the page configuration data comprises a display control expression of an element to be displayed in the page to be displayed, and the display control expression comprises at least one variable parameter and an operator;
the operation result determining module 320 is configured to determine a value of a variable parameter included in the display control expression, and determine an operation result corresponding to the display control expression according to the value of the variable parameter;
and the page rendering and displaying module 330 is configured to render and display the page to be displayed according to the operation result.
According to the technical scheme, the display control expression of the elements to be displayed in the page to be displayed, which is issued by the server, is obtained, the operation result of the display control expression is determined based on the value of the variable parameter, the page to be displayed is rendered and displayed according to the operation result, the problem that the version updating process of the client is complex is solved, developers can update the display control expression issued to the client at the server, and the display control expression is executed through the client, so that the purpose of updating the client is achieved, the configuration updating efficiency of the client is improved, and further the user experience is improved.
On the basis of the above technical solution, optionally, the apparatus further includes:
the page configuration data storage module is used for acquiring the page configuration data of the page to be displayed in the client from the server when the preset updating condition is met, and storing the page configuration data in a local cache;
correspondingly, the page configuration data obtaining module 310 is specifically configured to:
and reading page configuration data of the page to be displayed from the local cache.
On the basis of the above technical solution, optionally, the page configuration data further includes a variable parameter set, and the variable parameter set includes at least one variable parameter in the display control expression; the operation result determination module 320 includes:
the variable parameter value first determining unit is used for acquiring the value of the variable parameter from the server side for the variable parameter contained in the variable parameter set; and for the variable parameters not contained in the variable parameter set, determining the values of the variable parameters as preset default values.
On the basis of the above technical solution, optionally, the page configuration data further includes a variable parameter set, where the variable parameter set includes at least one variable parameter in the display control expression and a value of each variable parameter in the at least one variable parameter; the operation result determination module 320 includes:
the variable parameter value second determining unit is used for reading the value of the variable parameter from the variable parameter set for the variable parameter contained in the variable parameter set; and for the variable parameters not contained in the variable parameter set, determining the values of the variable parameters as preset default values.
On the basis of the above technical solution, optionally, the operation result determining unit 320 is specifically configured to:
adding values of the display control expression and the variable parameters into the analysis object through an adding function in the analysis object which is created in advance; the analysis object is an analysis tool for analyzing the display control expression;
and executing the analysis operation on the analysis object which has executed the addition operation through the evaluation function in the analysis object to obtain an operation result of the display control expression.
On the basis of the above technical solution, optionally, the parsing object includes a script engine object or a context object, and correspondingly, the apparatus further includes:
the script engine object creating module is used for creating a script engine object through a script engine management class and a script engine interface in a java extension script package in the client when the running system of the client is an android system;
and the context object determining module is used for creating the context object through a JSContext library in the client when the running system of the client is an IOS system.
On the basis of the above technical solution, optionally, the page rendering and displaying module 330 is specifically configured to:
when the element to be displayed is the application control, determining whether the application control is rendered and displayed in the page to be displayed or not according to the operation result; alternatively, the first and second electrodes may be,
when the element to be displayed is numerical content, taking the operation result as the numerical content, and rendering and displaying the numerical content on the page to be displayed; alternatively, the first and second electrodes may be,
and when the element to be displayed is the object style, selecting a target object style corresponding to the operation result, and rendering and displaying the page to be displayed based on the target object style.
The page display device provided by the embodiment of the invention can be used for executing the page display method provided by the embodiment of the invention, and has corresponding functions and beneficial effects of the execution method.
It should be noted that, in the embodiment of the page display apparatus, the units and modules included in the embodiment are only divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, where the embodiment of the present invention provides a service for implementing the page display method according to the foregoing embodiment of the present invention, and the page display apparatus according to the foregoing embodiment may be configured. FIG. 5 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 5 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 5, electronic device 12 is embodied in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 5, the network adapter 20 communicates with the other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, such as implementing a page display method provided by an embodiment of the present invention, by running a program stored in the system memory 28.
Through the electronic equipment, the problem that the version updating process of the client is complex is solved, so that developers can update the display control expression issued to the client at the server side and execute the display control expression through the client, the purpose of updating the client is achieved, the configuration updating efficiency of the client is improved, and further the user experience is improved.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a page display method, where the method includes:
when a page display instruction is received, acquiring page configuration data of a page to be displayed, which is issued by a server; the page configuration data comprises a display control expression of an element to be displayed in the page to be displayed, and the display control expression comprises at least one variable parameter and an operator;
determining the value of a variable parameter contained in the display control expression, and determining an operation result corresponding to the display control expression according to the value of the variable parameter;
and rendering and displaying the page to be displayed according to the operation result.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the page display method provided by any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments illustrated herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A page display method, comprising:
when a page display instruction is received, acquiring page configuration data of a page to be displayed, which is issued by a server; the page configuration data comprises a display control expression of an element to be displayed in the page to be displayed, and the display control expression comprises at least one variable parameter and an operator;
determining the value of a variable parameter contained in the display control expression, and determining an operation result corresponding to the display control expression according to the value of the variable parameter;
and rendering and displaying the page to be displayed according to the operation result.
2. The method of claim 1, wherein prior to receiving a page display instruction, the method further comprises:
when a preset updating condition is met, acquiring page configuration data of a page to be displayed in a client from a server, and storing the page configuration data in a local cache;
correspondingly, the acquiring the page configuration data of the page to be displayed, which is issued by the server, includes:
and reading the page configuration data of the page to be displayed from a local cache.
3. The method of claim 1, wherein the page configuration data further comprises a variable parameter set, wherein the variable parameter set comprises at least one variable parameter in the display control expression;
correspondingly, the determining the value of the variable parameter included in the display control expression includes:
for the variable parameters contained in the variable parameter set, obtaining the values of the variable parameters from a server side; and for the variable parameters not contained in the variable parameter set, determining the value of the variable parameters as a preset default value.
4. The method according to claim 1, wherein the page configuration data further includes a variable parameter set, and the variable parameter set includes at least one variable parameter in the display control expression and values of each variable parameter in the at least one variable parameter;
determining the value of a variable parameter contained in the display control expression, including:
for the variable parameters contained in the variable parameter set, reading the values of the variable parameters from the variable parameter set; and for the variable parameters not contained in the variable parameter set, determining the value of the variable parameters as a preset default value.
5. The method according to claim 1, wherein the determining, according to the value of the variable parameter, the operation result corresponding to the display control expression includes:
adding the values of the display control expression and the variable parameters into an analysis object through an adding function in the analysis object which is created in advance; the analysis object is an analysis tool for analyzing the display control expression;
and executing the analysis operation on the analysis object which has executed the addition operation through the evaluation function in the analysis object to obtain the operation result of the display control expression.
6. The method of claim 5, wherein the parsing object comprises a script engine object or a context object, and wherein the method further comprises:
when the running system of the client is an android system, a script engine object is created through a script engine management class and a script engine interface in a java extension script packet in the client;
and when the running system of the client is the IOS system, creating the context object through the JSContext library in the client.
7. The method according to claim 1, wherein the rendering and displaying the page to be displayed according to the operation result comprises:
when the element to be displayed is an application control, determining whether the application control is rendered and displayed in the page to be displayed according to the operation result; alternatively, the first and second electrodes may be,
when the element to be displayed is numerical content, taking the operation result as the numerical content, and rendering and displaying the numerical content on the page to be displayed; alternatively, the first and second electrodes may be,
and when the element to be displayed is an object style, selecting a target object style corresponding to the operation result, and rendering and displaying the page to be displayed based on the target object style.
8. A page display apparatus, comprising:
the page configuration data acquisition module is used for acquiring page configuration data of a page to be displayed, which is issued by the server side, when a page display instruction is received; the page configuration data comprises a display control expression of an element to be displayed in the page to be displayed, and the display control expression comprises at least one variable parameter and an operator;
the operation result determining module is used for determining the value of the variable parameter contained in the display control expression and determining the operation result corresponding to the display control expression according to the value of the variable parameter;
and the page rendering display module is used for rendering and displaying the page to be displayed according to the operation result.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the page display method of any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the page display method of any one of claims 1 to 7 when executed by a computer processor.
CN202011289047.6A 2020-11-17 2020-11-17 Page display method, device, equipment and storage medium Pending CN113760317A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011289047.6A CN113760317A (en) 2020-11-17 2020-11-17 Page display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011289047.6A CN113760317A (en) 2020-11-17 2020-11-17 Page display method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113760317A true CN113760317A (en) 2021-12-07

Family

ID=78786128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011289047.6A Pending CN113760317A (en) 2020-11-17 2020-11-17 Page display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113760317A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114428823A (en) * 2022-01-28 2022-05-03 北京国电通网络技术有限公司 Data linkage method, device, equipment and medium based on multidimensional variable expression

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114428823A (en) * 2022-01-28 2022-05-03 北京国电通网络技术有限公司 Data linkage method, device, equipment and medium based on multidimensional variable expression
CN114428823B (en) * 2022-01-28 2022-11-01 北京国电通网络技术有限公司 Data linkage method, device, equipment and medium based on multidimensional variable expression

Similar Documents

Publication Publication Date Title
US9934005B2 (en) Dynamically building locale objects or subsections of locale objects based on historical data
US7093199B2 (en) Design environment to facilitate accessible software
CN107506300B (en) User interface testing method, device, server and storage medium
CN110968305A (en) Applet visualization generation method, device, equipment and storage medium
CN113076104A (en) Page generation method, device, equipment and storage medium
CN110781067A (en) Method, device, equipment and storage medium for calculating starting time consumption
CN111754305A (en) Product customization method, device, equipment and storage medium
US8839251B2 (en) Automating sequential cross-application data transfer operations
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN113971037A (en) Application processing method and device, electronic equipment and storage medium
KR20140116438A (en) Graphical representation of an order of operations
US9141353B2 (en) Dynamically building locale objects at run-time
CN112558966B (en) Depth model visualization data processing method and device and electronic equipment
CN113760317A (en) Page display method, device, equipment and storage medium
CN112799760A (en) Form rendering method and device
US20140351708A1 (en) Customizing a dashboard responsive to usage activity
CN115269285A (en) Test method and device, equipment and computer readable storage medium
CN111741046B (en) Data reporting method, data acquisition method, device, equipment and medium
CN114253537A (en) Form generation method and device, electronic equipment and storage medium
CN109948251B (en) CAD-based data processing method, device, equipment and storage medium
CN114356475A (en) Display processing method, device, equipment and storage medium
CN112988192A (en) Version updating method and device, electronic equipment and storage medium
CN108960433B (en) Method and system for running machine learning modeling process
CN113419711A (en) Page guiding method and device, electronic equipment and storage medium
CN112596838B (en) Method, device, equipment and storage medium for displaying universal Web page

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