CN114116071B - Information processing method, device, medium and electronic equipment for label assembly - Google Patents

Information processing method, device, medium and electronic equipment for label assembly Download PDF

Info

Publication number
CN114116071B
CN114116071B CN202210103568.0A CN202210103568A CN114116071B CN 114116071 B CN114116071 B CN 114116071B CN 202210103568 A CN202210103568 A CN 202210103568A CN 114116071 B CN114116071 B CN 114116071B
Authority
CN
China
Prior art keywords
component
target
tag
information
label
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
CN202210103568.0A
Other languages
Chinese (zh)
Other versions
CN114116071A (en
Inventor
齐雅楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jindi Technology Co Ltd
Original Assignee
Beijing Jindi 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 Jindi Technology Co Ltd filed Critical Beijing Jindi Technology Co Ltd
Priority to CN202210103568.0A priority Critical patent/CN114116071B/en
Publication of CN114116071A publication Critical patent/CN114116071A/en
Application granted granted Critical
Publication of CN114116071B publication Critical patent/CN114116071B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an information processing method and device for a label assembly, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring component identification information and component input information returned by a component monitoring event bound with a specified component type aiming at a target tag; determining a target component which belongs to the specified component category and is associated with the component identification information in the target label; and transmitting the element input information into an attribute value field of an array element corresponding to the target element in the two-dimensional array. The method solves the problem of how to accurately acquire the attribute value corresponding to each component when a plurality of components with the same component type exist in one label, and has higher flexible configuration and expandability; meanwhile, compared with the existing mode, the mode of storing the attribute values in the array greatly reduces the maintenance cost, is once and for all, and only needs to change the attribute characteristics and the two-dimensional array at the server side when the requirement is changed.

Description

Information processing method, device, medium and electronic equipment for label assembly
Technical Field
The present invention relates to the field of computer technology, and more particularly, to an information processing method and apparatus for a tag assembly, a storage medium, and an electronic device.
Background
The DMP is a method for adding various labels in a targeted manner according to the label attributes, and matching related data crowds according to the label category attributes in a targeted manner, so that more accurate marketing or market decisions can be made in a targeted manner according to the query result, and the efficiency is higher. In a usage scenario, one tag corresponds to one attribute or multiple attributes. For example, the gender tag: only one attribute, male or female; billing times label: the method has two attributes of billing date and billing frequency. Each attribute corresponds to a component. For example, the gender attribute corresponds to a single option component, the date of issue attribute corresponds to a date component, and the number of times of issue attribute corresponds to a text entry component. If the attributes of one label are different, only a plurality of components of different types need to be rendered, and parameters of each component are acquired respectively. If a tag has a plurality of components of the same type and the number is not fixed, it is troublesome to accurately obtain which component the value selected or input by the user corresponds to.
Disclosure of Invention
The problem to be solved by the invention comprises the problems of how to determine a target component according to the operation of a user and how to determine an attribute value corresponding to the target component according to input information of the user when a plurality of components of the same type are included in one label, thereby realizing multi-component value transmission.
The invention is proposed to solve the above technical problems such as how to realize multi-component value transmission. The embodiment of the invention provides an information processing method and device for a label assembly, a storage medium and electronic equipment.
According to an aspect of an embodiment of the present invention, there is provided an information processing method for a tag assembly, including:
acquiring component identification information and component input information returned by a component monitoring event bound with a specified component category aiming at a target tag, wherein attribute characteristics and attribute values contained in the target tag are respectively represented by a corresponding attribute characteristic array and a two-dimensional array, and each attribute characteristic corresponds to one tag component;
determining a target component in the target tag, which belongs to the specified component category and is associated with the component identification information; and
and transmitting the element input information into an attribute value field of an array element corresponding to the target element in the two-dimensional array.
Optionally, the method further comprises:
monitoring all the components belonging to the specified component category in the target tag through the component monitoring event; and
in response to the fact that one of all the components is triggered, the identification information of the triggered component is transmitted into the component monitoring event to serve as the component identification information monitored by the event, and the information input by the user in the triggered component is also transmitted into the component monitoring event to serve as the component input information monitored by the event.
Optionally, wherein:
and responding to the triggering of the target label, and monitoring all components belonging to the specified component category in the target label through the component monitoring event.
Optionally, the method further comprises: in response to the target tag being triggered, in the event that the target tag also includes other components belonging to other component categories, listening for the other components in the target tag through component listening events bound to the other component categories.
Optionally, wherein the passing the component input information into the two-dimensional array at the attribute value field of the array element corresponding to the target component comprises:
finding array elements in the two-dimensional array, wherein the position information of the array elements is matched with the rendering order of the target component in the target tag; and
and transmitting the element input information into the attribute value field of the array element in the two-dimensional array.
Optionally, wherein finding array elements in the two-dimensional array whose position information matches the rendering order of the target component in the target tag comprises:
and finding array elements in the two-dimensional array, wherein the position information of the array elements is the same as the rendering order of the target component in the target tag.
Optionally, the method further comprises:
transmitting the input information of other components in the target label into attribute value fields of array elements corresponding to the components in the other components in the two-dimensional array;
and after all attribute value fields in the two-dimensional array complete the input of the component input information, the two-dimensional array which completes the input of the component input information is used as the label data of the target label to be sent to a server.
According to another aspect of the embodiments of the present invention, there is provided an information processing apparatus for a tag assembly, including:
the information acquisition module is used for acquiring component identification information and component input information which are returned by a component monitoring event bound with a specified component category aiming at a target tag, wherein the attribute characteristics and the attribute values contained in the target tag are respectively represented by a corresponding attribute characteristic array and a two-dimensional array, and each attribute characteristic corresponds to one tag component;
the component determination module is used for determining a target component which belongs to the specified component category and is associated with the component identification information in the target label; and
and the information input module is used for transmitting the component input information into the attribute value field of the array element corresponding to the target component in the two-dimensional array.
According to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a processor and a memory; wherein the content of the first and second substances,
the memory to store the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method according to any of the above embodiments of the present invention.
According to a further aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is configured to execute the method according to any of the above embodiments.
According to a further aspect of embodiments of the present invention, there is provided a computer program product comprising a computer program for implementing the method of any of the above embodiments when executed by a processor.
The embodiment of the invention provides an information processing method and device for a label assembly, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring component identification information and component input information returned by a component monitoring event bound with a specified component category aiming at a target tag; determining a target component in the target tag, which belongs to the specified component category and is associated with the component identification information; and transmitting the element input information into an attribute value field of an array element corresponding to the target element in the two-dimensional array. The method solves the problem of how to accurately acquire the attribute value corresponding to each component when a plurality of components of the same type are included in one label, improves the code reuse rate, and has higher flexible configuration and expandability; meanwhile, compared with the existing mode of one-tag one-component page, the mode of storing the attribute values based on the arrays greatly reduces the maintenance cost, is once and for all, and only needs to change the attribute characteristics and the two-dimensional arrays at the server side when the requirement is changed.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
A more complete understanding of exemplary embodiments of the present invention may be had by reference to the following drawings in which:
FIG. 1 is a flow diagram of an information processing method 100 for a tag assembly according to an exemplary embodiment of the invention;
FIG. 2 is a schematic diagram of a tag configuration page provided in accordance with an exemplary embodiment of the present invention;
FIG. 3 is a schematic diagram of all components in a tag provided in accordance with an exemplary embodiment of the present invention;
FIG. 4 is a schematic illustration of all components in a tag provided in accordance with another exemplary embodiment of the present invention;
fig. 5 is a schematic configuration diagram of an information processing apparatus 500 for a tag assembly according to an exemplary embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device 60 according to an exemplary embodiment of the present invention.
Detailed Description
Hereinafter, example embodiments according to the present invention will be described in detail with reference to the accompanying drawings. It is to be understood that the described embodiments are merely a subset of embodiments of the invention and not all embodiments of the invention, with the understanding that the invention is not limited to the example embodiments described herein.
It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
It will be understood by those of skill in the art that the terms "first," "second," and the like in the embodiments of the present invention are used merely to distinguish one element, step, device, module, or the like from another element, and do not denote any particular technical or logical order therebetween.
It should also be understood that in embodiments of the present invention, "a plurality" may refer to two or more and "at least one" may refer to one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the invention may be generally understood as one or more, unless explicitly defined otherwise or stated to the contrary hereinafter.
In addition, the term "and/or" in the present invention is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In the present invention, the character "/" generally indicates that the preceding and following related objects are in an "or" relationship.
It should also be understood that the description of the embodiments of the present invention emphasizes the differences between the embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Embodiments of the invention are operational with numerous other general purpose or special purpose computing system environments or configurations, and with numerous other electronic devices, such as terminal devices, computer systems, servers, etc. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with electronic devices, such as terminal devices, computer systems, servers, and the like, include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
Exemplary method
Fig. 1 is a flowchart of an information processing method 100 for a tag assembly according to an exemplary embodiment of the present invention. The embodiment can be applied to an electronic device, as shown in fig. 1, and includes the following steps:
step 101, acquiring component identification information and component input information returned by a component monitoring event bound with a specified component category for a target tag, wherein attribute features and attribute values contained in the target tag are respectively represented by a corresponding attribute feature array and a two-dimensional array, and each attribute feature corresponds to one tag component.
Referring to fig. 2, in the embodiment of the present invention, the tag may be a browsing manner, a pushing number, or a monitoring industry. Each label comprises at least one component, and the component category corresponding to each component can be different according to the different data input modes of each component. For example, for a browsing style tab, the components included therein are, in order of rendering: the method comprises the steps of browsing industry, browsing type and screening time range, wherein the component category corresponding to the browsing industry is an input category, and the component categories corresponding to the browsing type and the screening time range are selection categories.
And expressing different component types by using different attribute characteristics, and sequentially storing the attribute characteristics in an attribute characteristic array according to the rendering sequence of the components. For example, if the attribute feature is 0, an input category component is represented; the attribute is characterized as 1 and is represented as a select class component; the attribute is characterized as 2, denoted as the drop down category component. Then the browsing style tab in fig. 2 contains an attribute feature array of [0,1,1 ]. When the page is rendered, the rendering of different types of components can be performed by traversing the attribute features in the attribute feature array.
In addition, in the embodiment of the present invention, for any tag, the attribute value corresponding to each component contained in the tag may be sequentially stored in the two-dimensional array according to the rendering order of the components. In the embodiment of the disclosure, a two-dimensional array may be declared, the attribute feature array may be traversed, a type object representing a binding value of a corresponding component may be generated according to each attribute feature, and the type object may be added to the two-dimensional array, so that the two-dimensional array for storing attribute values corresponding to all components of the current tag may be taken. For example, for the browsing manner tag, the form of the two-dimensional array is [ { val:' } ], and each array element in the two-dimensional array sequentially corresponds to the component browsing industry, the browsing type and the screening time range from left to right.
In the embodiment of the present invention, one component listening event may be bound for each type of component according to the component type, that is, multiple components of the same type may be uniformly bound to one component listening event, instead of separately binding one component listening event for each component of the same type of component. Thus, one component listening event can listen for multiple components of the same class. For example, if the component 1, the component 2, and the component 5 are all input types, and the component 3 and the component 4 are all selection types, the component monitoring event 1 for monitoring the input type component can be bound with the component 1, the component 2, and the component 5 at the same time, so that the unified monitoring of the input type component is realized; and simultaneously binding the component monitoring event 2 for monitoring the selected type components to the component 3 and the component 4, thereby realizing the uniform monitoring of the selected type components.
When a component belonging to a certain component category in a target tag is triggered, a corresponding numerical value is transmitted into a monitoring function of a component monitoring event bound with the component category, component identification information and component input information returned by the target tag can be acquired by reading the numerical value in the monitoring function, and then the target component can be determined according to the identification information and the component category bound with the component monitoring time. For example, if the component monitoring events corresponding to the input category component and the selection category component are component monitoring event 1 and component monitoring event 2, respectively, when the user operates the browsing industry and the input data is "manufacturing industry", the component identification information and the component input information "manufacturing industry" returned by the component monitoring event 1 bound to the input category component for the target tag "browsing manner" may be acquired, and the component identification information and the component input information are stored in the monitoring function corresponding to the component monitoring event 1.
In embodiments of the present invention, the component identification information may be set in different ways. Specifically, the component identification information may be set according to the position of the component in the target tag (i.e., the rendering order). For example, if the position is set, the identification information may be 1,2,3, …, or a, b, c, … in order for a plurality of components. Different component identification information can be customized for each component through other characters of different rules, as long as the components can be distinguished through component representation information. For example, 1111,2222,3333, …, etc. may be provided. The identification information of the component may also be set according to the component category. For example, assuming that the attribute features included in one label are "1, 1,2, 2" in sequence and correspond to "component 1, component 2, component 3, and component 4", respectively, it can be known that the component categories of component 1 and component 2 are the same, and the component categories of component 3 and component 4 are the same, at this time, the component identification information of component 1 and component 2 may be respectively set to be "a, b", and the component identification information of component 3 and component 4 may also be respectively set to be "a, b". Although the component identification information is the same, since the specific component category bound to the component can be determined by listening to the event and the component category and the component identification information are required to be matched at the same time when determining the target, the correct target component can be determined even if the identification information is the same.
Preferably, the method further comprises the following steps:
monitoring all the components belonging to the specified component category in the target tag through the component monitoring event; and
in response to the fact that one of all the components is triggered, the identification information of the triggered component is transmitted into the component monitoring event to serve as the component identification information monitored by the event, and the information input by the user in the triggered component is also transmitted into the component monitoring event to serve as the component input information monitored by the event.
Preferably, wherein:
and responding to the triggering of the target label, and monitoring all components belonging to the specified component category in the target label through the component monitoring event.
In the embodiment of the invention, when a user clicks a certain target tag, in response to the target tag being triggered, all components belonging to a specified component category in the target tag are monitored through a component monitoring event, when the user operates a certain component, in response to the fact that a component is triggered in all the components, identification information of the triggered component is transmitted into the component monitoring event to serve as component identification information monitored by the event, and information input by the user in the triggered component is also transmitted into the component monitoring event to serve as component input information monitored by the event.
For example, the tag a includes a component 1 and a component 2 whose component types are input types, component identification information of the component 1 and the component 2 is a and b, respectively, a component monitoring event corresponding to the input type is a component monitoring event 1, when a user clicks the tag a, in response to the tag a being triggered, monitoring all components belonging to the input type in the target tag a through the component monitoring event 1, and when it is monitored that a component is triggered, the user operates the component 1 and input data is "three by three", acquiring a component identification and component input information returned for the tag a as "a, three by three" through the component monitoring event 1; when it is monitored that a component is triggered, a user operates the component 2 and input data is 'male', component identification information and component input information which are returned by aiming at the tag A can be acquired as 'b, male' through the component monitoring event 1. Since the component listening event 1 is bound to the input category, when the target component is determined, the target component can be determined from the components of the input category according to the acquired component identification information.
Preferably, in response to the target tag being triggered, in the case that the target tag further includes other components belonging to other component categories, the other components in the target tag are listened for through component listening events bound to the other component categories.
In embodiments of the present invention, the manner of listening to components of other component classes is the same principle as listening to a specified component class. For example, assuming that the tag a further includes a component 3 whose component type is a selection type, the component identification information is c, and the component monitoring event corresponding to the selection type is a component monitoring event 2, when the user clicks the tag a, in response to that the tag a is triggered, all components belonging to the selection type in the target tag a are monitored through the component monitoring event 2, and when it is monitored that a component is triggered through the component monitoring event 2, the user operates the component 3 and the selection data is "the next day", the component identification information and the component input information returned for the tag a may be acquired through the component monitoring event 3 as "c, the next day".
Step 102, determining the target component which belongs to the specified component category and is associated with the component identification information in the target label.
In the embodiment of the invention, after the component identification information is acquired, the target component can be determined according to the component identification information and the specified component category. The target component is determined by the component representation information and the specified component category together, so that the accuracy of the determined target component can be ensured.
For example, as shown in FIG. 3, the components in label B are "component 1, component 2, component 3, component 4, component 5" in sequence; the attribute characteristics corresponding to each component are '1, 1, 2, 2 and 3' in sequence, the component category corresponding to the attribute characteristic 1 is an input category, the component category corresponding to the attribute characteristic 2 is a single-selection category, the component category corresponding to the attribute characteristic 3 is a pull-down category, and the component monitoring events respectively bound with the input category, the single-selection category and the pull-down category are a component monitoring event 1, a component monitoring event 2 and a component monitoring event 3.
Since the component identification information can be set in different ways, assuming that the identification information of each component is determined to be "1, 2, 3, 4, 5" in sequence according to the rendering order of the components, the acquired component identification information and the component input information are "2, zhang san", and returned by the monitoring event 1, since the monitoring event 1 is bound with the input category, it can be determined that the specified component category is the input category, the components belonging to the specified component category in the tag B include the component 1 and the component 2, and then according to the component identification information 2, it can be determined that the target component belonging to the specified component category and associated with the component identification information in the tag B is the component 2.
Similarly, since the component identification information may be set in different manners, as shown in fig. 4, assuming that the identification information of each component is determined according to the rendering order of the component in all components of the same component category in the corresponding tag, and is sequentially "a, B, a, B, a", the obtained component identification information and the component input information are "B, zhang san", and returned by the monitoring event 2, since the monitoring event 2 is bound to the single-choice category, it may be determined that the specified component category is the single-choice category, the component belonging to the specified component category in the tag B includes a component 3 and a component 4, and then according to the component identification information B, it may be determined that the target component belonging to the specified component category and associated with the component identification information in the tag B is the component 4. Step 103, transmitting the element input information into the attribute value field of the array element corresponding to the target element in the two-dimensional array.
Preferably, wherein the passing the component input information into the two-dimensional array at the attribute value field of the array element corresponding to the target component comprises:
finding array elements in the two-dimensional array, wherein the position information of the array elements is matched with the rendering order of the target component in the target tag; and
And transmitting the element input information into the attribute value field of the array element in the two-dimensional array.
Preferably, wherein finding array elements in the two-dimensional array whose position information matches the rendering order of the target component in the target tag comprises:
and finding array elements in the two-dimensional array, wherein the position information of the array elements is the same as the rendering order of the target component in the target tag. In the embodiment of the present invention, since the attribute value corresponding to each component is stored in the two-dimensional array, after the target component is determined, the array element corresponding to the target component is matched in the two-dimensional array according to the rendering order of the target component in the target tag, and the component input information obtained in step 101 is transmitted to the attribute value field of the corresponding array element.
Continuing with the example of FIG. 3, the two-dimensional array is now: [ { val:' } ], "]. The identification information of each component is determined to be '1, 2, 3, 4, 5' in sequence according to the rendering order of the component, the obtained component identification information and the component input information are '2, zhang san', the target component is the component 2, and the corresponding array element can be determined to be the second array element according to the rendering order 2 of the component 2 in the target tag, so that the value of the attribute value field of the second array element is modified, and the two-dimensional array is obtained as follows: [ { val:'} ], [ { val:' zhang three '} ], [ { val:' } ], ].
Similarly, the component input information of other components can also be transmitted to the information of the attribute value fields of other array elements in the two-dimensional array.
Preferably, the method further comprises the following steps:
transmitting the input information of other components in the target label into attribute value fields of array elements corresponding to the components in the other components in the two-dimensional array;
and after all attribute value fields in the two-dimensional array complete the input of the component input information, the two-dimensional array which completes the input of the component input information is used as the label data of the target label to be sent to a server.
In the embodiment of the present invention, after the user operates all the components displayed by the target tag, the component input information corresponding to each component in the tag may be obtained and stored in the two-dimensional array, for example, the component input information corresponding to the 1 st component is transmitted into the 1 st array element of the two-dimensional array, and the component input information corresponding to the 5 th component is transmitted into the 5 th array element of the two-dimensional array. At this time, the two-dimensional array processing which completes the input information of the component can be used as the label data of the target label to be sent to the server.
The information processing method for the label assembly provided by the embodiment of the invention solves the problem of how to accurately acquire the attribute value corresponding to each assembly when a plurality of assemblies with the same assembly type exist in one label, improves the code reuse rate, and has higher flexible configuration performance and expandability; meanwhile, compared with the existing mode of one-tag one-component page, the mode of storing the attribute values based on the arrays greatly reduces the maintenance cost, is once and for all, and only needs to change the attribute characteristics and the two-dimensional arrays at the server side when the requirement is changed.
Exemplary devices
Fig. 5 is a schematic structural diagram of an information processing apparatus 500 for a tag assembly according to an exemplary embodiment of the present invention. As shown in fig. 5, the present embodiment includes:
an information obtaining module 501, configured to obtain component identification information and component input information, which are returned by a component monitoring event bound to a specified component category for a target tag, where attribute features and attribute values included in the target tag are respectively represented by corresponding attribute feature arrays and two-dimensional arrays, and each attribute feature corresponds to one tag component;
a component determination module 502, configured to determine a target component in the target tag, which belongs to the specified component category and is associated with the component identification information; and
an information input module 503, configured to transfer the component input information into an attribute value field of an array element corresponding to the target component in the two-dimensional array.
Preferably, the information obtaining module 501 further includes:
monitoring all the components belonging to the specified component category in the target tag through the component monitoring event; and
in response to the fact that one of all the components is triggered, the identification information of the triggered component is transmitted into the component monitoring event to serve as the component identification information monitored by the event, and the information input by the user in the triggered component is also transmitted into the component monitoring event to serve as the component input information monitored by the event.
Preferably, the information obtaining module 501, in response to the target tag being triggered, listens for all components belonging to the specified component category in the target tag through the component listening event.
Preferably, the information obtaining module 501 further includes: in response to the target tag being triggered, in the event that the target tag also includes other components belonging to other component categories, listening for the other components in the target tag through component listening events bound to the other component categories.
Preferably, the information input module 503, passing the component input information into the two-dimensional array at the attribute value field of the array element corresponding to the target component, includes:
finding array elements of the two-dimensional array, wherein the position information of the array elements is matched with the rendering order of the target assembly in the target tag; and
and transmitting the element input information into the attribute value field of the array element in the two-dimensional array.
Preferably, the finding, by the information input module 503, array elements in the two-dimensional array whose position information matches the rendering order of the target component in the target tag includes:
And finding array elements in the two-dimensional array, wherein the position information of the array elements is the same as the rendering order of the target component in the target tag.
Preferably, the method further comprises the following steps:
the tag data acquisition module is used for transmitting the input information of the components of other components in the target tag into attribute value fields of array elements corresponding to the components in other components in the two-dimensional array;
and after all attribute value fields in the two-dimensional array complete the input of the component input information, the two-dimensional array which completes the input of the component input information is used as the label data of the target label to be sent to a server.
The information processing apparatus 500 for a tag assembly according to an embodiment of the present invention corresponds to the information processing method 100 for a tag assembly according to another embodiment of the present invention, and is not described herein again.
Exemplary electronic device
Fig. 6 is a structure of an electronic device according to an exemplary embodiment of the present invention. The electronic device may be either or both of the first device and the second device, or a stand-alone device separate from them, which stand-alone device may communicate with the first device and the second device to receive the acquired input signals therefrom. FIG. 6 illustrates a block diagram of an electronic device in accordance with an embodiment of the disclosure. As shown in fig. 6, the electronic device 600 includes one or more processors 601 and memory 602.
The processor 601 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
Memory 602 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, Random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, Read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium and executed by the processor 601 to implement the information processing method for the tag assembly of the software program of the various embodiments of the present disclosure described above and/or other desired functions. In one example, the electronic device may further include: an input device 603 and an output device 604, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 603 may also include, for example, a keyboard, a mouse, and the like.
The output device 604 can output various kinds of information to the outside. The output devices 604 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the electronic device relevant to the present disclosure are shown in fig. 6, omitting components such as buses, input/output interfaces, and the like. In addition, the electronic device may include any other suitable components, depending on the particular application.
Exemplary computer program product and computer-readable storage Medium
In addition to the above-described methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the information processing method for a tag assembly according to various embodiments of the present disclosure described in the "exemplary methods" section of this specification above.
The computer program product may write program code for carrying out operations for embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform steps in an information processing method for a tag assembly according to various embodiments of the present disclosure described in the "exemplary methods" section above in this specification.
The computer readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, 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.
The foregoing describes the general principles of the present disclosure in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present disclosure are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The block diagrams of devices, apparatuses, systems referred to in this disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the devices, apparatuses, and methods of the present disclosure, each component or step can be decomposed and/or recombined. These decompositions and/or recombinations are to be considered equivalents of the present disclosure. The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (8)

1. An information processing method for a tag assembly, comprising:
monitoring the tag component of a specified component type through a component monitoring event bound with the specified component type; binding a component monitoring event for each type of component according to the component type;
acquiring component identification information and component input information returned by the component monitoring event aiming at a target tag; the target label comprises a plurality of label components, attribute characteristics and attribute values contained in the target label are respectively represented by corresponding attribute characteristic arrays and two-dimensional arrays, each attribute characteristic corresponds to one label component, and component identification information of each label component is unique in the same type of component and is not unique in different types of components;
determining a target component in the target tag, which belongs to the specified component category and is associated with the component identification information; and
Firstly, finding array elements of which the position information is matched with the rendering sequence of the target assembly in the target label in the two-dimensional array, transmitting the assembly input information into attribute value fields of the array elements in the two-dimensional array, and after all the attribute value fields in the two-dimensional array complete the transmission of the assembly input information, transmitting the two-dimensional array which completes the transmission of the assembly input information as label data of the target label to a server.
2. The method of claim 1, wherein:
listening for the tag component of a specified component category through a component listening event bound to the specified component category, comprising: monitoring all the components belonging to the specified component category in the target tag through the component monitoring event; and in response to the fact that the component is triggered in all the components, transmitting the identification information of the triggered component into the component monitoring event as the component identification information monitored by the event, and transmitting the information input by the user in the triggered component into the component monitoring event as the component input information monitored by the event.
3. The method of claim 2, wherein:
and responding to the triggering of the target label, and monitoring all components belonging to the specified component category in the target label through the component monitoring event.
4. The method of claim 3, further comprising: in response to the target tag being triggered, in the event that the target tag also includes other components belonging to other component categories, listening for the other components in the target tag through component listening events bound to the other component categories.
5. The method of claim 1, wherein finding array elements in the two-dimensional array whose position information matches the rendering order of the target component in the target tag comprises:
and finding array elements in the two-dimensional array, wherein the position information of the array elements is the same as the rendering order of the target component in the target tag.
6. An information processing apparatus for a tag assembly, comprising:
the information acquisition module is used for monitoring the tag component of the specified component type through the component monitoring event bound with the specified component type; binding a component monitoring event for each type of component according to the component type; acquiring component identification information and component input information returned by the component monitoring event aiming at a target tag, wherein the target tag comprises a plurality of tag components, attribute features and attribute values contained in the target tag are respectively represented by corresponding attribute feature arrays and two-dimensional arrays, each attribute feature corresponds to one tag component, and the component identification information of each tag component is unique in the same class of components and is not unique in different classes of components;
The component determination module is used for determining a target component which belongs to the specified component category and is associated with the component identification information in the target label; and
the information input module is used for firstly finding array elements of which the position information is matched with the rendering sequence of the target assembly in the target label in the two-dimensional array, transmitting the assembly input information to attribute value fields of the array elements in the two-dimensional array, and after all the attribute value fields in the two-dimensional array complete the transmission of the assembly input information, transmitting the two-dimensional array into which the assembly input information is completed as label data of the target label to a server.
7. An electronic device, characterized in that the electronic device comprises: a processor and a memory; wherein the content of the first and second substances,
the memory to store the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method of any one of claims 1-5.
8. A computer-readable storage medium, characterized in that it stores a computer program for performing the method of any of the preceding claims 1-5.
CN202210103568.0A 2022-01-28 2022-01-28 Information processing method, device, medium and electronic equipment for label assembly Active CN114116071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210103568.0A CN114116071B (en) 2022-01-28 2022-01-28 Information processing method, device, medium and electronic equipment for label assembly

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210103568.0A CN114116071B (en) 2022-01-28 2022-01-28 Information processing method, device, medium and electronic equipment for label assembly

Publications (2)

Publication Number Publication Date
CN114116071A CN114116071A (en) 2022-03-01
CN114116071B true CN114116071B (en) 2022-07-29

Family

ID=80361810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210103568.0A Active CN114116071B (en) 2022-01-28 2022-01-28 Information processing method, device, medium and electronic equipment for label assembly

Country Status (1)

Country Link
CN (1) CN114116071B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7516460B2 (en) * 2003-02-28 2009-04-07 Microsoft Corporation System and method for creating a runtime connection interface for attributes and element tags defined within a subclass in a markup document
CN106547420B (en) * 2015-09-23 2020-06-02 阿里巴巴集团控股有限公司 Page processing method and device
CN108415804B (en) * 2018-01-23 2021-06-04 平安普惠企业管理有限公司 Method for acquiring information, terminal device and computer readable storage medium
CN109885793A (en) * 2019-01-18 2019-06-14 中国平安人寿保险股份有限公司 Page data acquisition method and device, electronic equipment, storage medium
CN112269576A (en) * 2020-08-07 2021-01-26 北京沃东天骏信息技术有限公司 Component display method and device, server and storage medium

Also Published As

Publication number Publication date
CN114116071A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US7860895B1 (en) Method and system for determining interest spaces among online content sources
US10402368B2 (en) Content aggregation for unstructured data
US20200389402A1 (en) Augmenting functionality in distributed systems with payload headers
CN109190046A (en) Content recommendation method, device and content recommendation service device
CN111381986B (en) Message transmission method, system, device, electronic equipment and readable storage medium
US10120888B2 (en) Automated task execution based on task criteria
CN111353862B (en) Commodity recommendation method and device, electronic equipment and storage medium
CN111125566B (en) Information acquisition method and device, electronic equipment and storage medium
US20240012620A1 (en) Bot factory environment
CN111861255A (en) Enterprise risk monitoring method and device, storage medium and electronic equipment
CN110019214A (en) The method and apparatus that data split result is verified
US10997001B2 (en) Event information processing system
CN114398396A (en) Data query method, storage medium, and computer program product
CN114116071B (en) Information processing method, device, medium and electronic equipment for label assembly
JP7170689B2 (en) Output device, output method and output program
CN113391867A (en) Big data service processing method and service server based on digitization and visualization
CN113269355A (en) User loan prediction method, device and storage medium
CN111898022A (en) Trademark category recommendation method and device, storage medium and electronic equipment
CN111178421A (en) Method, device, medium and electronic equipment for detecting user state
CN116702752A (en) File data processing method, device, equipment and storage medium
CN110704273A (en) Configuration information processing method and device, electronic equipment and storage medium
CN113312513B (en) Object recommendation method and device, electronic equipment and storage medium
CN102402420B (en) Resolve observable collections
CN115357827A (en) Block chain browser assembly and electronic equipment
CN113608949A (en) Pressure testing method and device, storage medium and electronic equipment

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