CN113312050B - Content display method, device, equipment and medium - Google Patents

Content display method, device, equipment and medium Download PDF

Info

Publication number
CN113312050B
CN113312050B CN202110662629.2A CN202110662629A CN113312050B CN 113312050 B CN113312050 B CN 113312050B CN 202110662629 A CN202110662629 A CN 202110662629A CN 113312050 B CN113312050 B CN 113312050B
Authority
CN
China
Prior art keywords
display style
style parameter
experimental
parameter
current display
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
CN202110662629.2A
Other languages
Chinese (zh)
Other versions
CN113312050A (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110662629.2A priority Critical patent/CN113312050B/en
Publication of CN113312050A publication Critical patent/CN113312050A/en
Application granted granted Critical
Publication of CN113312050B publication Critical patent/CN113312050B/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/38Creation or generation of source code for implementing user interfaces

Landscapes

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

Abstract

The disclosure provides a content display method, device, equipment and medium, relates to the technical field of computers, and particularly relates to the technical field of testing. The implementation scheme is as follows: acquiring a current display style parameter and at least one experimental display style parameter of target content; establishing a mapping relation between the current display style parameter and each of the at least one experimental display style parameter, and a mapping relation between the current display style parameter and a discrimination method corresponding to the at least one experimental display style parameter, the discrimination method being configured to determine whether one of the at least one experimental display style parameter is hit; executing a judging method corresponding to the current display style parameter based on the established mapping relation; and determining the style parameter to be displayed from the current display style parameter and at least one experimental display style parameter based on the judging result of the judging method.

Description

Content display method, device, equipment and medium
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to the field of testing technology, and in particular, to a content display method, apparatus, electronic device, computer readable storage medium, and computer program product.
Background
With the continuous development of Android applications, application User Interaction (UI) designs become more and more refined and customized. In order to find a UI style design more suitable for a user, a large number of style small-flow experiments are performed to test the user on line, and final determination of the UI style is performed according to feedback data of the user so as to select the most suitable UI style. Small flow experiments refer to selecting a portion of users (or "small flow users") to test, but not all users.
The approaches described in this section are not necessarily approaches that have been previously conceived or pursued. Unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, the problems mentioned in this section should not be considered as having been recognized in any prior art unless otherwise indicated.
Disclosure of Invention
The present disclosure provides a content display method, apparatus, electronic device, computer-readable storage medium, and computer program product.
According to an aspect of the present disclosure, there is provided a content display method including: acquiring a current display style parameter and at least one experimental display style parameter of target content; establishing a mapping relationship between the current display style parameter and each of the at least one experimental display style parameter, and a mapping relationship between the current display style parameter and a discrimination method corresponding to the at least one experimental display style parameter, the discrimination method configured to determine whether one of the at least one experimental display style parameter is hit; executing a judging method corresponding to the current display style parameter based on the established mapping relation; and determining a style parameter to be displayed from the current display style parameter and the at least one experimental display style parameter based on a judging result of the judging method.
According to another aspect of the present disclosure, there is provided a content display apparatus including: an acquisition unit configured to acquire a current display style parameter and at least one experimental display style parameter of the target content; a setting unit configured to set up a mapping relationship between the current display style parameter and each of the at least one experimental display style parameter and a mapping relationship between the current display style parameter and a discrimination method corresponding to the at least one experimental display style parameter, the discrimination method being configured to determine whether one of the at least one experimental display style parameter is hit; an execution unit configured to execute a discrimination method corresponding to the current display style parameter based on the established mapping relation; and a determining unit configured to determine a style parameter to be displayed from the current display style parameter and the at least one experimental display style parameter based on a determination result of the determination method.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described above.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform a method according to the above.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the above-described data screening method.
According to one or more embodiments of the present disclosure, the control code logic and the UI style code logic may be decoupled, so that the cost of newly adding or modifying the UI style experiment may be reduced from the day level to the minute level, the invasiveness of the experiment logic to the code may be effectively reduced, the readability of the code may be recovered, the communication cost in the development process may be reduced, and the development efficiency of the related experiment may be improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The accompanying drawings illustrate exemplary embodiments and, together with the description, serve to explain exemplary implementations of the embodiments. The illustrated embodiments are for exemplary purposes only and do not limit the scope of the claims. Throughout the drawings, identical reference numerals designate similar, but not necessarily identical, elements.
FIG. 1 illustrates a schematic diagram of an exemplary system in which various methods described herein may be implemented, in accordance with an embodiment of the present disclosure;
FIG. 2 shows a flow chart of a content display method according to an embodiment of the present disclosure;
fig. 3 shows a block diagram of a structure of a content display apparatus according to an embodiment of the present disclosure;
fig. 4 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the present disclosure, the use of the terms "first," "second," and the like to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of the elements, unless otherwise indicated, and such terms are merely used to distinguish one element from another. In some examples, a first element and a second element may refer to the same instance of the element, and in some cases, they may also refer to different instances based on the description of the context.
The terminology used in the description of the various illustrated examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly indicates otherwise, the elements may be one or more if the number of the elements is not specifically limited. Furthermore, the term "and/or" as used in this disclosure encompasses any and all possible combinations of the listed items.
With the continuous development of Android applications, application User Interaction (UI) designs become more and more refined and customized. In order to find a UI style design more suitable for a user, a large number of style small-flow experiments are performed to test the user on line, and final determination of the UI style is performed according to feedback data of the user. The large number of experiments makes the code logic controlling the UI style extremely complex, which is extremely disadvantageous both for the newly added experiments and for the normal demand development. The complex logic not only reduces the readability of the code, but also increases the communication cost of experimental conflicts that occur during development. Moreover, these experimental logics are very invasive to the code, and if these cannot be cleared timely after the end of the experiment, the code volume becomes more and more huge and difficult to maintain.
In order to solve the problems, the method and the device establish the mapping relation between the current display style parameters and the experimental display style parameters and the mapping relation between the current display style parameters and the judging method so as to realize the decoupling of the control code logic (corresponding to the judging method) and the UI style code logic, thereby reducing the cost of newly adding or modifying the UI style experiment from the day level to the minute level, effectively reducing the invasiveness of the experimental logic to the code, recovering the readability of the code, reducing the communication cost in the development process and improving the development efficiency of related experiments.
Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
Fig. 1 illustrates a schematic diagram of an exemplary system 100 in which various methods and apparatus described herein may be implemented, in accordance with an embodiment of the present disclosure. Referring to fig. 1, the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. Client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.
In embodiments of the present disclosure, server 120 may run one or more services or software applications that enable execution of new or modified UI experiment code logic.
In some embodiments, server 120 may also provide other services or software applications that may include non-virtual environments and virtual environments. In some embodiments, these services may be provided as web-based services or cloud services, for example, provided to users of client devices 101, 102, 103, 104, 105, and/or 106 under a software as a service (SaaS) model.
In the configuration shown in fig. 1, server 120 may include one or more components that implement the functions performed by server 120. These components may include software components, hardware components, or a combination thereof that are executable by one or more processors. A user operating client devices 101, 102, 103, 104, 105, and/or 106 may in turn utilize one or more client applications to interact with server 120 to utilize the services provided by these components. It should be appreciated that a variety of different system configurations are possible, which may differ from system 100. Accordingly, FIG. 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.
The user may perform a content display method using client devices 101, 102, 103, 104, 105, and/or 106. The client device may provide an interface that enables a user of the client device to interact with the client device. The client device may also output information to the user via the interface. Although fig. 1 depicts only six client devices, those skilled in the art will appreciate that the present disclosure may support any number of client devices.
Client devices 101, 102, 103, 104, 105, and/or 106 may include various types of computer devices, such as portable handheld devices, general purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, gaming systems, thin clients, various messaging devices, sensors or other sensing devices, and the like. These computer devices may run various types and versions of software applications and operating systems, such as Microsoft Windows, apple iOS, UNIX-like operating systems, linux, or Linux-like operating systems (e.g., google Chrome OS); or include various mobile operating systems such as Microsoft Windows Mobile OS, iOS, windows Phone, android. Portable handheld devices may include cellular telephones, smart phones, tablet computers, personal Digital Assistants (PDAs), and the like. Wearable devices may include head mounted displays and other devices. The gaming system may include various handheld gaming devices, internet-enabled gaming devices, and the like. The client device is capable of executing a variety of different applications, such as various Internet-related applications, communication applications (e.g., email applications), short Message Service (SMS) applications, and may use a variety of communication protocols.
Network 110 may be any type of network known to those skilled in the art that may support data communications using any of a number of available protocols, including but not limited to TCP/IP, SNA, IPX, etc. For example only, the one or more networks 110 may be a Local Area Network (LAN), an ethernet-based network, a token ring, a Wide Area Network (WAN), the internet, a virtual network, a Virtual Private Network (VPN), an intranet, an extranet, a Public Switched Telephone Network (PSTN), an infrared network, a wireless network (e.g., bluetooth, WIFI), and/or any combination of these and/or other networks.
The server 120 may include one or more general purpose computers, special purpose server computers (e.g., PC (personal computer) servers, UNIX servers, mid-end servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and/or combination. The server 120 may include one or more virtual machines running a virtual operating system, or other computing architecture that involves virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain virtual storage devices of the server). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.
The computing units in server 120 may run one or more operating systems including any of the operating systems described above as well as any commercially available server operating systems. Server 120 may also run any of a variety of additional server applications and/or middle tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.
In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and/or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and/or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.
In some implementations, the server 120 may be a server of a distributed system or a server that incorporates a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. The cloud server is a host product in a cloud computing service system, so as to solve the defects of large management difficulty and weak service expansibility in the traditional physical host and virtual private server (VPS, virtual Private Server) service.
The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of databases 130 may be used to store information such as audio files and video files. The data store 130 may reside in a variety of locations. For example, the data store used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The data store 130 may be of different types. In some embodiments, the data store used by server 120 may be a database, such as a relational database. One or more of these databases may store, update, and retrieve the databases and data from the databases in response to the commands.
In some embodiments, one or more of databases 130 may also be used by applications to store application data. The databases used by the application may be different types of databases, such as key value stores, object stores, or conventional stores supported by the file system.
The system 100 of fig. 1 may be configured and operated in various ways to enable application of the various methods and apparatus described in accordance with the present disclosure.
According to an aspect of the present disclosure, there is provided a content display method, which may be performed at a server or at a client.
As shown in fig. 2, the content display method may include: step S201, acquiring current display style parameters and at least one experimental display style parameter of target content; step S202, establishing a mapping relation between the current display style parameter and each experimental display style parameter in the at least one experimental display style parameter, and a mapping relation between the current display style parameter and a judging method corresponding to the at least one experimental display style parameter, wherein the judging method is configured to judge whether one of the at least one experimental display style parameter is hit or not; s203, executing a judging method corresponding to the current display style parameter based on the established mapping relation; and S204, determining a pattern parameter to be displayed from the current display pattern parameter and the at least one experimental display pattern parameter based on the judging result of the judging method. Therefore, by establishing the mapping relation between the current display style parameters (namely keywords) and the experimental codes and the mapping relation between the keywords and the judging methods of the experimental logic, the judging methods of the experimental logic and the decoupling of the experimental codes can be realized based on the keywords, so that the cost of the new UI style experiment can be reduced from the day level to the minute level, the invasiveness of the experimental logic to the codes can be effectively reduced, the readability of the codes can be recovered, the communication cost in the development process can be reduced, and the development efficiency of the related experiment can be improved.
In the small-flow experimental scene, the client can display target content based on the determined style parameters to be displayed, so that a user can evaluate the displayed style parameters and feed evaluation data back to the server. The server may determine a final UI display style based on the user's evaluation data.
According to some embodiments, the target content may be, for example, a UI button in an applet, or a UI button in a page, which is not limited by the present disclosure.
The display style parameter of the target content may include a plurality of sub-parameters corresponding to each of the plurality of display attributes, and may include at least one of the following sub-parameters, for example: background color parameters, text color parameters, font size parameters, font style parameters, and corner parameters.
In some embodiments, multiple (2 or more) experimental groups may be set for testing, with corresponding experimental display style parameters set for each experimental group. The current display style parameters can be determined as the display style parameters corresponding to the control group, and under the condition of carrying out the small flow experiment, the target content can be still displayed by the current display style parameters in response to the determination of missing any experimental group; and in response to determining that a particular experimental group is hit, displaying the target content in the experimental display style parameters corresponding to the experimental group.
For example, as shown in table 1, two experimental groups A, B may be set to test the display style parameters of the control group as the current display style parameters. The display style parameters may include a background color parameter, a text color parameter, a font size parameter, a font style parameter, and a corner parameter.
TABLE 1
According to some embodiments, step S201 may include: at least one annotation is obtained, each annotation comprising a current display style parameter and comprising one of the at least one experimental display style parameter. In this case, the discrimination method for determining whether one of the at least one experimental display style parameter is hit may include a respective discrimination sub-method for each of the at least one experimental display style parameter. The method may further comprise: and for each annotation in the at least one annotation, associating a corresponding discrimination sub-method of the experimental display style parameter corresponding to the annotation with the annotation. Therefore, the coding of the experimental group (namely the coding of the display style parameter) and the discrimination method can be logically decoupled in the form of the annotation, and the association between the annotation and the discrimination sub-method of the experimental group included in the annotation is established, so that the code is simpler and has better readability.
As shown in table 1, the notes for experimental group a may be, for example: the @ MavenElement { backGroundColor = { "cam_x01", "cam_x03" }, textColor = "cam_x02", "cam_x04" }, textSize = { "t_x01", "t_x02" }, burner = { "j_x01", "j_x02" }. Wherein @ MavenElement is the name of the annotation, backGroundColor is the background color, textColor is the text color, textSize is the font size, and corn is the corner.
According to some embodiments, step S202 may include: and establishing a mapping relation between the current display style parameter and each experimental display style data in the at least one experimental display style parameter and a mapping relation between at least one judging sub-method corresponding to the current display style parameter and the at least one experimental display style parameter respectively by scanning the at least one annotation. Therefore, the annotation information can be used by scanning the annotation by utilizing the annotation function, and the mapping relation between the codes of the control group and the codes of the experimental group and the discrimination method of the experimental group can be quickly established.
In some embodiments, one or more sets of experimental set codes may be provided, and the number of experimental sets provided is not limited in embodiments of the present disclosure. Further, whether the experimental group is hit or not may be determined by a discrimination method corresponding to the experimental group. If the experimental group is hit, modifying the parameters of the display attribute into experimental display style parameters corresponding to the experimental group; if all the experimental groups are not hit, the parameters of the display attribute are not modified, and the parameters are still displayed by the display style parameters of the comparison group (namely, the current display style parameters). For example, referring to table 1, if it is determined that the experimental group a is hit, the parameters of the display attribute may be modified to the background color "cam_x03", the letter color "cam_x04", the letter number "t_x02", the font style "f_x02", and the corner "j_x02" of the experimental group a.
According to some embodiments, the display style parameter of the target content in the content display method includes a plurality of sub-parameters corresponding to each of a plurality of display attributes, and step S202 may include: and establishing a mapping relation between the corresponding subparameter in the current display style parameter and the corresponding subparameter in each experimental display style data and a mapping relation between the corresponding subparameter in the current display style parameter and the corresponding judging method of the at least one experimental display style parameter aiming at each display attribute. Therefore, each sub-parameter of the comparison group can be used as a keyword to establish a mapping relation between the keyword and the corresponding sub-parameter in the experiment group and a mapping relation between the keyword and the corresponding judging method of the experiment group, and further, when the judgment of hitting a certain experiment group is made, the sub-parameter corresponding to the keyword in the experiment group can be returned to carry out the modification of the corresponding display attribute.
In one exemplary embodiment, referring to table 1, taking experimental group a as an example, a mapping relationship between the background color of the control group and the background color of experimental group a, and a mapping relationship between the background color of the control group and the discrimination sub-method of experimental group a may be established: CAM_X101-CAM_X103-isATest (); establishing a mapping relation between the text color of the control group and the text color of the experimental group A, and a mapping relation between the text color of the control group and the discrimination sub-method of the experimental group A: CAM_X02-CAM_X04-isATest (); establishing a mapping relation between the word size of the control group and the word size of the experiment group A and a mapping relation between the word size of the control group and the discrimination sub-method of the experiment group A: CAM_X02-CAM_X04-isATest ().
According to other embodiments, the content display method may further include: determining a unique identification of the current display style parameter and a unique identification of each of the at least one experimental display style parameter. In this case, step S202 may include: establishing a mapping relation between the unique identifier of the current display style parameter and the unique identifier of each experimental display style data, and a mapping relation between the unique identifier of the current display style parameter and the corresponding judging method of the at least one experimental display style parameter. Therefore, a unique identifier can be set for each display style parameter, a mapping relation between a comparison group and an experimental group code and a mapping relation between the comparison group and a discrimination method are established through the respective corresponding unique identifiers, so that the mapping relation between the comparison group and a plurality of experimental groups can be set for the current display style parameter, and under the condition that a certain experimental group is determined to be hit, the experimental display style parameter of the experimental group can be returned, and each display attribute of the target content is modified to be a corresponding sub-parameter in the experimental display style parameter based on the display attribute.
According to some embodiments, step S204 may include: and determining the current display style parameter as the style parameter to be displayed in response to determining that the judging result of the judging method represents any one of the at least one experimental display style parameter is missed. In other words, if any experimental display style parameter is not hit, the display style parameter of the control group is still used for display, and the parameters of the display attribute are not modified.
Given the content display method above, a specific content display apparatus unit will be described below.
According to another aspect of the present disclosure, as shown in fig. 3, there is also provided a content display apparatus 300. The apparatus 300 may include: an obtaining unit 301 configured to obtain a current display style parameter and at least one experimental display style parameter of the target content; a setting-up unit 302 configured to set up a mapping relation between the current display style parameter and each of the at least one experimental display style parameter and a mapping relation between the current display style parameter and a discrimination method corresponding to the at least one experimental display style parameter, the discrimination method being configured to determine whether one of the at least one experimental display style parameter is hit; an execution unit 303 configured to execute a discrimination method corresponding to the current display style parameter based on the established mapping relation; and a determining unit 304 configured to determine a style parameter to be displayed from the current display style parameter and the at least one experimental display style parameter based on a determination result of the determination method.
Here, the operations of the above units 301 to 304 of the content display apparatus 300 are similar to those of the steps S201 to S204 described above, respectively, and are not described here again.
In the small-flow experimental scenario, the display unit of the client may be configured to display the target content based on the determined style parameter to be displayed, so that the user may evaluate the experimental display style parameter and feed back evaluation data to the server. The server may determine a final UI display style based on the user's evaluation data.
According to some embodiments, the obtaining unit 301 may be configured to obtain the current display style parameter and the at least one experimental display style parameter of the target content by performing the steps of: at least one annotation is received, each annotation comprising a current display style parameter and comprising one of the at least one experimental display style parameter, and the discriminant method comprises a discriminant sub-method corresponding to each of the at least one experimental display style parameter. In this case, the apparatus may further include: and an association unit configured to associate, for each of the at least one annotation, the annotation with a discriminant sub-method corresponding to the experimental display style parameter included in the annotation.
According to some embodiments, the establishing unit 302 may be configured to establish a mapping relationship between the current display style parameter and each of the at least one experimental display style parameter and the at least one discriminant sub-method corresponding to each of the at least one experimental display style parameter by scanning the at least one annotation.
According to some embodiments, the display style parameters of the target content may include a plurality of sub-parameters corresponding to each of a plurality of display attributes. In this case, the establishing unit 302 may be configured to establish, for each display attribute, a mapping relationship between a corresponding sub-parameter in the current display style parameter and a corresponding sub-parameter in each experimental display style data, and a mapping relationship between a corresponding sub-parameter in the current display style parameter and a discrimination method corresponding to the at least one experimental display style parameter.
According to some embodiments, the content display apparatus may further include: a marking unit configured to determine a unique identification of the current display style parameter and a unique identification of each of the at least one experimental display style parameter. In this case, the establishing unit may be configured to establish a mapping relationship between the unique identifier of the current display style parameter and the unique identifier of each experimental display style data, and a mapping relationship between the unique identifier of the current display style parameter and the discrimination method corresponding to the at least one experimental display style parameter.
According to some embodiments, the determining unit 304 may be configured to determine the current display style parameter as the to-be-displayed style parameter in response to determining that the determination result of the discrimination method characterizes any one of the at least one experimental display style parameter as missing.
According to embodiments of the present disclosure, there is also provided an electronic device, a readable storage medium and a computer program product.
Referring to fig. 4, a block diagram of an electronic device 400 that may be a server or a client of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 4, the apparatus 400 includes a computing unit 401 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In RAM 403, various programs and data required for the operation of device 400 may also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Various components in device 400 are connected to I/O interface 405, including: an input unit 406, an output unit 407, a storage unit 408, and a communication unit 409. The input unit 406 may be any type of device capable of inputting information to the device 400, the input unit 406 may receive input numeric or character information and generate key signal inputs related to user settings and/or function control of the electronic device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a trackpad, a trackball, a joystick, a microphone, and/or a remote control. The output unit 407 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, video/audio output terminals, vibrators, and/or printers. Storage unit 408 may include, but is not limited to, magnetic disks, optical disks. The communication unit 409 allows the device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and/or chipsets, such as bluetooth (TM) devices, 1302.11 devices, wiFi devices, wiMax devices, cellular communication devices, and/or the like.
The computing unit 401 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 401 performs the respective methods and processes described above, for example, a content display method. For example, in some embodiments, the content display method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 400 via the ROM 402 and/or the communication unit 409. When a computer program is loaded into RAM 403 and executed by computing unit 401, one or more steps of the content display method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the method content display method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
Although embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it is to be understood that the foregoing methods, systems, and apparatus are merely exemplary embodiments or examples, and that the scope of the present invention is not limited by these embodiments or examples but only by the claims following the grant and their equivalents. Various elements of the embodiments or examples may be omitted or replaced with equivalent elements thereof. Furthermore, the steps may be performed in a different order than described in the present disclosure. Further, various elements of the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced by equivalent elements that appear after the disclosure.

Claims (15)

1. A content display method, comprising:
acquiring a current display style parameter and at least one experimental display style parameter of target content;
establishing a mapping relationship between the current display style parameter and each of the at least one experimental display style parameter, and a mapping relationship between the current display style parameter and a discrimination method corresponding to the at least one experimental display style parameter, the discrimination method configured to determine whether one of the at least one experimental display style parameter is hit;
Executing a judging method corresponding to the current display style parameter based on the established mapping relation; and
and determining a style parameter to be displayed from the current display style parameter and the at least one experimental display style parameter based on a judging result of the judging method.
2. The method of claim 1, wherein obtaining the current display style parameter and the at least one experimental display style parameter of the target content comprises:
obtaining at least one annotation, each annotation comprising a current display style parameter and comprising one of the at least one experimental display style parameter,
and the discrimination method includes a discrimination sub-method corresponding to each of the at least one experimental display style parameter, the method further comprising:
for each of the at least one annotation, associating the annotation with a discriminant sub-method corresponding to the experimental display style parameters included in the annotation.
3. The method of claim 2, wherein establishing a mapping relationship between the current display style parameter and each of the at least one experimental display style parameter, and a mapping relationship between the current display style parameter and a corresponding discrimination method of the at least one experimental display style parameter comprises:
And establishing a mapping relation between the current display style parameter and each experimental display style parameter in the at least one experimental display style parameter and a mapping relation between the current display style parameter and at least one discriminant sub-method corresponding to the at least one experimental display style parameter respectively by scanning the at least one annotation.
4. The method of any one of claim 1 to 3, wherein the display style parameters of the target content include a plurality of sub-parameters corresponding to a plurality of display attributes,
the method for determining the display style parameter comprises the steps of:
and establishing a mapping relation between the corresponding subparameter in the current display style parameter and the corresponding subparameter in each experimental display style data and a mapping relation between the corresponding subparameter in the current display style parameter and a judging method corresponding to the at least one experimental display style parameter for each display attribute.
5. A method according to any of claims 1-3, wherein the display style parameters of the target content include at least one of:
background color parameters, text color parameters, font size parameters, font style parameters, and corner parameters.
6. A method according to any one of claims 1-3, further comprising:
determining a unique identification of the current display style parameter and a unique identification of each of the at least one experimental display style parameter,
the method for determining the display style parameter comprises the steps of:
establishing a mapping relation between the unique identifier of the current display style parameter and the unique identifier of each experimental display style data, and a mapping relation between the unique identifier of the current display style parameter and a discrimination method corresponding to the at least one experimental display style parameter.
7. The method of any of claims 1-3, wherein determining a style parameter to be displayed from the current display style parameter and the at least one experimental display style parameter based on a determination result of the determination method comprises:
And determining the current display style parameter as the style parameter to be displayed in response to determining that the judging result of the judging method represents any one of the at least one experimental display style parameter is missed.
8. A content display apparatus comprising:
an acquisition unit configured to acquire a current display style parameter and at least one experimental display style parameter of the target content;
a setting unit configured to set up a mapping relationship between the current display style parameter and each of the at least one experimental display style parameter and a mapping relationship between the current display style parameter and a discrimination method corresponding to the at least one experimental display style parameter, the discrimination method being configured to determine whether one of the at least one experimental display style parameter is hit;
an execution unit configured to execute a discrimination method corresponding to the current display style parameter based on the established mapping relation; and
and a determining unit configured to determine a style parameter to be displayed from the current display style parameter and the at least one experimental display style parameter based on a determination result of the determination method.
9. The apparatus of claim 8, wherein the obtaining unit is configured to obtain the current display style parameter and the at least one experimental display style parameter of the target content by performing the steps of:
obtaining at least one annotation, each annotation comprising a current display style parameter and comprising one of the at least one experimental display style parameter,
and the discriminating method includes a discriminating sub-method corresponding to each of the at least one experimental display style parameter, the apparatus further comprising:
and an association unit configured to associate, for each of the at least one annotation, the annotation with a discriminant sub-method corresponding to the experimental display style parameter included in the annotation.
10. The apparatus according to claim 9, wherein the establishing unit is configured to establish a mapping relationship between the current display style parameter and each of the at least one experimental display style parameter and at least one discriminant sub-method corresponding to each of the at least one experimental display style parameter by scanning the at least one annotation.
11. The apparatus of any of claims 8-10, wherein the display style parameters of the target content include a plurality of sub-parameters corresponding to a plurality of display attributes each,
the establishing unit is configured to establish, for each display attribute, a mapping relationship between a corresponding sub-parameter in the current display style parameter and a corresponding sub-parameter in each experimental display style data, and a mapping relationship between a corresponding sub-parameter in the current display style parameter and a discrimination method corresponding to the at least one experimental display style parameter.
12. The apparatus of any of claims 8-10, further comprising:
a marking unit configured to determine a unique identification of the current display style parameter and a unique identification of each of the at least one experimental display style parameter,
the establishing unit is configured to establish a mapping relationship between the unique identifier of the current display style parameter and the unique identifier of each experimental display style data, and a mapping relationship between the unique identifier of the current display style parameter and a discrimination method corresponding to the at least one experimental display style parameter.
13. The apparatus according to any one of claims 8-10, wherein the determining unit is configured to determine the current display style parameter as the to-be-displayed style parameter in response to determining that a judgment result of the judging method characterizes any one of the at least one experimental display style parameter as missing.
14. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the method comprises the steps of
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
15. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-7.
CN202110662629.2A 2021-06-15 2021-06-15 Content display method, device, equipment and medium Active CN113312050B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110662629.2A CN113312050B (en) 2021-06-15 2021-06-15 Content display method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110662629.2A CN113312050B (en) 2021-06-15 2021-06-15 Content display method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN113312050A CN113312050A (en) 2021-08-27
CN113312050B true CN113312050B (en) 2023-08-15

Family

ID=77378836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110662629.2A Active CN113312050B (en) 2021-06-15 2021-06-15 Content display method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113312050B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7290243B1 (en) * 2001-02-28 2007-10-30 Apple Inc. Method and apparatus for application building using build styles
CN107766250A (en) * 2017-11-02 2018-03-06 百度在线网络技术(北京)有限公司 Method of testing, device, server and the storage medium of advertisement pattern
CN108399173A (en) * 2017-02-07 2018-08-14 阿里巴巴集团控股有限公司 A kind of style configuration of page assembly, page generation method and its device
CN108733370A (en) * 2018-04-28 2018-11-02 广东蜂助手网络技术股份有限公司 Patterned display methods, device, terminal and the storage medium of primary APP
CN109492182A (en) * 2018-11-05 2019-03-19 珠海格力电器股份有限公司 Page generation method, device, page display system and storage medium
CN110007992A (en) * 2019-02-27 2019-07-12 努比亚技术有限公司 A kind of page display method, terminal and computer readable storage medium
CN111368180A (en) * 2018-12-25 2020-07-03 阿里巴巴集团控股有限公司 Page display method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8595615B2 (en) * 2007-02-07 2013-11-26 International Business Machines Corporation System and method for automatic stylesheet inference

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7290243B1 (en) * 2001-02-28 2007-10-30 Apple Inc. Method and apparatus for application building using build styles
CN108399173A (en) * 2017-02-07 2018-08-14 阿里巴巴集团控股有限公司 A kind of style configuration of page assembly, page generation method and its device
CN107766250A (en) * 2017-11-02 2018-03-06 百度在线网络技术(北京)有限公司 Method of testing, device, server and the storage medium of advertisement pattern
CN108733370A (en) * 2018-04-28 2018-11-02 广东蜂助手网络技术股份有限公司 Patterned display methods, device, terminal and the storage medium of primary APP
CN109492182A (en) * 2018-11-05 2019-03-19 珠海格力电器股份有限公司 Page generation method, device, page display system and storage medium
CN111368180A (en) * 2018-12-25 2020-07-03 阿里巴巴集团控股有限公司 Page display method and device and electronic equipment
CN110007992A (en) * 2019-02-27 2019-07-12 努比亚技术有限公司 A kind of page display method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN113312050A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN112836072B (en) Information display method and device, electronic equipment and medium
CN113641936B (en) Method, device, electronic equipment and storage medium for page skip
CN116306396A (en) Chip verification method and device, equipment and medium
CN112860566B (en) Applet detection method, device, electronic equipment and readable medium
CN116737928B (en) Text mining method and system for platform user requirements and cloud platform
CN115600646B (en) Language model training method, device, medium and equipment
CN115269989B (en) Object recommendation method, device, electronic equipment and storage medium
CN113312050B (en) Content display method, device, equipment and medium
CN113641929B (en) Page rendering method, device, electronic equipment and computer readable storage medium
CN114510308B (en) Method, device, equipment and medium for storing application page by mobile terminal
CN113868453B (en) Object recommendation method and device
CN113839944B (en) Method, device, electronic equipment and medium for coping with network attack
CN113012258B (en) Method, device, electronic equipment and readable medium for generating multi-section line graph
CN113126865B (en) Note generation method and device in video learning process, electronic equipment and medium
CN115809364B (en) Object recommendation method and model training method
CN112559883B (en) Method, apparatus, electronic device and readable medium for evaluating recommendation system
CN114861658B (en) Address information analysis method and device, equipment and medium
CN115587228B (en) Object query method, object storage method and device
CN116070711B (en) Data processing method, device, electronic equipment and storage medium
CN114594891B (en) Document data processing method, device, electronic equipment and medium
CN113254469B (en) Data screening method, device, equipment and medium
CN114140851B (en) Image detection method and method for training image detection model
CN113836939B (en) Text-based data analysis method and device
CN113963234B (en) Data annotation processing method, device, electronic equipment and medium
CN114117046B (en) Data processing method, device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant