Content page processing method and device, electronic equipment and storage medium

By determining the component and view types of content pages during code compilation, the problem of large performance loss of componentized pages at runtime is solved, and more efficient performance performance is achieved.

CN119917194APending Publication Date: 2025-05-02BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311436530.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

In the prior art, componentized pages have a large performance loss during code operation, mainly because component type judgment depends on business parameter transmission, resulting in increased performance consumption during runtime.

Method used

By determining the abstract view type and target view type of the functional area, combining the target components with the constructor, the components and view types associated with the content page are determined in advance during code compilation, thereby reducing runtime performance losses.

Benefits of technology

By determining component and view types in advance, performance losses during code runs are reduced and runtime performance is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917194A_ABST
    Figure CN119917194A_ABST
Patent Text Reader

Abstract

Embodiments of the invention provide a content page processing method and apparatus, an electronic device and a storage medium. The content page processing method comprises the steps of determining an abstract view type of a functional region; determining a target view type of the functional area, wherein the target view type meets the constraint of the abstract view type; determining a content page, wherein the content page comprises a functional region of the abstract view type; a constructor is determined, the constructor is used for combining at least one target component, and the at least one target component is associated with the abstract view type and the target view type; and associating the target view type for the content page through the constructor. According to the content page processing method, the components on the content page can be determined in the compiling period, and the performance loss in the code running period is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to computer technology, and more particularly to a content page processing method, device, electronic device, and storage medium. Background Art

[0002] Componentization refers to the process of splitting multiple functional modules when decoupling complex systems. Page componentization can be considered as splitting a page into multiple functional modules, each of which performs its own function, thus facilitating the management and maintenance of the entire page.

[0003] Currently, componentized pages are pages that create business components based on the information provided by the business before the page is displayed during code execution, and are combined into business scenario pages. However, component type judgment depends on business parameter transmission, and parameter transmission occurs during code execution. Therefore, performance loss during code execution is relatively large. Summary of the invention

[0004] The present disclosure provides a content page processing method, device, electronic device and storage medium to reduce performance loss during code execution.

[0005] In a first aspect, an embodiment of the present disclosure provides a content page processing method, including:

[0006] Determine the abstract view type of the functional area;

[0007] Determining a target view type of the functional area, where the target view type satisfies a constraint of the abstract view type;

[0008] Determining a content page, wherein the content page includes a functional area of ​​the abstract view type;

[0009] Determine a constructor, the constructor being used to combine at least one target component, the at least one target component being associated with the abstract view type and the target view type respectively;

[0010] The target view type is associated with the content page through the constructor.

[0011] In a second aspect, the present disclosure also provides a content page processing device, including:

[0012] A first determination module is used to determine an abstract view type of a functional area;

[0013] A second determining module, configured to determine a target view type of the functional area, wherein the target view type satisfies a constraint of the abstract view type;

[0014] A third determination module is used to determine a content page, wherein the content page includes a functional area of ​​the abstract view type;

[0015] a fourth determining module, configured to determine a constructor, wherein the constructor is configured to combine at least one target component, wherein the at least one target component is associated with the abstract view type and the target view type, respectively;

[0016] An associating module is used to associate the target view type with the content page through the constructor.

[0017] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0018] one or more processing devices;

[0019] a storage device for storing one or more programs,

[0020] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method provided in the embodiment of the present disclosure.

[0021] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute the method provided in the embodiment of the present disclosure.

[0022] The disclosed embodiment determines an abstract view type of a functional area; determines a target view type of the functional area, the target view type satisfies the constraints of the abstract view type; determines a content page, the content page includes a functional area of ​​the abstract view type; determines a constructor, the constructor is used to combine at least one target component, the at least one target component is respectively associated with the abstract view type and the target view type; and associates the target view type with the content page through the constructor. This embodiment decouples the logic of the content page by means of components, determines the components and view types associated with the content page during code compilation, and reduces performance loss during code execution. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0024] Figure 1 It is a flowchart of a content page processing method provided by an embodiment of the present disclosure;

[0025] Figure 2 is a flowchart of another content page processing method provided by an embodiment of the present disclosure;

[0026] Figure 3 It is a schematic diagram of implementing componentization of a content page provided by an embodiment of the present disclosure;

[0027] Figure 4 is a structural schematic diagram of a content page processing device provided by an embodiment of the present disclosure;

[0028] Figure 5 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0030] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0031] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0032] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0033] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0035] Figure 1 It is a flow chart of a content page processing method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to the situation of implementing componentization of content pages. The method can be executed by a content page processing device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server, etc.

[0036] like Figure 1 As shown, the method includes:

[0037] S110: Determine the abstract view type of the functional area.

[0038] Functional areas can be considered as areas for implementing different functions. Functional areas can be areas in a page, such as a functional area for displaying a cover, a functional area for displaying content, and a functional area for human-computer interaction.

[0039] The view type can be considered as information that characterizes the type of view. The abstract view type can be considered as the abstraction of the target view type. The target view type can be considered as the view type corresponding to the business scenario, and the target view type can be used to implement the differentiated logic of the business scenario.

[0040] This operation can determine an abstract view type for a functional area to implement the definition of the view type of the functional area. This operation can be considered as the definition of an abstract functional area. The determined view type can be general. For example, it can indicate that the functional area can display pictures, texts, and controls for human-computer interaction.

[0041] In one embodiment, this operation can perform abstract view definition, first define a reusable view type, from the perspective of the page, the view can be reusable. Then define the abstract view type of the functional area, the abstract view type can shield the difference in business logic.

[0042] The functional area of ​​the present disclosure may be an area on a page, the page may display a media content stream, and the media content included in the media content stream may be displayed in sequence in the form of a list. The media content may refer to content that can convey information. The media content may include audio and at least one media resource, and the media resource may include images and / or videos.

[0043] Among them, the display method of the media content stream in the page is not limited, such as it can be displayed in two columns to form a two-column waterfall flow. The two-column waterfall flow can be considered as a media content stream displayed in two columns on the page, and the media content stream can be updated and displayed following the user's gesture sliding. In different business scenarios, the two-column display form of the media content stream is roughly the same, but in different business scenarios, the same type of pages will have certain functional differences. For example, the functions implemented by the controls for human-computer interaction on the page of the experience scenario and the controls for human-computer interaction on the page of the knowledge scenario may be different. In order to reduce the cost of code maintenance, the present disclosure can use a set of codes to implement the functions of different business scenarios and meet the differentiated requirements of different businesses for pages. The present disclosure can implement the content that is common to different business scenarios through abstract means, and implement the differentiated content of different business scenarios in the business logic.

[0044] The abstract view type of the functional area in this operation can meet the needs of multiple business scenarios.

[0045] In one embodiment, the abstract view type satisfies the constraints of a reusable view type.

[0046] After satisfying the constraints of reusable view types, abstract view types can have reusable characteristics, and abstract view types can be reused in multiple business scenarios.

[0047] In this embodiment, a reusable view type may be defined first, and then an abstract view type may be defined, so that the abstract view type satisfies the constraints of the reusable view type.

[0048] There may be multiple types of functional areas, and areas implementing different functions may correspond to different functional areas. For example, a page may be divided into three functional areas, including a functional area for displaying the cover (also called the cover area), a functional area for displaying media content (also called the content area), and a functional area for displaying controls for human-computer interaction (also called the interaction area).

[0049] Exemplarily, a reusable view type is defined; then an abstract reusable view type for a cover area is defined, an abstract reusable view type for a content area is defined, and an abstract reusable view type for an interactive area is defined.

[0050] When defining the view type of an abstract reusable functional area, it can satisfy the constraints of the human-computer interaction view and the reusable view type.

[0051] S120: Determine a target view type of the functional area, where the target view type satisfies constraints of the abstract view type.

[0052] In the present disclosure, satisfying a constraint can be considered as having the characteristics of the satisfied object. If the target view type satisfies the constraint of an abstract view type, it can be considered that the target view type has the characteristics of the abstract view type when implemented, such as being reusable and abstract.

[0053] Determining the target view type of the functional area in this operation can be considered as the determination of the actual view. Under the condition that the constraints of the defined abstract view type are met, this operation can create a view type for the business scenario to implement the differentiated logic of the business scenario.

[0054] In one embodiment, this operation may define a target view type for the cover area that satisfies the constraints of the abstract view type of the cover area, define a target view type for the content area that satisfies the constraints of the abstract view type of the content area, and define a target view type for the interaction area that satisfies the constraints of the abstract view type of the interaction area.

[0055] S130: Determine a content page, where the content page includes a functional area of ​​the abstract view type.

[0056] A content page can be considered as a page for displaying media content and can include multiple abstract view-type functional areas.

[0057] The form of the page in this disclosure is not limited, and it can be a card-style page. The content page can be considered as a card container. The component types of the cover area, content area, and interactive area on the card container are all abstract types. The card container does not need to perceive the differentiated logic, and can distribute common events and data to each component through the functions defined by the abstract type.

[0058] This operation can realize the definition of the card type corresponding to the business. Through the generic constraint, the card instantiation object needs to have a cover area, a text area, and an interactive area. The cover area, text area, and interactive area meet the corresponding abstract constraints respectively. For example, the cover area included in the content page meets the abstract cover area view type constraint, the content area included in the content page meets the abstract content area view type constraint, and the interactive area included in the content page meets the abstract interactive area view type constraint.

[0059] The instantiation objects include the instantiation of each functional area, such as the instantiation of the cover area, the instantiation of the content area and the instantiation of the interaction area.

[0060] For different business scenarios, you can differentiate your business logic by setting different functional areas for the content page.

[0061] In one embodiment, the content page includes a timing synchronization function, and the timing synchronization function is used to synchronize the reuse timing of the content page to the functional area included in the content page in the callback of the content page reuse.

[0062] The timing synchronization function may be considered as a function for realizing timing synchronization, such as a function for realizing the synchronization of the timing of a content page and the timing of a functional area included in the content page.

[0063] The reuse opportunity can be considered as a timing to characterize the reuse of the content page. In this embodiment, the synchronization of the content page and the functional area on the content page is achieved through the timing synchronization function.

[0064] The timing synchronization function may be implemented in a prepare-reuse function, and the prepare-reuse function may be a function for implementing reuse that is set when defining a reusable view type.

[0065] In one embodiment, the reuse opportunity of the content page can be through the components of the functional area. Each functional area can correspond to a component.

[0066] S140. Determine a constructor, where the constructor is used to combine at least one target component, and the at least one target component is associated with the abstract view type and the target view type, respectively.

[0067] In the present disclosure, the constructor can realize the construction of the page by combining components. In this embodiment, the constructor can combine at least one target component. At least one target component can be an actual component in a business scenario, realizing the differentiated logic in the business scenario.

[0068] At least one target component can satisfy the constraints of the abstract view type and the target view type. In the present disclosure, a component can include a view. When defining a component, the constraints of the abstract view type and the target view type can be set for the component to establish an association between at least one target component and the abstract view type and the target view type.

[0069] The target view type may be a concretization of an abstract view type. The number of at least one target component in the present disclosure may be determined based on the number of functional areas. The number of functional areas in this operation may be equal to the number of at least one target component.

[0070] Each at least one target component may correspond to a functional area, such as a cover area corresponds to a cover component, and the cover component may include a cover area. A content area corresponds to a content component, and the content component may include a content area. An interaction area corresponds to an interaction component, and the interaction component may include an interaction area.

[0071] The target view type of the present disclosure can satisfy the constraints of the abstract view type, and at least one target component can satisfy the constraints of the target view type. Thus, the association of at least one target component with the target view type and the abstract view type is achieved.

[0072] S150: Associating the target view type with the content page through the constructor.

[0073] After the constructor is determined, the target view type can be associated with the functional area included in the content page through at least one target component associated with the constructor, the abstract view type and the target view type, so as to realize the construction of the actual business.

[0074] The association between at least one target component and a target view type can be determined in the constructor. When determining the target view type of a content page, the constructor bound to the content page can use generics to specify the target view types of different functional areas, thereby determining the actual view type on the page during compilation.

[0075] The technical solution of the disclosed embodiment is to determine the abstract view type of the functional area; determine the target view type of the functional area, the target view type satisfies the constraints of the abstract view type; determine the content page, the content page includes the functional area of ​​the abstract view type; determine a constructor, the constructor is used to combine at least one target component, the at least one target component is respectively associated with the abstract view type and the target view type; and associate the target view type with the content page through the constructor. This embodiment decouples the logic of the content page by means of components, determines the components and view types associated with the content page during code compilation, and reduces performance loss during code execution.

[0076] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.

[0077] In one embodiment, the determining constructor includes:

[0078] Determine the abstract constructor of the combined abstract component;

[0079] A target builder combining at least one target component is determined, the target builder satisfying constraints of the abstract builder.

[0080] Abstract components can be considered as abstract components. Abstract constructors can be used to combine abstract components. Target constructors can combine at least one target component.

[0081] In this embodiment, the abstract constructor may be determined first, and then the target constructor is made to satisfy the constraints of the abstract constructor.

[0082] The target constructor satisfies the constraints of the abstract constructor and can implement differentiated logic of business scenarios based on the abstract constructor. Differentiated logic can be different logic in different business scenarios.

[0083] In one embodiment, the step of determining an abstract constructor of a combined abstract component includes:

[0084] Determine an abstract component, the abstract component is associated with the abstract view type, the abstract component includes an information synchronization function, the information synchronization function is used to synchronize the information required by the content page to the corresponding abstract component at runtime;

[0085] An abstract constructor combining the abstract components is determined.

[0086] The abstract component satisfies the constraints of the abstract view type to establish the association between the abstract component and the functional area. The information synchronization function can be considered as a function that implements information synchronization. For example, a function that implements the information synchronization required by the content page. The execution time of the information synchronization function can be during the code running, that is, at runtime. For example, during the code running period, the information required by the content page is synchronized to the abstract component through the information synchronization function.

[0087] The information required for the content page may include the life cycle of the controller of the page and the data description. The data description can be considered as the data to be filled in the page. For example, if the user's nickname is displayed on the page, the nickname can be used as the data description.

[0088] After the abstract component is determined, an abstract constructor that combines the abstract components can be defined for the abstract component.

[0089] In this embodiment, the abstract types of cover components, content components and interactive components can be first defined. The abstract type requires the component to be bound to a target view type. The view is reusable, and the component provides an information synchronization function for synchronizing the life cycle and data description of the page controller, also known as the card controller. Then an abstract constructor is defined. The abstract type constructor binds the abstract cover component, the abstract content component and the abstract interactive component to realize the combination of abstract components.

[0090] Taking the definition of an abstract cover component as an example, you can bind the cover view type to the abstract cover component, such as the view type of the abstract cover area, and synchronize the data description with the life cycle of the controller. After the definition, you can define a constructor, which is bound to the cover component, content component, and interaction component, and meets the constraints of the abstract cover component, abstract content component, and abstract interaction component.

[0091] In one embodiment, determining a target constructor combining at least one target component includes:

[0092] Creating at least one target component, the at least one target component satisfies the constraints of the abstract component, the at least one target component is associated with the target view type, and the at least one target component includes a lifecycle function for obtaining an instance object;

[0093] A target builder is determined, the target builder being used to assemble the at least one target component.

[0094] Creating at least one target component implements the definition of the actual component. At least one target component creates a view type of the functional area of ​​the business scenario under the premise of satisfying the abstract component constraints.

[0095] At least one target component is associated with the target view type to achieve binding with the target view type, and executes business logic by including a life cycle function for obtaining an instance object.

[0096] At least one target component that meets the abstract component constraints synchronizes the controller's lifecycle and data description, and implements differentiated logic for different businesses.

[0097] Taking a target component as a cover component as an example, the cover component can satisfy the constraints of the abstract cover component. As a target component, the cover component can specify the target view type of the cover area, obtain the instance object in the life cycle function, and execute business logic.

[0098] The target constructor satisfies the constraints of the abstract constructor and is used to specify target components, such as cover components, content components, and interactive components.

[0099] Figure 2 This is a flowchart of another content page processing method provided by an embodiment of the present disclosure. This embodiment refines the operation of associating a target view type with a content page. This embodiment includes the following steps:

[0100] S210: Determine the abstract view type of the functional area.

[0101] S220: Determine a target view type of the functional area, where the target view type satisfies constraints of the abstract view type.

[0102] S230: Determine a content page, where the content page includes a functional area of ​​the abstract view type.

[0103] S240. Determine a constructor, where the constructor is used to combine at least one target component, and the at least one target component is associated with the abstract view type and the target view type, respectively.

[0104] S250: Associating the constructor with the controller of the content page.

[0105] This operation can be achieved by defining a generic constructor for the controller of the content page to associate the constructor with the controller, so that the compiler can specify the target view type for different functional areas in the business scenario through the constructor.

[0106] In one embodiment, when the controller type of the content page is specified, the view elements of the content page, such as the cover component, the content component, and the interactive component, can be determined through the associated constructor.

[0107] In this embodiment, the controller can satisfy the constraints of the constructor to obtain the target component on the content page, and then obtain the corresponding target view type. Then, the binding with the content page is realized through the controller.

[0108] S260: Associating the target view type with the content page through the controller, and the life cycle function of the controller is used to synchronize resources with the components included in the content page.

[0109] In the lifecycle function of the constructor, the target view types of different functional areas are specified with generics through the bound target constructor, so that the compiler can determine the actual view type on the content page.

[0110] In the life cycle function of the controller, the timing of synchronization and object delivery to the components included in the content page are controlled, so that each component can implement its corresponding business logic in the corresponding life cycle function.

[0111] The controller's lifecycle function can pass the resources obtained by the controller (such as timing, objects, and unchanged events) to the components on the content page, so that the components can implement differentiated business logic based on the obtained resources.

[0112] This operation can determine the view type of each view element for the content page, and can distribute unchanged events to changing components to achieve decoupling of differentiated logic.

[0113] Figure 3It is a schematic diagram of the implementation of componentization of a content page provided by an embodiment of the present disclosure. The content page can become a waterfall card. The waterfall card is divided into three areas, namely, a cover area of ​​a reusable cover function on the card, a content area of ​​a reusable content function on the card, and an interactive area of ​​a reusable interactive area function on the card. The three areas can have abstract definitions, such as the cover area is an area for realizing the display of the cover image. The content area can be an area for realizing the display of media content, such as displaying a title. The interactive area can be an area with interactive buttons.

[0114] Taking the interactive area as an example, if the content of the button in the abstract interactive area is not limited in style, the event can be transmitted only after the button is clicked. In the actual bottom interactive area functional component, that is, the target component, such as the interactive component determination process, the abstract interactive component can be bound to provide a composable interactive area view for the waterfall flow card.

[0115] The components of each layer in the present disclosure can continue to be recursively combined, such as defining a component in the lower left corner of an abstract waterfall flow card and defining a component in the lower right corner of an abstract waterfall flow card.

[0116] The waterfall card constructor can combine at least one target component and is used to constrain the card controller, that is, the controller of the waterfall card. In the present disclosure, the waterfall card, the card data description, the controller of the waterfall card, the data description of the waterfall card, and the constructor of the waterfall card adopt the MVVM architecture.

[0117] The content page processing method disclosed in the present invention realizes the componentization of the waterfall flow compiler. The card is used as a container to split the logic of different areas into components. On the same card, different functions of the same area are implemented using different components.

[0118] In order to solve the technical problem that before each card is displayed at runtime, the components required by the business are created according to the information provided by the business, and the cards of the business scenario are combined, and the components are destroyed after the card is swiped out of the screen. The type of the component depends on the parameters passed by the business, and the performance problem during operation is significant. The present invention reduces the performance loss during runtime by advancing the selection and judgment of the component from runtime to the compilation period, so as to realize the reuse of components on the card in the same scenario. This reduces the creation and destruction of components when users use them, and greatly improves the performance at runtime.

[0119] The present disclosure decouples card logic by means of components and combines business logic by means of generics, thereby advancing the judgment timing from runtime to compiler, and deciding which components to use on a card in a certain business scenario during compilation.

[0120] From the perspective of the card container during the development phase, you do not need to worry about the detailed differences in different business scenarios in the same functional area. You only need to specify a constructor that satisfies the abstract type constraints for the card container.

[0121] During the compilation phase, the components of different functional areas specified by the business are bound to the business scenarios through the use of constructors, so that the combination of business functions is completed during the compilation phase.

[0122] By distributing the controller's lifecycle and data description to each actual business component at runtime, business functions are implemented without any performance loss.

[0123] Figure 4 is a structural diagram of a content page processing device provided by an embodiment of the present disclosure, such as Figure 4 As shown, the device comprises:

[0124] A first determining module 410 is used to determine an abstract view type of a functional area;

[0125] A second determining module 420, configured to determine a target view type of the functional area, wherein the target view type satisfies a constraint of the abstract view type;

[0126] A third determination module 430 is used to determine a content page, wherein the content page includes a functional area of ​​the abstract view type;

[0127] A fourth determining module 440 is used to determine a constructor, the constructor being used to combine at least one target component, the at least one target component being associated with the abstract view type and the target view type respectively;

[0128] The association module 450 is used to associate the target view type with the content page through the constructor.

[0129] The technical solution provided by the embodiment of the present disclosure decouples the logic of the content page by means of components, determines the components and view types associated with the content page during code compilation, and reduces performance loss during code execution.

[0130] The content page processing device provided in the embodiments of the present disclosure can execute the content page processing method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0131] In one embodiment, the abstract view type satisfies the constraints of a reusable view type.

[0132] In one embodiment, the content page includes a timing synchronization function, and the timing synchronization function is used to synchronize the reuse timing of the content page to the functional area included in the content page in the callback of the content page reuse.

[0133] In one embodiment, the fourth determining module 440 includes:

[0134] A first determining unit, configured to determine an abstract constructor of a combined abstract component;

[0135] The second determining unit is used to determine a target constructor that combines at least one target component, where the target constructor satisfies the constraints of the abstract constructor.

[0136] In one embodiment, the first determining unit is specifically configured to:

[0137] Determine an abstract component, the abstract component is associated with the abstract view type, the abstract component includes an information synchronization function, the information synchronization function is used to synchronize the information required by the content page to the corresponding abstract component at runtime;

[0138] An abstract constructor combining the abstract components is determined.

[0139] In one embodiment, the second determining unit is specifically configured to:

[0140] Creating at least one target component, the at least one target component satisfies the constraints of the abstract component, the at least one target component is associated with the target view type, and the at least one target component includes a lifecycle function for obtaining an instance object;

[0141] A target builder is determined, the target builder being used to assemble the at least one target component.

[0142] In one embodiment, the association module 450 is specifically configured to:

[0143] Associating the constructor with a controller of the content page;

[0144] The target view type is associated with the content page through the controller, and the life cycle function of the controller is used to synchronize resources with the components included in the content page.

[0145] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.

[0146] Figure 5Schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 5 , which shows an electronic device (eg, Figure 5 A schematic diagram of the structure of a terminal device or server) 500.

[0147] The electronic device 500 includes:

[0148] One or more processing devices 501;

[0149] The storage device 508 is used to store one or more programs.

[0150] When the one or more programs are executed by the one or more processing devices 501 , the one or more processing devices 501 implement the content page processing method provided by the present disclosure.

[0151] The terminal devices in the embodiments of the present disclosure may include but are not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., as well as fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0152] like Figure 5 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.

[0153] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0154] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0155] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0156] The electronic device provided by the embodiment of the present disclosure and the content page processing method provided by the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0157] The embodiment of the present disclosure provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the content page processing method provided by the above embodiment is implemented.

[0158] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.

[0159] The computer storage medium may be a storage medium of computer executable instructions, which, when executed by a computer processor, are used to perform the methods provided by the present disclosure.

[0160] Computer readable storage media may be, for example, but not limited to: electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination thereof. More specific examples of computer readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 thereof. In the present disclosure, a computer readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate, or transmit a program used by or in combination with an instruction execution system, device, or device. The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wire, optical cable, RF (radio frequency), etc., or any suitable combination of the foregoing.

[0161] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with 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"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0162] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0163] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0164] The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: determines an abstract view type of a functional area;

[0165] Determining a target view type of the functional area, where the target view type satisfies a constraint of the abstract view type;

[0166] Determining a content page, wherein the content page includes a functional area of ​​the abstract view type;

[0167] Determine a constructor, the constructor being used to combine at least one target component, the at least one target component being associated with the abstract view type and the target view type respectively;

[0168] The target view type is associated with the content page through the constructor.

[0169] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or combinations thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, Swift, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0170] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0171] The modules or units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module or unit does not limit the unit itself in some cases. For example, the first determination module may also be described as an "abstract view type determination module".

[0172] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0173] 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.

[0174] According to one or more embodiments of the present disclosure, [Example 1] provides a content page processing method, including:

[0175] Determine the abstract view type of the functional area;

[0176] Determining a target view type of the functional area, where the target view type satisfies a constraint of the abstract view type;

[0177] Determining a content page, wherein the content page includes a functional area of ​​the abstract view type;

[0178] Determine a constructor, the constructor being used to combine at least one target component, the at least one target component being associated with the abstract view type and the target view type respectively;

[0179] The target view type is associated with the content page through the constructor.

[0180] According to one or more embodiments of the present disclosure, [Example 2] provides the method described in Example 1, wherein the abstract view type satisfies the constraints of the reusable view type.

[0181] According to one or more embodiments of the present disclosure, [Example 3] provides the method described in Example 1, wherein the content page includes a timing synchronization function, and the timing synchronization function is used to synchronize the reuse timing of the content page to the functional area included in the content page in the callback of the content page reuse.

[0182] According to one or more embodiments of the present disclosure, [Example 4] provides the method described in Example 1, wherein determining the constructor includes:

[0183] Determine the abstract constructor of the combined abstract component;

[0184] A target builder combining at least one target component is determined, the target builder satisfying constraints of the abstract builder.

[0185] According to one or more embodiments of the present disclosure, [Example 5] provides the method described in Example 4, wherein determining an abstract constructor of a combined abstract component includes:

[0186] Determine an abstract component, the abstract component is associated with the abstract view type, the abstract component includes an information synchronization function, the information synchronization function is used to synchronize the information required by the content page to the corresponding abstract component at runtime;

[0187] An abstract constructor combining the abstract components is determined.

[0188] According to one or more embodiments of the present disclosure, [Example 6] provides the method described in Example 4, wherein determining a target constructor that combines at least one target component includes:

[0189] Creating at least one target component, the at least one target component satisfies the constraints of the abstract component, the at least one target component is associated with the target view type, and the at least one target component includes a lifecycle function for obtaining an instance object;

[0190] A target builder is determined, the target builder being used to assemble the at least one target component.

[0191] According to one or more embodiments of the present disclosure, [Example 7] provides the method described in Example 1, wherein associating the target view type with the content page through the constructor includes:

[0192] Associating the constructor with a controller of the content page;

[0193] The target view type is associated with the content page through the controller, and the life cycle function of the controller is used to synchronize resources with the components included in the content page.

[0194] According to one or more embodiments of the present disclosure, [Example 8] provides a content page processing device, including:

[0195] A first determination module is used to determine an abstract view type of a functional area;

[0196] A second determining module, configured to determine a target view type of the functional area, wherein the target view type satisfies a constraint of the abstract view type;

[0197] A third determination module is used to determine a content page, wherein the content page includes a functional area of ​​the abstract view type;

[0198] a fourth determining module, configured to determine a constructor, wherein the constructor is configured to combine at least one target component, wherein the at least one target component is associated with the abstract view type and the target view type, respectively;

[0199] An associating module is used to associate the target view type with the content page through the constructor.

[0200] According to one or more embodiments of the present disclosure, [Example 9] provides an electronic device, the electronic device comprising:

[0201] one or more processing devices;

[0202] a storage device for storing one or more programs,

[0203] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method described in any one of Examples 1-7.

[0204] According to one or more embodiments of the present disclosure, [Example 10] provides a storage medium containing computer-executable instructions, which are used to execute any of the methods described in Examples 1-7 when executed by a computer processor.

[0205] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0206] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although, in the above discussion, several specific implementation details are included, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0207] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A content page processing method, characterized in that: include: Determine the abstract view type of the functional area; Determining a target view type of the functional area, where the target view type satisfies a constraint of the abstract view type; Determining a content page, wherein the content page includes a functional area of ​​the abstract view type; Determine a constructor, the constructor being used to combine at least one target component, the at least one target component being associated with the abstract view type and the target view type respectively; The target view type is associated with the content page through the constructor.

2. The method according to claim 1, characterized in that The abstract view type satisfies the constraints of the reusable view type.

3. The method according to claim 1, characterized in that The content page includes a timing synchronization function, and the timing synchronization function is used to synchronize the reuse timing of the content page to the functional area included in the content page in the callback of the content page reuse.

4. The method according to claim 1, characterized in that: The determination constructor comprises: Determine the abstract constructor of the combined abstract component; A target builder combining at least one target component is determined, the target builder satisfying constraints of the abstract builder.

5. The method according to claim 4, characterized in that The abstract constructor for determining the combined abstract component includes: Determine an abstract component, the abstract component is associated with the abstract view type, the abstract component includes an information synchronization function, the information synchronization function is used to synchronize the information required by the content page to the corresponding abstract component at runtime; An abstract constructor combining the abstract components is determined.

6. The method according to claim 4, characterized in that The determining of a target constructor combining at least one target component comprises: Creating at least one target component, the at least one target component satisfies the constraints of the abstract component, the at least one target component is associated with the target view type, and the at least one target component includes a life cycle function for obtaining an instance object; A target builder is determined, the target builder being used to assemble the at least one target component.

7. The method according to claim 1, characterized in that The associating the target view type with the content page by the constructor includes: Associating the constructor with a controller of the content page; The target view type is associated with the content page through the controller, and the life cycle function of the controller is used to synchronize resources with the components included in the content page.

8. A content page processing device, characterized in that: include: A first determination module is used to determine an abstract view type of a functional area; A second determining module, configured to determine a target view type of the functional area, wherein the target view type satisfies a constraint of the abstract view type; A third determination module is used to determine a content page, wherein the content page includes a functional area of ​​the abstract view type; a fourth determining module, configured to determine a constructor, wherein the constructor is configured to combine at least one target component, wherein the at least one target component is associated with the abstract view type and the target view type, respectively; An associating module is used to associate the target view type with the content page through the constructor.

9. An electronic device, characterized in that: The electronic device comprises: one or more processing devices; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method according to any one of claims 1 to 7.

10. A storage medium comprising computer executable instructions, which when executed by a computer processor are used to perform the method according to any one of claims 1 to 7.