CN112230922B - Page building method and device, storage medium and computer equipment - Google Patents

Page building method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN112230922B
CN112230922B CN202011156123.6A CN202011156123A CN112230922B CN 112230922 B CN112230922 B CN 112230922B CN 202011156123 A CN202011156123 A CN 202011156123A CN 112230922 B CN112230922 B CN 112230922B
Authority
CN
China
Prior art keywords
style
page
field
event
custom control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011156123.6A
Other languages
Chinese (zh)
Other versions
CN112230922A (en
Inventor
陈晓东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhongnong Yixun Information Technology Co ltd
Shenzhen Agricultural Products Co ltd
Original Assignee
Shenzhen Zhongnong Yixun Information Technology Co ltd
Shenzhen Agricultural Products Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhongnong Yixun Information Technology Co ltd, Shenzhen Agricultural Products Co ltd filed Critical Shenzhen Zhongnong Yixun Information Technology Co ltd
Priority to CN202011156123.6A priority Critical patent/CN112230922B/en
Publication of CN112230922A publication Critical patent/CN112230922A/en
Application granted granted Critical
Publication of CN112230922B publication Critical patent/CN112230922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a method and a device for building a page, a storage medium and computer equipment, wherein the method comprises the following steps: the method comprises the steps of obtaining typesetting data of a page through an interface, wherein the typesetting data comprises a style field and an event field, obtaining a corresponding custom control according to the style field, loading the custom control to the page, obtaining a corresponding style from a preset style library according to the style field, rendering the style to the custom control, obtaining a corresponding event according to the event field, binding the event to the custom control, building the page, and outputting the built page. The method has the advantages that the typesetting data are obtained from the interface, the custom control is loaded into the page according to the typesetting data, and the corresponding event is bound to the custom control, so that the rendering and the construction of the page are finally realized, the problem of repeated development of the page needing updating of patterns and events in time is solved, the page development cost is reduced, and the page development period is shortened.

Description

Page building method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of page building technologies, and in particular, to a method and apparatus for building a page, a storage medium, and a computer device.
Background
With the rapid popularization and development of smart phones, related mobile development technologies are increasingly different, the time for each person to operate the smart phone every day is also longer, and the experience requirements on various application software APP are also higher. The capturing and responding of enterprises to market demands are faster and faster, and the faster the requirements of users are met, the faster the enterprises can rapidly preempt the market, so the enterprises expect that staff can be more efficient in the development process, and the development cost and the development period can be reduced as much as possible. However, at present, due to different requirements of service scenes, APP pages need to be displayed differently or respond to different events at different times, and similar pages need to be customized developed according to the requirements, so that developers need to repeatedly develop the similar requirements, and labor cost and maintenance cost are correspondingly increased. For example, many holiday activities and other demands release version updates just before the holiday, and users can lose their user and operating effects if the versions are not updated in time. And the business party needs to comb the requirement and communicate with the developer, so that the problems of labor cost consumption, prolonged requirement implementation period and the like are caused.
Disclosure of Invention
Based on the above, it is necessary to provide a method and apparatus for building a page, a storage medium and a computer device for the above problems.
In a first aspect, the present application provides a method of page building, the method comprising:
Acquiring typesetting data of a page through an interface, wherein the typesetting data comprises a style field and an event field;
acquiring a corresponding custom control according to the style field and loading the custom control to a page;
acquiring a corresponding style from a preset style library according to the style field and rendering the style to the custom control;
Acquiring a corresponding event according to the event field and binding the event to the custom control so as to build a page;
And outputting the page with the built-up.
Optionally, the obtaining, through the interface, layout data of the page, where before the layout data includes a style field and an event field, the method includes:
receiving a target pattern, wherein the target pattern comprises a target pattern library version number;
and updating the preset style library according to the version number of the target style library of the target style.
Optionally, the updating the preset style library according to the version number of the target style library of the target style includes:
comparing the version number of the existing style library in the preset style library with the version number of the target style library;
And if the version number of the existing style library is different from that of the target style library, updating the existing style in the preset style library according to the target style.
Optionally, the typesetting data of the page is obtained through an interface, and before the typesetting data includes a style field and an event field, the method further includes:
carrying out style disassembly on the initial page;
extracting a common pattern from the disassembled patterns;
encapsulating the public style into the custom control according to a node, wherein the node is the smallest common assembly block in the initial page;
setting an interface data appointed field of the custom control, and binding the custom control with the interface data appointed field, wherein the interface data appointed field comprises the style field and the event field for packaging and obtaining a public style used by the custom control.
Optionally, the typesetting data of the page is obtained through an interface, and before the typesetting data includes a style field and an event field, the method further includes:
extracting a public event from the response event in the initial page, and packaging the public event to obtain the event taking the custom control as a unit;
binding the event with the interface data appointed field, wherein the interface data appointed field comprises the style field and the event field for packaging and obtaining the public style used by the custom control.
Optionally, the typesetting data further includes: whether the head of the custom control shows, routes the type, the title, the content, the picture, the inner edge distance, the outer edge distance, the round angle, the frame and the background, the output builds the page that completes, include:
Typesetting the built page according to whether the head of the custom control is displayed, the route type, the title, the content, the picture, the inner edge distance, the outer edge distance, the round angle, the frame and the background;
and displaying the typeset page.
Optionally, after obtaining the corresponding custom control according to the style field and loading the custom control to the page, the method includes:
Storing the custom controls which are not required to be displayed in the page into a control cache set;
When the page needs to be displayed and stored in the custom control in the control cache set, the custom control in the control cache set is acquired to be displayed in a multiplexing mode.
In a second aspect, the application provides a device for page building, the device comprising:
The acquisition module is used for acquiring typesetting data of the page through the interface, wherein the typesetting data comprises a style field and an event field;
The first execution module is used for acquiring a corresponding custom control according to the style field and loading the custom control to a page;
The second execution module is used for acquiring a corresponding style from a preset style library according to the style field and rendering the style to the custom control;
The third execution module is used for acquiring a corresponding event according to the event field and binding the event to the custom control so as to build a page;
and the output module is used for outputting the built page.
In a third aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
Acquiring typesetting data of a page through an interface, wherein the typesetting data comprises a style field and an event field;
acquiring a corresponding custom control according to the style field and loading the custom control to a page;
acquiring a corresponding style from a preset style library according to the style field and rendering the style to the custom control;
Acquiring a corresponding event according to the event field and binding the event to the custom control so as to build a page;
And outputting the page with the built-up.
In a fourth aspect, the application provides a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
Acquiring typesetting data of a page through an interface, wherein the typesetting data comprises a style field and an event field;
acquiring a corresponding custom control according to the style field and loading the custom control to a page;
acquiring a corresponding style from a preset style library according to the style field and rendering the style to the custom control;
Acquiring a corresponding event according to the event field and binding the event to the custom control so as to build a page;
And outputting the page with the built-up.
The embodiment of the invention has the following beneficial effects:
the invention discloses a method and a device for constructing a page, a storage medium and computer equipment, wherein the method comprises the following steps: the method comprises the steps of obtaining typesetting data of a page through an interface, wherein the typesetting data comprises a style field and an event field, obtaining a corresponding custom control according to the style field, loading the custom control to the page, obtaining a corresponding style from a preset style library according to the style field, rendering the style to the custom control, obtaining a corresponding event according to the event field, binding the event to the custom control, building the page, and outputting the built page. The method has the advantages that the typesetting data are obtained from the interface, the custom control is loaded into the page according to the typesetting data, and the corresponding event is bound to the custom control, so that the rendering and the construction of the page are finally realized, the problem of repeated development of the page needing updating of patterns and events in time is solved, the page development cost is reduced, and the page development period is shortened.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a schematic flow chart of a method for building a page in an embodiment of the present application;
FIG. 2 is a flow chart illustrating additional steps before step 101 of the method for page building in the embodiment of FIG. 1 according to the present application;
FIG. 3 is a flowchart illustrating additional steps after step 102 of the method for page building in the embodiment of FIG. 1 according to the present application;
FIG. 4 is a schematic structural diagram of a device for building a page in an embodiment of the present application;
Fig. 5 is a block diagram of a computer device in an embodiment of the application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flow chart of a method for building a page in an embodiment of the present application is shown, where the method includes:
step 101, typesetting data of a page is obtained through an interface, wherein the typesetting data comprises a style field and an event field;
102, acquiring a corresponding custom control according to the style field and loading the custom control to a page;
step 103, acquiring a corresponding style from a preset style library according to the style field and rendering the style to the custom control;
104, acquiring a corresponding event according to the event field and binding the event to the custom control to build a page;
and 105, outputting the built page.
In the embodiment of the application, when the page is required to be typeset and edited, typesetting data is acquired through an interface, wherein the typesetting data comprises a style field and an event field, and the style field and the event field are all preset unique values. The style fields are in one-to-one correspondence with the custom controls, and the style fields are also in one-to-one correspondence with the styles in the preset style library, so that the custom controls with corresponding style fields can be obtained according to the style fields in typesetting data and loaded into a page; the event fields are in one-to-one correspondence with the custom controls, and the event fields are also in one-to-one correspondence with the events, wherein the events refer to the events responded by the custom controls when the custom controls are operated, so that the custom controls with corresponding event fields can be found in the page according to the event fields in the typesetting data, and the events are bound with the found custom controls, so that the corresponding events can be responded when the custom controls are operated. And finally, outputting and presenting the page which is built and completed by utilizing the custom control with the demand patterns and the demand response events.
Further, the typesetting data further includes: whether the header of the custom control shows, routes the type, title, content, picture, inner and outer margins, rounded corners, borders and background, therefore, step 105 further comprises: and typesetting the built page according to whether the head of the custom control is displayed, the route type, the title, the content, the picture, the inner edge distance, the outer edge distance, the round angle, the frame and the background, and displaying the typeset page.
Specifically, due to different requirements of business scenes or requirements of holidays, holiday activities and the like, the pages need to be displayed with different page styles and response events, so that the pages can be typeset and edited by the method to obtain the pages customized for different requirements.
In the embodiment of the application, a method for constructing a page comprises the following steps: the method comprises the steps of obtaining typesetting data of a page through an interface, wherein the typesetting data comprises a style field and an event field, obtaining a corresponding custom control according to the style field, loading the custom control to the page, obtaining a corresponding style from a preset style library according to the style field, rendering the style to the custom control, obtaining a corresponding event according to the event field, binding the event to the custom control, building the page, and outputting the built page. The method has the advantages that the typesetting data are obtained from the interface, the custom control is loaded into the page according to the typesetting data, and the corresponding event is bound to the custom control, so that the rendering and the construction of the page are finally realized, the problem of repeated development of the page needing updating of patterns and events in time is solved, the page development cost is reduced, and the page development period is shortened.
In a possible implementation manner, as shown in fig. 2, a flow chart of an additional step before step 101 of the method for building a page in the embodiment of fig. 1 of the present application includes:
Step 201, receiving a target pattern, wherein the target pattern comprises a target pattern library version number;
step 202, updating the preset style library according to the version number of the target style library of the target style;
Specifically, comparing the version number of the existing style library in the preset style library with the version number of the target style library, and if the version number of the existing style library is different from the version number of the target style library, updating the existing style in the preset style library according to the target style.
In the embodiment of the application, a preset style library is built in advance, the preset style library comprises all the existing styles of the custom controls for rendering the built page, when the styles of the custom controls in the page are required to be updated according to different requirements, a developer does not need to redevelop the page, and the update of the styles of the custom controls can be realized only by purposefully updating the existing styles in the preset style library so as to meet the requirements of building the page according to different requirements. The method comprises the steps that an existing style in a preset style library is provided with an existing style library version number, a target style which needs to be updated to the preset style library is provided with a target style library version number, when the existing style in the preset style library needs to be updated, the target style is received, after the target style is received, the target style library version number in the target style is compared with the existing style library version number of the existing style, if the target style library version number in the target style is different from the existing style library version number of the existing style, the existing style in the preset style library is updated according to the received target style, an updated style library is obtained, each style in the style library is provided with a unique preset style field corresponding to the unique style, and therefore typesetting of a page can be edited by using the style in the updated style library.
Step 203, carrying out style disassembly on the initial page;
step 204, extracting a common pattern from the disassembled patterns;
Step 205, packaging the common style into the custom control according to a node, wherein the node is a minimum assembly block common in the initial page;
Step 206, setting an interface data appointed field of the custom control, and binding the custom control with the interface data appointed field, wherein the interface data appointed field comprises the style field and the event field for obtaining the public style used by the custom control in a packaging way;
In the embodiment of the application, before typesetting and editing are carried out on the page, the style of the initial page is required to be disassembled, the common style is extracted from the disassembled style, and the common style is packaged according to the obtained minimum common assembly block, namely the node, in the initial page, so as to obtain the custom control. Setting interface data appointed fields of the custom control, wherein the interface data appointed fields comprise style fields and event fields, and binding the custom control with the interface data appointed fields, the style fields are in one-to-one correspondence with style fields of styles in a style library, the style fields are used for finding corresponding styles with the same style fields in the style library according to the style fields of the custom control, and realizing the effect that the corresponding styles can be rendered on the corresponding custom control.
Step 207, extracting a public event from the response event in the initial page, and packaging the public event to obtain the event taking the custom control as a unit;
step 208, binding the event with the interface data specified field, where the interface data specified field includes the style field and the event field that encapsulate to obtain a common style used by the custom control.
In the embodiment of the application, before typesetting and editing are carried out on the page, common events in response events in the initial page are extracted, the common events are packaged by taking the custom control as a unit to obtain corresponding events, the events are bound with interface data appointed fields of the custom control, each event is provided with a style field and an event field which are in one-to-one correspondence with the custom control, and thus the custom control, the style and the events are in one-to-one correspondence, and corresponding events are obtained according to the event fields of the custom control and are bound to the corresponding custom control.
It should be noted that, step 201 and step 202 are steps of updating the style gallery, step 203 to step 206 are steps of encapsulating the custom control, step 207 and step 208 are steps of encapsulating the event, but step 201 to step 208 are not steps performed before step 101 to step 105 are performed each time, and step 201 to step 202 and step 203 to step 208 may be selectively performed without performing step 203 to step 208 or steps 201 to step 208 according to the specific situation.
In the embodiment of the application, the initial page is disassembled and packaged into the custom control, the event in the initial page is extracted and packaged according to the custom control, the reusable maximization of the custom control is realized, and a developer only needs to update the existing style in the preset style library to realize the updating of the page style, so that the developer does not need to perform various customized development on the page according to the requirements of business scenes and the like, the development of repeated codes and repeated logic is reduced, the labor cost and maintenance cost are reduced, the style is dynamically issued, the imperceptible style update is realized, and the experience problem caused by manual updating of the page and untimely updating of the user is avoided; the method for typesetting and editing the pages simplifies the development process, and the staff edits the pages according to the requirements by themselves, so that the effect of real-time effective requirement change is realized.
In a possible implementation manner, as shown in fig. 3, a flowchart of an additional step after step 102 of the method for building a page in the embodiment of fig. 1 of the present application includes:
Step 301, saving the custom controls which are not required to be displayed in the page into a control cache set;
Step 302, when the page needs to display the custom control stored in the control cache set, acquiring the custom control in the control cache set for multiplexing display.
Step 301 and step 302 are performed after step 102 and before step 103.
In the embodiment of the application, after typesetting data of the page is obtained through the interface, and the custom control with the same style field is obtained according to the style field in the typesetting data and loaded into the page, the custom control which is not required to be displayed in the current page browsed by the user is stored in the control cache set, and when the user adjusts to the page which is required to be used for the custom control stored in the control cache set, the required custom control is obtained from the control cache set for multiplexing display, so that the effect of reducing the memory expenditure is achieved.
Fig. 4 is a schematic structural diagram of a device for building a page according to an embodiment of the present application, where the device includes:
An obtaining module 401, configured to obtain typesetting data of a page through an interface, where the typesetting data includes a style field and an event field;
the first execution module 402 is configured to obtain a corresponding custom control according to the style field and load the custom control into a page;
a second execution module 403, configured to obtain a corresponding style from a preset style library according to the style field and render the style to the custom control;
A third execution module 404, configured to obtain a corresponding event according to the event field and bind the event to the custom control, so as to perform page building;
and the output module 405 is used for outputting the page with the built-up page.
In the embodiment of the application, the obtaining module 401 obtains typesetting data from the interface, the first executing module 402 loads the custom control into the page according to the typesetting data, the second executing module 403 obtains the corresponding style and renders the corresponding style onto the corresponding custom control, the third executing module 404 binds the corresponding event onto the custom control, and the output module 405 outputs the built page, so that the rendering and building of the page are finally realized, the problem of repeated development of the page requiring timely updating of the style and event is solved, the page development cost is reduced, and the page development period is shortened.
FIG. 5 illustrates an internal block diagram of a computer device in one embodiment. The computer device may specifically be a terminal or a server. As shown in fig. 5, the computer device includes a processor, a memory, and a network interface connected by a system bus. The memory includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program that, when executed by a processor, causes the processor to implement a method of page building. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform the method of page building. It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is presented comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of:
Acquiring typesetting data of a page through an interface, wherein the typesetting data comprises a style field and an event field;
acquiring a corresponding custom control according to the style field and loading the custom control to a page;
acquiring a corresponding style from a preset style library according to the style field and rendering the style to the custom control;
Acquiring a corresponding event according to the event field and binding the event to the custom control so as to build a page;
And outputting the page with the built-up.
In one embodiment, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
Acquiring typesetting data of a page through an interface, wherein the typesetting data comprises a style field and an event field;
acquiring a corresponding custom control according to the style field and loading the custom control to a page;
acquiring a corresponding style from a preset style library according to the style field and rendering the style to the custom control;
Acquiring a corresponding event according to the event field and binding the event to the custom control so as to build a page;
And outputting the page with the built-up.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method of page building, the method comprising:
carrying out style disassembly on the initial page;
extracting a common pattern from the disassembled patterns;
encapsulating the common style into a custom control according to a node, wherein the node is a minimum common assembly block in the initial page;
Setting an interface data appointed field of the custom control, and binding the custom control with the interface data appointed field, wherein the interface data appointed field comprises a style field and an event field which are encapsulated to obtain a public style used by the custom control;
Acquiring typesetting data of a page through an interface, wherein the typesetting data comprises a style field and an event field;
acquiring a corresponding custom control according to the style field and loading the custom control to a page;
acquiring a corresponding style from a preset style library according to the style field and rendering the style to the custom control;
Acquiring a corresponding event according to the event field and binding the event to the custom control so as to build a page;
And outputting the page with the built-up.
2. The method for constructing the page according to claim 1, wherein the step of obtaining the typesetting data of the page through the interface, before the typesetting data includes the style field and the event field, includes:
receiving a target pattern, wherein the target pattern comprises a target pattern library version number;
and updating the preset style library according to the version number of the target style library of the target style.
3. The method for building a page according to claim 2, wherein updating the preset style gallery according to the target style gallery version number of the target style comprises:
comparing the version number of the existing style library in the preset style library with the version number of the target style library;
And if the version number of the existing style library is different from that of the target style library, updating the existing style in the preset style library according to the target style.
4. The method for constructing the page according to claim 1, wherein the typesetting data of the page is obtained through the interface, and before the typesetting data includes the style field and the event field, the method further includes:
extracting a public event from the response event in the initial page, and packaging the public event to obtain the event taking the custom control as a unit;
binding the event with the interface data appointed field, wherein the interface data appointed field comprises the style field and the event field for packaging and obtaining the public style used by the custom control.
5. The method of page building according to claim 1, wherein the typeset data further comprises: whether the head of the custom control shows, routes the type, the title, the content, the picture, the inner edge distance, the outer edge distance, the round angle, the frame and the background, the output builds the page that completes, include:
Typesetting the built page according to whether the head of the custom control is displayed, the route type, the title, the content, the picture, the inner edge distance, the outer edge distance, the round angle, the frame and the background;
and displaying the typeset page.
6. The method for building the page according to claim 1, wherein after the obtaining the corresponding custom control according to the style field and loading the custom control into the page, the method comprises:
Storing the custom controls which are not required to be displayed in the page into a control cache set;
When the page needs to be displayed and stored in the custom control in the control cache set, the custom control in the control cache set is acquired to be displayed in a multiplexing mode.
7. A device for building a page, the device comprising:
the disassembling module is used for carrying out style disassembling on the initial page;
The first extraction module is used for extracting a common pattern from the disassembled patterns;
the first packaging module is used for packaging the common style into a custom control according to a node, wherein the node is a minimum assembly block common in the initial page;
The first binding module is used for setting an interface data appointed field of the custom control, binding the custom control with the interface data appointed field, wherein the interface data appointed field comprises a style field and an event field which are encapsulated to obtain a public style used by the custom control;
The acquisition module is used for acquiring typesetting data of the page through the interface, wherein the typesetting data comprises a style field and an event field;
The first execution module is used for acquiring a corresponding custom control according to the style field and loading the custom control to a page;
The second execution module is used for acquiring a corresponding style from a preset style library according to the style field and rendering the style to the custom control;
The third execution module is used for acquiring a corresponding event according to the event field and binding the event to the custom control so as to build a page;
and the output module is used for outputting the built page.
8. The page building apparatus of claim 7, further comprising:
The second extraction module is used for extracting a public event from the response event in the initial page, and packaging the public event to obtain the event taking the custom control as a unit;
And the second binding module is used for binding the event with the interface data appointed field, wherein the interface data appointed field comprises the style field and the event field for packaging and obtaining the public style used by the custom control.
9. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 6.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 6.
CN202011156123.6A 2020-10-26 2020-10-26 Page building method and device, storage medium and computer equipment Active CN112230922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011156123.6A CN112230922B (en) 2020-10-26 2020-10-26 Page building method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011156123.6A CN112230922B (en) 2020-10-26 2020-10-26 Page building method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN112230922A CN112230922A (en) 2021-01-15
CN112230922B true CN112230922B (en) 2024-06-21

Family

ID=74110795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011156123.6A Active CN112230922B (en) 2020-10-26 2020-10-26 Page building method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN112230922B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113672212A (en) * 2021-08-19 2021-11-19 深圳我家云网络科技有限公司 Bill configuration method, computer equipment and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043861A (en) * 2010-12-29 2011-05-04 重庆新媒农信科技有限公司 Web page data structured display method based on mobile terminal
CN107423070A (en) * 2017-08-03 2017-12-01 北京奇艺世纪科技有限公司 A kind of page generation method and device
CN108279932A (en) * 2018-01-22 2018-07-13 北京奇艺世纪科技有限公司 A kind of mobile terminal dynamic configuration user interface method and device
CN110400196A (en) * 2019-06-20 2019-11-01 北京奇艺世纪科技有限公司 A kind of page processing method, device and computer readable storage medium
CN111443911A (en) * 2020-03-24 2020-07-24 五八有限公司 Page development method and device, electronic equipment and computer storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873991B (en) * 2017-01-20 2019-01-11 腾讯科技(深圳)有限公司 Page generation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043861A (en) * 2010-12-29 2011-05-04 重庆新媒农信科技有限公司 Web page data structured display method based on mobile terminal
CN107423070A (en) * 2017-08-03 2017-12-01 北京奇艺世纪科技有限公司 A kind of page generation method and device
CN108279932A (en) * 2018-01-22 2018-07-13 北京奇艺世纪科技有限公司 A kind of mobile terminal dynamic configuration user interface method and device
CN110400196A (en) * 2019-06-20 2019-11-01 北京奇艺世纪科技有限公司 A kind of page processing method, device and computer readable storage medium
CN111443911A (en) * 2020-03-24 2020-07-24 五八有限公司 Page development method and device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN112230922A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN108958714B (en) Business component type development method and device, computer equipment and storage medium
CN109254773A (en) Skeleton page generation method, device, equipment and storage medium
CN103914450A (en) Method and device for presenting web graphics in mobile terminal platform
CN111897817A (en) Visual form configuration method, device and system
CN112230922B (en) Page building method and device, storage medium and computer equipment
CN112181580B (en) Application theme switching method, device and system
CN114240358A (en) Method, device, equipment and medium for realizing user-defined business process
CN109582313B (en) Business interface dynamic construction method and device, computer equipment and storage medium
CN109582890A (en) Page loading method, device, computer equipment and storage medium
CN110442424A (en) A kind of method and apparatus for realizing virtual machine management platform dynamic configuration rule
CN110969354A (en) Linear flow configuration method and device, computer equipment and storage medium
CN114115967A (en) Service data processing method and device, computer equipment and storage medium
CN113656005A (en) Application component library construction method, application component configuration method and related device
CN112015378A (en) Skeleton screen page generation method and device, computer equipment and storage medium
CN112241259A (en) Webpage editing system, method, device and storage medium
WO2020211395A1 (en) Code data management method and system, and storage medium
CN111443945B (en) Component code modification method and device
CN109828771A (en) File push method, apparatus, computer equipment and storage medium
CN111221517A (en) Model creating method and device, computer equipment and readable storage medium
CN102831212A (en) Typesetting method and device for page display
CN111966349B (en) Method, device and computer equipment for developing programs based on BS (browser/server) architecture
CN109039784A (en) The node deployment method and device of OpenStack
CN114895942A (en) Application skin changing method, device, equipment and storage medium
CN108519885B (en) Public resource loading method and device based on Flash
CN106886420B (en) Program code management device and method and program code manager

Legal Events

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