CN111897523B - Information display method and device - Google Patents

Information display method and device Download PDF

Info

Publication number
CN111897523B
CN111897523B CN202010607042.7A CN202010607042A CN111897523B CN 111897523 B CN111897523 B CN 111897523B CN 202010607042 A CN202010607042 A CN 202010607042A CN 111897523 B CN111897523 B CN 111897523B
Authority
CN
China
Prior art keywords
display
node
information
determining
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
CN202010607042.7A
Other languages
Chinese (zh)
Other versions
CN111897523A (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.)
Jinmao Green Building Technology Co Ltd
Original Assignee
Jinmao Green Building 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 Jinmao Green Building Technology Co Ltd filed Critical Jinmao Green Building Technology Co Ltd
Priority to CN202010607042.7A priority Critical patent/CN111897523B/en
Publication of CN111897523A publication Critical patent/CN111897523A/en
Application granted granted Critical
Publication of CN111897523B publication Critical patent/CN111897523B/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/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/34Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an information display method and device, and relates to the technical field of information display. The method comprises the following steps: acquiring display parameters of display information, wherein the display parameters comprise display configuration parameters and display content parameters; inquiring a grammar tree corresponding to the display frames according to the display configuration parameters, and determining at least one corresponding node, wherein the grammar tree is integrated with display formats of a plurality of display frames; configuring at least one node according to the display content parameters, and determining a display instance of the display information; and determining a corresponding target display frame according to the display example, and displaying the display information. By annotating the display parameters in the code realization module for realizing information prompt, the information prompt function can be realized, on one hand, the code writing can be simplified, on the other hand, the display parameters can be annotated to switch among different threads, the application scene can be increased conveniently, and the quick development of an App can be facilitated.

Description

Information display method and device
Technical Field
The present invention relates to the field of information display technologies, and in particular, to an information display method and apparatus.
Background
With the rapid development of the mobile internet, various App layers are endless, and similar App products are continuously produced, so that the products compete more strongly, and the user-oriented App products can preempt the machine.
However, in the practical application process of the App product, a prompt function given to the user needs to be realized, and because the code implementation has little technical content and a certain amount of code quantity, unnecessary consumption of development time is caused.
Disclosure of Invention
The present invention has been made in view of the above problems, and has as its object to provide an information display method and apparatus which overcome or at least partially solve the above problems.
According to a first aspect of the present invention, there is provided an information display method comprising:
obtaining display parameters of display information, wherein the display parameters comprise: displaying configuration parameters and display content parameters;
inquiring a grammar tree corresponding to the display frames according to the display configuration parameters, and determining at least one corresponding node, wherein the grammar tree is integrated with display formats of a plurality of display frames;
configuring the at least one node according to the display content parameters, and determining a display instance of the display information;
and determining a corresponding target display frame according to the display example, and displaying the display information.
According to a second aspect of the present invention, there is provided an information display apparatus comprising:
the parameter acquisition module is used for acquiring display parameters of the display information, wherein the display parameters comprise: displaying configuration parameters and display content parameters;
the node query module is used for querying a grammar tree corresponding to the display frame according to the display configuration parameters and determining at least one corresponding node, wherein the grammar tree is integrated with display formats of a plurality of display frames;
the parameter configuration module is used for configuring the at least one node according to the display content parameters and determining a display instance of the display information;
and the information display module is used for determining a corresponding target display frame according to the display example and displaying the display information.
In the scheme of the invention, the display parameters of the display information are obtained, wherein the display parameters comprise the display configuration parameters and the display content parameters, the grammar tree corresponding to the display frame is inquired according to the display configuration parameters, so that the corresponding nodes are determined, each node is configured according to the display content parameters, the display instance of the display information is formed, the corresponding target display frame is determined according to the display instance, and the display information is displayed. The function of information prompt can be realized only by annotating the display parameters in the code realization module for realizing the information prompt, so that on one hand, the writing of codes can be simplified, on the other hand, the switching between different threads can be realized by annotating different display parameters, the application scene can be increased conveniently, and meanwhile, the quick development of an App is facilitated.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures.
In the drawings:
FIG. 1 is a flowchart illustrating steps of an information display method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of another display method according to an embodiment of the present invention;
fig. 3 is a block diagram of an information display device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Referring to fig. 1, a step flowchart of an information display method provided by an embodiment of the present invention is shown, where the method may include:
step 101, obtaining display parameters of display information, wherein the display parameters comprise: display configuration parameters and display content parameters.
In the embodiment of the invention, a user can trigger a display request in a terminal device, such as an application page of a mobile phone terminal, wherein the display request can include display parameters corresponding to display information to be displayed in the application page, and the terminal device can acquire the display parameters from the display request. For example, in an App page applied to an air conditioning system, a user needs to view a historical temperature in a room, and based on this, a display request for displaying the historical temperature on the application page is triggered. And obtaining display parameters corresponding to the display history temperature. Wherein the display parameter may be an annotation code identifying the information display function. The annotation code can be recognized by a specific development language such as JS (JavaScript, script language) and JAVA (computer programming language), thereby being converted into a specific code realizing a display function. Wherein the programming quantity of the annotation code is smaller than the programming quantity of the specific code for realizing the information display function.
In order to enable display of display information, the display information may include display configuration parameters and display content parameters. The display configuration parameters may be understood to include address information, address index, etc. implementing the information display function code. The display content parameter may be understood as content information corresponding to the display information, where the display content parameter includes at least two of the following: display duration of display information, display text, and the like. For example, when no history temperature can be presented, the display text may be "no history" and the display time period is "3S". As another example, where there is a historical temperature available for presentation, the display text may be "in record query" with a display duration of "2S".
Step 102, inquiring a grammar tree corresponding to the display frames according to the display configuration parameters, and determining at least one corresponding node, wherein the grammar tree is integrated with display formats of a plurality of display frames.
In the embodiment of the invention, the code logic difference for realizing the prompt function given to the client is not large in different application scenes, but a certain amount of code quantity is needed for realizing the prompt function in each application scene, so that unnecessary time consumption is caused. Therefore, the display formats corresponding to the corresponding N display frames can be set according to different application scenes. According to this display format, the shape of the display frame, the form of the content corresponding to the display information, and the like can be defined. The display box may also be referred to as a Toast. The display format may be a code structure that prompts the user for a message before the historical temperature is presented. Each display format is converted into a syntax tree. The display format may include information such as method object declaration, object name, object parameters, and statement blocks.
Therefore, the display format can be split according to the nesting level of the codes, for example, the display format can be split from outside to inside, the determined function statement can be used as a first root node of a grammar tree, and the function name, the object parameters and the statement block obtained by splitting are determined as branch nodes of the first root node. And so on, splitting is terminated when the branch node is the basic object. The basic object may be a single numeric symbol, a single parameter, a single function name, etc. In addition, the query method of the syntax tree can be preset, such as a recursive query method, and the positions of the branch nodes positioned at the same level can be determined according to the preset query method after splitting is completed. Since the same code structure is commonly present in each display format, the node generation paths in the same syntax tree have a cross condition. In order to facilitate the later query of the syntax tree to determine the corresponding display format, after the syntax tree is converted, the node address corresponding to each display format can be determined. And determining address information or address index corresponding to the display frame according to the node address, and adding the address information or the address index into the display configuration parameters.
Therefore, when the prompt function is given to the user in different scenes, only different display parameters are required to be set, the grammar tree is queried according to the address information or the address index in the display configuration parameters, all nodes of the grammar tree corresponding to the display configuration parameters can be matched, and the corresponding display format is determined.
Step 103, configuring the at least one node according to the display content parameters, and determining a display instance of the display information.
In the embodiment of the invention, the matched nodes are configured by content information such as display text, display time length and the like in the display content parameters, for example, in a scene of no history record of an air conditioning system, the display text is configured to the corresponding nodes of the display text sentences, and the display time length is configured to the corresponding nodes of the display time length sentences in a 'no history record' manner. In another exemplary scenario, where the air conditioning system has a history, the display text "in record query" is configured to the node of the corresponding display text sentence, and the display duration "2S" is configured to the node of the corresponding display duration sentence. Thereby, a display instance of display information is formed.
And 104, determining a corresponding target display frame according to the display example, and displaying the display information.
In the embodiment of the invention, the display instance can be converted into the specific code which correspondingly realizes the information display function. Based on the specific code of the display information, the display format of the corresponding display information may be determined. From this display format, a corresponding target display frame can be determined.
Thus, according to the form of the conversion engine and the like, the corresponding specific codes are converted, so that the target display frame is displayed in the application page, and display information is displayed in the display frame. For example, the display text "no history" is displayed in the rectangular display frame, the display frame and the display text disappear after 3S, or the display text "in record query" is displayed in the rectangular display frame, and the display frame and the display text disappear after 2S.
In summary, the display parameters of the display information are obtained, wherein the display parameters include display configuration parameters and display content parameters, the grammar tree corresponding to the display frame is queried according to the display configuration parameters, so that the corresponding node is determined, each node is configured according to the display content parameters, a display instance of the display information is formed, the corresponding target display frame is determined according to the display instance, and the display information is displayed. The function of information prompt can be realized only by annotating the display parameters in the code realization module for realizing the information prompt, so that on one hand, the writing of codes can be simplified, on the other hand, the switching between different threads can be realized by annotating different display parameters, the application scene can be increased conveniently, and meanwhile, the quick development of an App is facilitated.
Referring to fig. 2, a flowchart illustrating steps of another information display method according to an embodiment of the present invention may include:
step 201, obtaining display parameters of display information, where the display parameters include: display configuration parameters and display content parameters.
The user may trigger a display request in an application page of a terminal device, such as a mobile phone terminal, where the display request may include a display parameter corresponding to display information to be displayed in the application page, and the terminal device may obtain the display parameter from the display request. For example, in an App page applied to an air conditioning system, a user needs to view a historical temperature in a room, and based on this, a display request for displaying the historical temperature on the application page is triggered. And obtaining display parameters corresponding to the display history temperature. Wherein the display parameter may be an annotation code identifying the information display function. The annotation code can be recognized by a specific development language such as JS (JavaScript, script language) and JAVA (computer programming language), thereby being converted into a specific code realizing a display function. Wherein the programming quantity of the annotation code is smaller than the programming quantity of the specific code for realizing the information display function.
In order to enable display of display information, the display information may include display configuration parameters and display content parameters. The display configuration parameters may be understood to include address information, address index, etc. implementing the information display function code. The display content parameter may be understood as content information corresponding to the display information, where the display content parameter includes at least two of the following: display duration of display information, display text, and the like. For example, when no history temperature can be presented, the display text may be "no history" and the display time period is "3S". As another example, where there is a historical temperature available for presentation, the display text may be "in record query" with a display duration of "2S".
Inquiring a grammar tree corresponding to the display frames according to the display configuration parameters, and determining at least one corresponding node, wherein the grammar tree integrates display formats of a plurality of display frames, and the method can comprise the following steps: step 202-step 204.
Step 202, determining an initial node address and a final node address of a display format of a display frame in a grammar tree according to the display configuration parameters.
Step 203, generating a node address index according to the start node address and the end node address.
And 204, inquiring the grammar tree according to the node address index, and determining the corresponding node.
In the embodiment of the invention, the display formats corresponding to the N display frames can be set according to different application scenes. According to this display format, the shape of the display frame, the form of the content corresponding to the display information, and the like can be defined. Wherein the display frame may also be referred to as Toast. Illustratively, the display format may be a code structure that displays messages to the user prior to presentation of the historical temperatures. The display format may include information such as method object declaration, object name, object parameters, and statement blocks. The display formats are converted to syntax trees as set forth in step 102.
Therefore, the node address of the node corresponding to the display frame can be determined through the grammar tree, and the node address of the first node and the node address of the last node when the grammar tree corresponding to the display frame is inquired can be obtained. The node address of the first node is determined as the starting node address, and the node address of the last node is taken as the ending node address. Therefore, according to the query rule and the node address of the grammar tree, the node address index corresponding to the corresponding display frame is formed and added into the display configuration parameters. Therefore, according to the node address index in the display configuration parameters, query is performed on the grammar tree, and all nodes of the grammar tree corresponding to the display configuration parameters can be matched.
Configuring the at least one node according to the display content parameters, determining a display instance of the display information may comprise the steps of: step 205-step 206.
Step 205, configuring the node according to the display content parameters, and determining the node instance of the node.
And 206, sequentially combining the node instances to form a display instance of the display information.
In the embodiment of the invention, when the grammar tree is inquired, the structure corresponding to the node is determined while the node is inquired, and the node is configured through the content information such as the display text, the display time length and the like in the display content parameters. For example, in a scenario where the air conditioning system has no history, the display text "no history" is configured to a node of the corresponding display text sentence, and the display duration "3S" is configured to a node of the corresponding display duration sentence. In another example, in a scenario where the air conditioning system has a history, the display text "in record query" is configured to a node of a corresponding display text sentence, and the display duration "2S" is configured to a node of a corresponding display duration sentence. After the node inquiry is finished, each node instance is determined, and each node instance is ordered and combined according to the order of the inquiry syntax tree, so that a display instance of display information is formed.
Determining a corresponding target display frame according to the display example, and displaying the display information can comprise the following steps: step 207-step 208.
Step 207, determining a corresponding target display frame according to the display example.
Step 208, converting the display instance into display information according to a conversion engine, and displaying the display information in the target display frame.
In the embodiment of the invention, the display instance can be converted into the specific code for correspondingly realizing the information display function according to the conversion rule of the grammar tree. Based on the specific code of the display information, the display format of the corresponding display information may be determined. From this display format, a corresponding target display frame can be determined.
Therefore, according to the conversion engine, the corresponding specific codes are converted, so that the target display frame is displayed in the application page, and display information is displayed in the display frame. For example, the display text "no history" is displayed in the rectangular display frame, the display frame and the display text disappear after 3S, or the display text "in record query" is displayed in the rectangular display frame, and the display frame and the display text disappear after 2S.
In summary, by acquiring display parameters of display information, where the display parameters include a display configuration parameter and a display content parameter, determining a start node address and an end node address of a display format of a display frame in a syntax tree according to the display configuration parameter, generating a node address index, querying the syntax tree, configuring queried nodes through the display content parameter to form node instances, when querying is finished, ordering and combining the node instances according to a query sequence to form a display instance of the display information, determining a corresponding target display frame through the display instance, and displaying the display information in the target display frame through a conversion engine. The function of information prompt can be realized only by annotating the display parameters in the code realization module for realizing the information prompt, so that on one hand, the writing of codes can be simplified, on the other hand, the switching between different threads can be realized by annotating different display parameters, the application scene can be increased conveniently, and meanwhile, the quick development of an App is facilitated.
Referring to fig. 3, an information display apparatus provided by an embodiment of the present invention may include:
the parameter obtaining module 301 is configured to obtain display parameters of display information, where the display parameters include: display configuration parameters and display content parameters.
The node query module 302 is configured to query a syntax tree corresponding to the display frame according to the display configuration parameter, and determine at least one corresponding node, where the syntax tree integrates display formats of a plurality of display frames.
And the parameter configuration module 303 is configured to configure the at least one node according to the display content parameter, and determine a display instance of the display information.
And the information display module 304 is configured to determine a corresponding target display frame according to the display instance, and display the display information.
An alternative inventive embodiment, the node query module may include:
and the address acquisition sub-module is used for determining node address indexes of the display formats of the display frames in the grammar tree according to the display configuration parameters.
And the node determining submodule is used for inquiring the grammar tree according to the node address index and determining the corresponding node.
An alternative inventive embodiment, the address acquisition sub-module may include:
and the address determining unit is used for determining the initial node address and the end node address of the display format of the display frame in the grammar tree according to the display configuration parameters.
And the index generating unit is used for generating a node address index according to the starting node address and the ending node address.
An alternative inventive embodiment, the parameter configuration module may include:
and the node instance generating sub-module is used for configuring the node according to the display content parameters and determining the node instance of the node.
And the display instance generation sub-module is used for sequentially combining the node instances to form the display instance of the display information.
An alternative inventive embodiment, the information display module may include:
and the display frame determination submodule is used for determining a corresponding target display frame according to the display example.
And the information conversion sub-module is used for converting the display instance into display information according to a conversion engine and displaying the display information in the target display frame.
In summary, the display parameters of the display information are obtained, wherein the display parameters include display configuration parameters and display content parameters, the grammar tree corresponding to the display frame is queried according to the display configuration parameters, so that the corresponding node is determined, each node is configured according to the display content parameters, a display instance of the display information is formed, the corresponding target display frame is determined according to the display instance, and the display information is displayed. The function of information prompt can be realized only by annotating the display parameters in the code realization module for realizing the information prompt, so that on one hand, the writing of codes can be simplified, on the other hand, the switching between different threads can be realized by annotating different display parameters, the application scene can be increased conveniently, and meanwhile, the quick development of an App is facilitated.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
As will be readily appreciated by those skilled in the art: any combination of the above embodiments is possible, and thus is an embodiment of the present invention, but the present specification is not limited by the text.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
An electronic device, comprising:
one or more processors;
a memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described in the above embodiments.
A computer readable storage medium storing a computer program for use in connection with an electronic device, the computer program being executable by a processor to perform the method of the above embodiments.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has outlined some of the more detailed description of the information display method and apparatus of the present invention, wherein specific examples are provided herein to illustrate the principles and embodiments of the present invention, and wherein the above examples are provided to assist in the understanding of the method and core concepts of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (7)

1. An information display method, characterized in that the method comprises:
obtaining display parameters of display information, wherein the display parameters comprise: displaying configuration parameters and display content parameters;
inquiring a grammar tree corresponding to the display frames according to the display configuration parameters, and determining at least one corresponding node, wherein the grammar tree is integrated with display formats of a plurality of display frames;
configuring the at least one node according to the display content parameters, and determining a display instance of the display information;
determining a corresponding target display frame according to the display example, and displaying the display information;
the step of querying the syntax tree corresponding to the display frame according to the display configuration parameters to determine at least one corresponding node includes:
determining node address indexes of display formats of the display frames in a grammar tree according to the display configuration parameters;
inquiring the grammar tree according to the node address index, and determining a corresponding node;
wherein said configuring said at least one node according to said display content parameters, determining a display instance of said display information, comprises:
configuring nodes according to the display content parameters, and determining node instances of the nodes;
and sequentially combining the node instances to form a display instance of the display information.
2. The method of claim 1, wherein determining the node address index of the display frame in the syntax tree according to the display configuration parameters comprises:
determining an initial node address and a final node address of a display format of a display frame in a grammar tree according to the display configuration parameters;
and generating a node address index according to the starting node address and the ending node address.
3. The method of claim 1, wherein the determining a corresponding target display frame according to the display instance, displaying the display information, comprises:
determining a corresponding target display frame according to the display example;
and converting the display instance into display information according to a conversion engine, and displaying the display information in the target display frame.
4. An information display device, characterized in that the device comprises:
the parameter acquisition module is used for acquiring display parameters of the display information, wherein the display parameters comprise: displaying configuration parameters and display content parameters;
the node query module is used for querying a grammar tree corresponding to the display frame according to the display configuration parameters and determining at least one corresponding node, wherein the grammar tree is integrated with display formats of a plurality of display frames;
the parameter configuration module is used for configuring the at least one node according to the display content parameters and determining a display instance of the display information;
the information display module is used for determining a corresponding target display frame according to the display example and displaying the display information;
wherein, the node inquiry module includes:
the address acquisition sub-module is used for determining node address indexes of display formats of the display frames in the grammar tree according to the display configuration parameters;
the node determining submodule is used for inquiring the grammar tree according to the node address index and determining a corresponding node;
wherein, the parameter configuration module includes:
the node instance generation sub-module is used for configuring the node according to the display content parameters and determining the node instance of the node;
and the display instance generation sub-module is used for sequentially combining the node instances to form the display instance of the display information.
5. The apparatus of claim 4, wherein the address acquisition submodule comprises:
the address determining unit is used for determining an initial node address and a final node address of a display format of the display frame in a grammar tree according to the display configuration parameters;
and the index generating unit is used for generating a node address index according to the starting node address and the ending node address.
6. An electronic device, comprising:
one or more processors;
a memory;
one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-3.
7. A computer readable storage medium storing a computer program for use in connection with an electronic device, the computer program being executable by a processor to perform the method of any one of claims 1-3.
CN202010607042.7A 2020-06-29 2020-06-29 Information display method and device Active CN111897523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010607042.7A CN111897523B (en) 2020-06-29 2020-06-29 Information display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010607042.7A CN111897523B (en) 2020-06-29 2020-06-29 Information display method and device

Publications (2)

Publication Number Publication Date
CN111897523A CN111897523A (en) 2020-11-06
CN111897523B true CN111897523B (en) 2024-03-15

Family

ID=73207138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010607042.7A Active CN111897523B (en) 2020-06-29 2020-06-29 Information display method and device

Country Status (1)

Country Link
CN (1) CN111897523B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844308A (en) * 2017-10-18 2018-03-27 阿里巴巴集团控股有限公司 A kind of information processing method, device and equipment
CN109408136A (en) * 2018-09-12 2019-03-01 Oppo广东移动通信有限公司 Information processing method, device, storage medium and electronic equipment
CN109462696A (en) * 2018-11-20 2019-03-12 努比亚技术有限公司 Information cuing method, mobile terminal and computer readable storage medium
CN110209766A (en) * 2019-05-23 2019-09-06 招商局金融科技有限公司 Method for exhibiting data, electronic device and storage medium
CN110597896A (en) * 2019-09-10 2019-12-20 深圳证券交易所 Data display method, data display device and terminal equipment
CN110704053A (en) * 2019-09-03 2020-01-17 五八有限公司 Method and device for processing style information
CN110955428A (en) * 2019-11-27 2020-04-03 北京奇艺世纪科技有限公司 Page display method and device, electronic equipment and medium
CN111078773A (en) * 2019-12-04 2020-04-28 北京奇艺世纪科技有限公司 Data processing method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844308A (en) * 2017-10-18 2018-03-27 阿里巴巴集团控股有限公司 A kind of information processing method, device and equipment
CN109408136A (en) * 2018-09-12 2019-03-01 Oppo广东移动通信有限公司 Information processing method, device, storage medium and electronic equipment
WO2020052337A1 (en) * 2018-09-12 2020-03-19 Oppo广东移动通信有限公司 Information processing method and apparatus, storage medium, and electronic device
CN109462696A (en) * 2018-11-20 2019-03-12 努比亚技术有限公司 Information cuing method, mobile terminal and computer readable storage medium
CN110209766A (en) * 2019-05-23 2019-09-06 招商局金融科技有限公司 Method for exhibiting data, electronic device and storage medium
CN110704053A (en) * 2019-09-03 2020-01-17 五八有限公司 Method and device for processing style information
CN110597896A (en) * 2019-09-10 2019-12-20 深圳证券交易所 Data display method, data display device and terminal equipment
CN110955428A (en) * 2019-11-27 2020-04-03 北京奇艺世纪科技有限公司 Page display method and device, electronic equipment and medium
CN111078773A (en) * 2019-12-04 2020-04-28 北京奇艺世纪科技有限公司 Data processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Android平台的智能家居系统设计;李琪;中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑;C038-374 *

Also Published As

Publication number Publication date
CN111897523A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN107146607B (en) Method, device and system for correcting interaction information of intelligent equipment
CN106096050A (en) A kind of method and apparatus of video contents search
CN111125178B (en) Data query method, device, terminal, presto query engine and storage medium
US11164579B2 (en) Method and apparatus for generating information
CN102981848A (en) Webpage main body element processing browser and method
CN111198772A (en) Method and system for generating application program interface API
CN102981844A (en) Browser treating webpage main body element and method treating the webpage main body element
CN112818181A (en) Graph database retrieval method, system, computer device and storage medium
CN115982416A (en) Data processing method and device, readable storage medium and electronic equipment
CN111897523B (en) Information display method and device
CN101727505A (en) Efficient data processing method and device
CN107092474B (en) Program development method, ETL processing method and device
CN112818654A (en) Message storage method, message generation method, message storage device, electronic equipment and computer readable medium
CN106484488A (en) Integrated cloud compilation method and system
CN107919127A (en) Method of speech processing, device and electronic equipment
CN116541116A (en) Application interface rendering method, device, medium and equipment of cloud native system
CN115408457A (en) Data format conversion system and method
CN114493701A (en) User grouping method and device
CN109635175B (en) Page data splicing method and device, readable storage medium and electronic equipment
CN106682221B (en) Question-answer interaction response method and device and question-answer system
CN112835494A (en) Voice recognition result error correction method and device
CN112583865A (en) Control method, control equipment and storage medium
CN114999611B (en) Model training and information recommendation method and device
US20180052917A1 (en) Computer-implemented methods and systems for categorization and analysis of documents and records
CN113742360B (en) Method and device for rapidly generating SQL script of heterogeneous database based on metadata

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