Page display method and device, equipment and medium
By encapsulating component description information and interaction information in the page description file, dynamic interactive adjustment of the user interface is realized, which solves the problem of insufficient interface display and interactivity in the existing technology, and improves the flexibility of page display and user experience.
Patent Information
- Application Number
- CN202410764172.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-01
AI Technical Summary
In terms of dynamizing the user interface, the existing technology only realizes the dynamization of the interface display and fails to fully improve the interactivity and flexibility between the user and the interface, resulting in insufficient flexibility of the interface display and interaction.
By encapsulating component description information and page interaction information in the page description file, the display end performs dynamic interaction adjustments while parsing the component description information, allowing users to dynamically interact with page components through page interaction operations (such as clicks and touches). Improve the flexibility of page display.
It realizes the dynamic interaction between users and page components, improves the flexibility of page display and user experience, and adapts to different screen sizes, device orientations and content changes.
Smart Images

Figure CN118732909A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, in particular to the field of page display and page interaction technology, and specifically to a page display method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0002] The client-side user interface dynamic technology aims to dynamically load, update and display the application's user interface at runtime to provide a more flexible, customizable and agile interaction method and improve the user experience. By dynamically adjusting the position, size and arrangement of component elements in the user interface, it can adapt to different screen sizes, directions and content changes. However, conventional dynamic technology only realizes the dynamic display of the interface, and does not involve the interactivity between the user and the interface. The flexibility of interface display and interaction is insufficient.
[0003] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention
[0004] The present disclosure provides a page display method, device, electronic device, computer-readable storage medium and computer program product.
[0005] According to one aspect of the present disclosure, a page display method is provided, comprising: in response to a page display request, obtaining a page description file, wherein the page description file includes component description information and page interaction information of at least one page component to be displayed, the page interaction information indicating at least one page interaction operation to be detected and component adjustment information corresponding to each page interaction operation in the at least one page interaction operation; based on the component description information, displaying the at least one page component; in response to detecting a target page interaction operation in the at least one page interaction operation, determining target component adjustment information corresponding to the target page interaction operation based on the page interaction information; and adjusting the at least one page component based on the component description information and the target component adjustment information.
[0006] According to another aspect of the present disclosure, a page display device is provided, including: an acquisition unit, configured to acquire a page description file in response to a page display request, wherein the page description file includes component description information and page interaction information of at least one page component to be displayed, the page interaction information indicating at least one page interaction operation to be detected and component adjustment information corresponding to each page interaction operation in the at least one page interaction operation; a display unit, configured to display the at least one page component based on the component description information; a determination unit, configured to determine target component adjustment information corresponding to the target page interaction operation based on the page interaction information in response to detecting a target page interaction operation in the at least one page interaction operation, and the display unit is further configured to adjust the at least one page component based on the component description information and the target component adjustment information.
[0007] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned page display method.
[0008] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the above-mentioned page display method.
[0009] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program can implement the above-mentioned page display method when executed by a processor.
[0010] According to one or more embodiments of the present disclosure, the flexibility of page presentation can be improved.
[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0013] Figure 1A schematic diagram showing an exemplary system in which the various methods described herein may be implemented according to an exemplary embodiment of the present disclosure;
[0014] Figure 2 A flow chart of a page display method according to an exemplary embodiment of the present disclosure is shown;
[0015] Figure 3 A schematic diagram showing a page display process according to an exemplary embodiment of the present disclosure is shown;
[0016] Figure 4 A schematic diagram showing page interaction information according to an exemplary embodiment of the present disclosure;
[0017] Figure 5 A schematic diagram of a page interaction link list according to an exemplary embodiment of the present disclosure is shown;
[0018] Figure 6 A structural block diagram of a page display device according to an exemplary embodiment of the present disclosure is shown;
[0019] Figure 7 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0020] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0021] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.
[0022] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.
[0023] In the traditional page display method, the user interface layout is designed and defined under static conditions, that is, the position, size and arrangement of the component elements in the user interface are determined when writing the code or designing. However, the goal of dynamic layout is to enable the layout of the user interface to be adjusted at runtime according to different factors to adapt to different screen sizes, device orientations, content changes, etc., that is, to use dynamic methods and technologies to create and adjust the layout of the user interface.
[0024] In the related art, one implementation method is to use a virtual operating environment to realize the dynamic user interface. For example, you can use a JavaScript operating environment or run a self-built virtual machine environment on the client. Another implementation method is to realize the dynamic layout based on Web technology, that is, to use web page technology for cross-end rendering. However, the application stability and fluency of the above solutions are insufficient, and it is difficult to achieve complex dynamic and flexible interactions.
[0025] Based on this, the present disclosure provides a page display method, which encapsulates component description information and page interaction information in a page description file, so that the display end can parse static display components based on the component description information, and perform dynamic interaction adjustments based on the page interaction information, so that users can achieve dynamic interaction with page components through page interaction operations (such as clicking, touching), thereby improving the flexibility of page display.
[0026] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0027] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 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. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.
[0028] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable the page presentation method to be performed.
[0029] In some embodiments, server 120 may also provide other services or software applications, which may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.
[0030] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.
[0031] The user may use client devices 101, 102, 103, 104, 105 and / or 106 to send page display requests and / or perform page interaction operations. The client device may provide an interface that enables the user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure may support any number of client devices.
[0032] Client devices 101, 102, 103, 104, 105 and / or 106 may include various categories of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various categories and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as 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 phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. The client device is capable of executing a variety of different applications, such as various Internet-related applications, communication applications (eg, email applications), short message service (SMS) applications, and may use various communication protocols.
[0033] The network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, 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 blockchain network, 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.
[0034] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.
[0035] The computing units in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The 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.
[0036] 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.
[0037] In some embodiments, the server 120 may be a server of a distributed system, or a server combined with 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. A cloud server is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.
[0038] 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 the databases 130 may be used to store information such as audio files and video files. The databases 130 may reside in various locations. For example, the database 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 databases 130 may be of different categories. In some embodiments, the databases used by the server 120 may be, for example, relational databases. One or more of these databases may store, update, and retrieve data to and from the databases in response to commands.
[0039] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different categories of databases, such as a key-value store, an object store, or a conventional store backed by a file system.
[0040] Figure 1 The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in the present disclosure.
[0041] Figure 2 FIG. 2 shows a flow chart of a page display method 200 according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the method 200 includes:
[0042] Step S201: in response to a page display request, obtaining a page description file, wherein the page description file includes component description information of at least one page component to be displayed and page interaction information, wherein the page interaction information indicates at least one page interaction operation to be detected and component adjustment information corresponding to each page interaction operation in the at least one page interaction operation;
[0043] Step S202: displaying the at least one page component based on the component description information;
[0044] Step S203, in response to detecting a target page interaction operation in the at least one page interaction operation, determining target component adjustment information corresponding to the target page interaction operation based on the page interaction information; and
[0045] Step S204: Adjust the at least one page component based on the component description information and the target component adjustment information.
[0046] By applying the above-mentioned page display method 200, component description information and page interaction information including page interaction operations and component adjustment information can be encapsulated in a page description file, so that the display end can parse static display components based on the component description information while performing dynamic interaction adjustments based on the page interaction information, so that users can achieve dynamic interaction with page components through page interaction operations (such as clicking, touching), thereby improving the flexibility of page display.
[0047] In some examples, page components may include various types of user interface components, such as dialog boxes, buttons, table items, cards, pop-up windows, etc., for displaying information to users or receiving user interaction operations, that is, enabling an interactive process of transmitting information between users and computers.
[0048] In some examples, the component description information of the page component may include information such as the size, style, and position of the component, so that the page display terminal can determine how to render and display each page component by parsing the component description information, that is, it can realize page display. It can be understood that as long as the component description information includes the firmware information of the display device and the relative display position and relative display size of the component on the display device, the page can be adapted to different screen sizes, device orientations, and content changes, and flexible adjustment of page display can be realized to improve user experience.
[0049] In some examples, the page interaction operation can be various types of predefined events. Predefined events can be used to indicate various interaction events or system events triggered by users or operating environments, such as mouse clicks, keyboard inputs, touch screen touches, page loading completion, message reception, etc.
[0050] In some examples, the page description file can be written in various languages, such as XML description language or JSON description language. By applying a structured description language to construct a page description file, the page display terminal can parse the page description file conveniently and quickly, so as to realize flexible page display based on the page display logic and dynamic interaction logic defined in the page description file.
[0051] In some examples, the component adjustment information may be various predefined actions, i.e., operations or behaviors performed in response to the above-mentioned page interaction operations, such as modifying the view state, modifying the component style, adjusting the component position, adjusting the component size, sending a network request, updating data, etc. In some examples, the action may also be performed in response to other trigger conditions to achieve more comprehensive and accurate page display logic and dynamic interaction logic to meet the needs of actual application scenarios.
[0052] According to some embodiments, the component adjustment information corresponding to each page interaction operation includes a component adjustment instruction or an instruction sequence consisting of multiple component adjustment instructions. In step S204, based on the component description information and the target component adjustment information, adjusting the at least one page component includes: in response to determining that the target component adjustment information includes a target instruction sequence consisting of multiple target component adjustment instructions, sequentially executing each target component adjustment instruction in the target instruction sequence for the at least one page component. In this way, flexible adjustment of the page can be achieved based on a single adjustment instruction or an instruction sequence, that is, dynamic interaction between user operation and page display is achieved.
[0053] It is understandable that the multiple target component adjustment instructions in the target instruction sequence can be defined based on a preset timing logic. By using the target instruction sequence to control the adjustment process of the page component, the page display operation can be configured in a certain order and logic, and the interaction process can be accurately organized and controlled to meet the needs of actual application scenarios.
[0054] In some examples, adjusting at least one page component based on the component description information and the target component adjustment information in step S204 may also be implemented in other ways. For example, the component description information of the target component may be adjusted and updated based on the target component adjustment information, and the component rendering and display may be re-executed based on the updated component description information, so that flexible display of the page can be achieved.
[0055] According to some embodiments, each of the plurality of component adjustment instructions includes scope information, the scope information indicates at least one second target page component that the component adjustment instruction can act on, and the execution process of the component adjustment instruction includes: executing the component adjustment instruction for the at least one second target page component. Thus, the scope can be used to flexibly and accurately control the scope of action of the component adjustment instruction, and more conveniently realize flexible display of the page.
[0056] According to some embodiments, the component adjustment information includes at least one sub-component adjustment information respectively corresponding to the at least one page component, and in step S203, in response to detecting a target page interaction operation in the at least one page interaction operation, determining the target component adjustment information corresponding to the target page interaction operation based on the page interaction information includes: in response to detecting a target page interaction operation for a first target page component in the at least one page component, determining the target sub-component adjustment information corresponding to the target page interaction operation and the first target page component based on the page interaction information. By applying the above means, the component adjustment information can be divided into sub-component adjustment information according to the page component, that is, the target sub-component adjustment information can be determined based on the detection order of the target page interaction operation-the first target page component, thereby reducing the control complexity and realizing flexible display of the page more conveniently.
[0057] In some examples, the component adjustment information may also be in other forms. For example, the page operation and component adjustment information may be defined based on a finer granularity. In one example, when a page includes component A and component B, the component adjustment information may include: X adjustment operation of component A, Y adjustment operation of component A, M adjustment operation of component B, N adjustment operation of component B, etc. By applying fine-grained component adjustment information to control the adjustment process of page components, the page interaction logic can be organized and controlled more accurately.
[0058] According to some embodiments, the page interaction information includes at least one first array corresponding to the at least one page interaction operation, and each of the at least one first array includes at least one item for storing the subcomponent adjustment information corresponding to the at least one page component. By storing the page interaction information in an array form in the page description file, the interaction logic can be described more simply and accurately, which facilitates the display end to perform the description file parsing operation and page display operation.
[0059] In some examples, page interaction information may be stored based on the following code snippet:
[0060]
[0061]
[0062] The above code snippet shows the first array corresponding to the page interaction operation 1, which includes two data items corresponding to component 1 and component 2 respectively for storing subcomponent adjustment information, and each data item includes an actions sequence corresponding to the corresponding component, that is, an instruction sequence consisting of target component adjustment instructions. In this example, the interaction operation field indicates different interaction operations, and the component ID field indicates the component ID that responds to the interaction operation. For example, when the interaction operation is a click, the interaction operation name can be click, and the first array corresponding to click can contain two sub-items, which respectively represent a click on a button (component 1) and a click on the page globally (component 2), that is, the component ID field is used to distinguish whether the interaction data is in response to a button click or a click on the page globally. On this basis, the component adjustment information can use actions as a keyword and use an array structure to store multiple Action actions to describe the target component adjustment instructions to be executed.
[0063] In one example, the basic structure of an Action may include action name information, parameter information required to execute the action, asynchronous callback configuration information, etc. In one example, when an Action contains an asynchronous callback configuration, there may be nested Actions. For example, after the operation on the data is completed, it is necessary to return the operation result to the data user. For another example, after the network request operation is completed, it is necessary to perform necessary callback operations such as returning information to the caller whether the network request is successful, the specific content of the successful data, etc., that is, to realize the configuration triggered by multiple Actions in a specific nested sequence. For example, when the initial value of the sum parameter is 0, action1 can be triggered to modify the sum parameter to 12, and then the setting operation can be triggered to adjust the values of other nodes after the sum parameter changes.
[0064] In some examples, page interaction information can also be stored based on other data structures, for example, a structured table can be used to store the mapping relationship between page interaction operations and component adjustment information. As long as the page interaction information can be accurately described to facilitate the page display end to determine the mapping relationship between page interaction operations and component adjustment information, the present disclosure does not limit the specific storage form of the page interaction information.
[0065] According to some embodiments, when the component adjustment information corresponding to each page interaction operation includes a component adjustment instruction or an instruction sequence consisting of multiple component adjustment instructions, method 200 further includes: generating a page interaction linked list by parsing the page interaction information, wherein the page interaction linked list includes at least one first-level branch corresponding to the at least one page interaction operation, each first-level branch in the at least one first-level branch includes at least one second-level branch corresponding to the at least one page component for storing the component adjustment instruction or the instruction sequence consisting of multiple component adjustment instructions, wherein, in response to detecting a target page interaction operation for a first target page component in the at least one page component, determining the target subcomponent adjustment information corresponding to the target page interaction operation and the first target page component based on the page interaction information includes: in response to detecting a target page interaction operation for a first target page component in the at least one page component, determining the target subcomponent adjustment information by querying the page interaction linked list. Thus, after parsing the page description file, the page display terminal can store the page interaction information in the memory in a logical structure of a linked list, fully utilizing the memory space while meeting the control requirements of the page interaction logic, and improving the convenience of page display.
[0066] Figure 3 FIG. 1 is a schematic diagram showing a page display process according to an exemplary embodiment of the present disclosure. Figure 3 As shown, the page display terminal is configured with a dynamic layout runtime 310 for realizing dynamic display and dynamic interaction of the page, that is, for providing an operating environment for the page display program. The dynamic layout runtime 310 includes functional modules such as a dynamic layout data parser 311, an interactive instruction parser 312, and an event scheduler 313. The dynamic layout data parser 311 is responsible for parsing the component description information related to each page component in the page description file. As mentioned above, the component description information can be dynamic layout data constructed based on information such as the relative display position and relative display size of the component on the display device, that is, it can make the page adapt to different screen sizes, device directions, and content changes, and realize flexible adjustment of page display. After parsing the component description information, all view data can be finally assembled into a view tree 320, and the view tree data can be stored in a preset storage location so that the dynamic layout runtime 310 can obtain the view description information and view events of the page layout from the view tree 320.
[0067] On this basis, the interaction instruction parser 312 can parse the page interaction information in the page description file, and then generate a page interaction information set indicating the mapping relationship between the event and the page adjustment information and store it in the memory. Figure 4 A schematic diagram showing page interaction information according to an exemplary embodiment of the present disclosure is shown. Figure 5A schematic diagram of a page interaction link list according to an exemplary embodiment of the present disclosure is shown.
[0068] like Figure 4 As shown, the page interaction information describes the mapping relationship between page interaction operations and component adjustment actions. Specific page interaction operations can trigger action chain data. Action chain data can be graph structure data established based on specific trigger timing and nested logic. The nodes in the action chain describe each executable action (for example, it can be a component adjustment action), and the edges in the action chain describe the trigger logic between each action.
[0069] like Figure 5 As shown, page interaction information can be stored in memory in the form of a page interaction list. Figure 5 Each page interaction list may be identified by a page ID, and the page interaction list includes a plurality of first-level branches (i.e. Figure 5 On this basis, the first-level branch chain may include multiple second-level branches corresponding to multiple page components (i.e. Figure 5 In the example, two groups of branches corresponding to component M, component N, and component X respectively are provided, and each secondary branch can be used to store the component adjustment action or an action chain consisting of multiple component adjustment actions.
[0070] The event scheduler 313 is responsible for receiving events (including view interaction events and system events) from the user or the system 330 configured by the page display end (for example, the operating system installed by the page display end or the application system corresponding to the page to be displayed), and matching the page interaction information corresponding to the event and executing it. In this example, the event scheduler 313 can be bound to the page, that is, each page is configured with a dedicated event scheduler 313, and the event scheduler 313 can map the received events into event names (for example, interaction operation names) corresponding to the configuration of the dynamic layout runtime 310.
[0071] By applying the above-mentioned technical means, when an event (such as a page interaction operation) is received by the event scheduler 313, the event scheduler 313 will convert the event into a predefined event name, and then further search according to the component ID, determine the action chain data to be executed in the page interaction information set and execute each adjustment action one by one, so as to achieve flexible adjustment of the page display.
[0072] In an example, the page display process can be implemented based on the following code snippet:
[0073] "event":{
[0074] "click":[
[0075] {"id":863395003,
[0076] "scopeId":863395003,
[0077] "actions":[{"type":"playAnim",
[0078] "args":{"url":"<animation Url>",
[0079] "end":[{type":"props",
[0080] "args":{"id":863395003,
[0081] "props":{"background-color":"<red>"}}}
[0082] In this example, the component adjustment actions corresponding to the click operation with the id "863395003" are described: specifically, the animation play action of type "playAnim" and the background color adjustment action of type "props" are included to achieve dynamic and flexible interaction between users and page components.
[0083] According to one aspect of the present disclosure, a page display device is also provided. Figure 6 FIG. 6 shows a structural block diagram of a page display device 600 according to an exemplary embodiment of the present disclosure. Figure 6 As shown, the page display device 600 includes:
[0084] The acquisition unit 601 is configured to acquire a page description file in response to a page display request, wherein the page description file includes component description information of at least one page component to be displayed and page interaction information, and the page interaction information indicates at least one page interaction operation to be detected and component adjustment information corresponding to each page interaction operation in the at least one page interaction operation;
[0085] A display unit 602 is configured to display the at least one page component based on the component description information;
[0086] The determining unit 603 is configured to, in response to detecting a target page interaction operation in the at least one page interaction operation, determine target component adjustment information corresponding to the target page interaction operation based on the page interaction information,
[0087] The display unit 602 is further configured to adjust the at least one page component based on the component description information and the target component adjustment information.
[0088] According to some embodiments, the component adjustment information corresponding to each page interaction operation includes a component adjustment instruction or an instruction sequence consisting of multiple component adjustment instructions, and the display unit 602 is configured to: in response to determining that the target component adjustment information includes a target instruction sequence consisting of multiple target component adjustment instructions, sequentially execute each target component adjustment instruction in the target instruction sequence for the at least one page component.
[0089] According to some embodiments, each of the multiple component adjustment instructions includes scope information, and the scope information indicates at least one second target page component on which the component adjustment instruction can act, and the display unit is configured to execute the component adjustment instruction for at least one second target page component corresponding to each component adjustment instruction.
[0090] According to some embodiments, the component adjustment information includes at least one sub-component adjustment information corresponding to the at least one page component respectively, and the determination unit 603 is configured to: in response to detecting a target page interaction operation for a first target page component in the at least one page component, determine the target sub-component adjustment information corresponding to the target page interaction operation and the first target page component based on the page interaction information.
[0091] According to some embodiments, the page interaction information includes at least one first array corresponding to the at least one page interaction operation, and each first array in the at least one first array includes at least one item for storing the sub-component adjustment information corresponding to the at least one page component.
[0092] According to some embodiments, when the component adjustment information corresponding to each page interaction operation includes a component adjustment instruction or an instruction sequence consisting of multiple component adjustment instructions, the device 600 also includes: a generation unit, configured to generate a page interaction linked list by parsing the page interaction information, wherein the page interaction linked list includes at least one first-level branch corresponding to the at least one page interaction operation, each of the at least one first-level branch includes at least one second-level branch corresponding to the at least one page component for storing the component adjustment instruction or the instruction sequence consisting of multiple component adjustment instructions, wherein the determination unit 603 is configured to: in response to detecting a target page interaction operation for a first target page component in the at least one page component, determine the target subcomponent adjustment information by querying the page interaction linked list.
[0093] According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned page display method.
[0094] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is also provided, wherein the computer instructions are used to enable the computer to execute the above-mentioned page display method.
[0095] According to another aspect of the present disclosure, a computer program product is also provided, including a computer program, wherein the computer program implements the above-mentioned page display method when executed by a processor.
[0096] refer to Figure 7 , a block diagram of an electronic device 700 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0097] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0098] Multiple components in the device 700 are connected to the I / O interface 705, including: an input unit 706, an output unit 707, a storage unit 708, and a communication unit 709. The input unit 706 can be any type of device that can input information to the device 700. The input unit 706 can receive input digital or character information and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and / or a remote controller. The output unit 707 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 708 can include but is not limited to a disk, an optical disk. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0099] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the page display method. For example, in some embodiments, the page display method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the page display method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the page display method in any other appropriate manner (e.g., by means of firmware).
[0100] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0101] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0102] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0103] To provide interaction with a user, the systems and techniques described herein 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 the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0104] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend 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: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0105] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0106] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0107] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples. Various elements in the embodiments or examples may be omitted or may be replaced by their equivalent elements. In addition, each step may be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples may be combined in various ways. It is important that with the evolution of technology, many elements described herein may be replaced by equivalent elements that appear after the present disclosure.
Claims
1. A page display method, comprising: In response to the page display request, a page description file is obtained, wherein the page description file includes component description information of at least one page component to be displayed and page interaction information, wherein the page interaction information indicates at least one page interaction operation to be detected and component adjustment information corresponding to each page interaction operation in the at least one page interaction operation; Based on the component description information, display the at least one page component; In response to detecting a target page interaction operation in the at least one page interaction operation, determining target component adjustment information corresponding to the target page interaction operation based on the page interaction information; and Based on the component description information and the target component adjustment information, the at least one page component is adjusted.
2. The method of claim 1, wherein: The component adjustment information corresponding to each page interaction operation includes a component adjustment instruction or an instruction sequence consisting of multiple component adjustment instructions, and adjusting the at least one page component based on the component description information and the target component adjustment information includes: In response to determining that the target component adjustment information includes a target instruction sequence consisting of a plurality of target component adjustment instructions, each target component adjustment instruction in the target instruction sequence is sequentially executed for the at least one page component.
3. The method of claim 2, wherein: Each of the plurality of component adjustment instructions includes scope information, where the scope information indicates at least one second target page component that the component adjustment instruction can act on, and the execution process of the component adjustment instruction includes: The component adjustment instruction is executed for the at least one second target page component.
4. The method according to any one of claims 1 to 3, wherein: The component adjustment information includes at least one subcomponent adjustment information corresponding to the at least one page component, and in response to detecting a target page interaction operation in the at least one page interaction operation, determining the target component adjustment information corresponding to the target page interaction operation based on the page interaction information includes: In response to detecting a target page interaction operation for a first target page component among the at least one page component, target subcomponent adjustment information corresponding to the target page interaction operation and the first target page component is determined based on the page interaction information.
5. The method of claim 4, wherein: The page interaction information includes at least one first array corresponding to the at least one page interaction operation, and each first array in the at least one first array includes at least one item for storing the sub-component adjustment information corresponding to the at least one page component.
6. The method according to claim 4 or 5, wherein: When the component adjustment information corresponding to each page interaction operation includes a component adjustment instruction or an instruction sequence consisting of a plurality of component adjustment instructions, the method further includes: By parsing the page interaction information, a page interaction linked list is generated, wherein the page interaction linked list includes at least one first-level branch chain corresponding to the at least one page interaction operation, each first-level branch chain in the at least one first-level branch chain includes at least one second-level branch chain corresponding to the at least one page component and used to store the component adjustment instruction or an instruction sequence composed of multiple component adjustment instructions, In response to detecting a target page interaction operation for a first target page component in the at least one page component, determining, based on the page interaction information, target subcomponent adjustment information corresponding to the target page interaction operation and the first target page component comprises: In response to detecting a target page interaction operation for a first target page component in the at least one page component, the target subcomponent adjustment information is determined by querying the page interaction linked list.
7. A page display device, comprising: an acquisition unit, configured to acquire a page description file in response to a page display request, wherein the page description file includes component description information of at least one page component to be displayed and page interaction information, the page interaction information indicating at least one page interaction operation to be detected and component adjustment information corresponding to each page interaction operation in the at least one page interaction operation; A display unit, configured to display the at least one page component based on the component description information; a determining unit configured to, in response to detecting a target page interaction operation in the at least one page interaction operation, determine target component adjustment information corresponding to the target page interaction operation based on the page interaction information, The display unit is further configured to adjust the at least one page component based on the component description information and the target component adjustment information.
8. The device according to claim 7, wherein: The component adjustment information corresponding to each page interaction operation includes a component adjustment instruction or an instruction sequence consisting of multiple component adjustment instructions, and the display unit is configured as follows: In response to determining that the target component adjustment information includes a target instruction sequence consisting of a plurality of target component adjustment instructions, each target component adjustment instruction in the target instruction sequence is sequentially executed for the at least one page component.
9. The device of claim 8, wherein: Each of the multiple component adjustment instructions includes scope information, and the scope information indicates at least one second target page component on which the component adjustment instruction can act. The display unit is configured to execute the component adjustment instruction for at least one second target page component corresponding to each component adjustment instruction.
10. The device according to any one of claims 7 to 9, wherein: The component adjustment information includes at least one sub-component adjustment information corresponding to the at least one page component respectively, and the determination unit is configured to: in response to detecting a target page interaction operation for a first target page component in the at least one page component, determine the target sub-component adjustment information corresponding to the target page interaction operation and the first target page component based on the page interaction information.
11. The device of claim 10, wherein: The page interaction information includes at least one first array corresponding to the at least one page interaction operation, and each first array in the at least one first array includes at least one item for storing the sub-component adjustment information corresponding to the at least one page component.
12. The device according to claim 10 or 11, wherein: When the component adjustment information corresponding to each page interaction operation includes a component adjustment instruction or an instruction sequence consisting of a plurality of component adjustment instructions, the device further includes: A generating unit is configured to generate a page interaction linked list by parsing the page interaction information, wherein the page interaction linked list includes at least one first-level branch chain corresponding to the at least one page interaction operation, each first-level branch chain in the at least one first-level branch chain includes at least one second-level branch chain corresponding to the at least one page component and used to store the component adjustment instruction or an instruction sequence composed of multiple component adjustment instructions, Wherein, the determining unit is configured as follows: In response to detecting a target page interaction operation for a first target page component in the at least one page component, the target subcomponent adjustment information is determined by querying the page interaction linked list.
13. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-6.
15. A computer program product comprising a computer program, wherein: The computer program implements the method according to any one of claims 1 to 6 when executed by a processor.
