WO2016015432A1 - Page construction method, apparatus, system and device, and nonvolatile computer storage medium - Google Patents

Page construction method, apparatus, system and device, and nonvolatile computer storage medium Download PDF

Info

Publication number
WO2016015432A1
WO2016015432A1 PCT/CN2014/093749 CN2014093749W WO2016015432A1 WO 2016015432 A1 WO2016015432 A1 WO 2016015432A1 CN 2014093749 W CN2014093749 W CN 2014093749W WO 2016015432 A1 WO2016015432 A1 WO 2016015432A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
component
target
identification information
target page
Prior art date
Application number
PCT/CN2014/093749
Other languages
French (fr)
Chinese (zh)
Inventor
严龙
涂德巨
钟茹
王洪亮
Original Assignee
百度在线网络技术(北京)有限公司
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 百度在线网络技术(北京)有限公司 filed Critical 百度在线网络技术(北京)有限公司
Publication of WO2016015432A1 publication Critical patent/WO2016015432A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Definitions

  • the present invention relates to a page processing technology, and in particular, to a page construction method, apparatus, system, device, and non-volatile computer storage medium.
  • a page sometimes called a World Wide Web (Web) page, can be a Web Page based on HyperText Markup Language (HTML), or an HTML page, or it can be based on HTML and A web page written in the Java language, a Java Server Page (JSP), or a web page that can also be written in other languages.
  • JSP Java Server Page
  • the specified application is used to access the pre-configured template page, and the information and the set style that the user needs to publish are moved to the template page to generate the required page.
  • the template page is a pre-configured fixed page by the developer according to the publishing requirements of each to-be-published information, the development cycle is long, resulting in a decrease in the development efficiency of the page.
  • aspects of the present invention provide a page construction method, apparatus, system, device, and non-volatile computer storage medium for improving page development efficiency.
  • An aspect of the present invention provides a method for constructing a page, including:
  • the page component data includes identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and assembly of N target page components Information, N is an integer greater than or equal to 1;
  • the page source code of each target page component is assembled to generate a page source code of the page.
  • the aspect as described above and any possible implementation manner further provide an implementation manner, where the identifier information of each target page component and the identifier information of the component configuration information of each target page component are obtained.
  • the page source code of each target page component includes:
  • the sending, to the page component platform, the identification information of each target page component and the component configuration information of each target page component Identification information including:
  • the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components are sent to the page component platform.
  • the method further includes:
  • the method further includes:
  • the operation instruction comprising a click operation instruction or a drag operation instruction.
  • the page component comprising at least one page element.
  • a device for constructing a page including:
  • An obtaining unit configured to acquire page component data of a page, where the page component data includes Identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and assembly information of N target page components, where N is an integer greater than or equal to 1;
  • a rendering unit configured to obtain, according to the identification information of each target page component and the identification information of component configuration information of each target page component, a page source code of each target page component;
  • the assembling unit is configured to assemble the page source code of each target page component according to the assembling information to generate a page source code of the page.
  • the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components are sent to the page component platform.
  • the device further comprising a configuration unit, configured to:
  • the operation instruction comprising a click operation instruction or a drag operation instruction.
  • the page component comprising at least one page element.
  • Another aspect of the present invention provides a page construction system, including a page component platform and a device for constructing a page according to the above aspect;
  • the page component platform is further used to
  • the storage processing is performed on the identification information of each of the target page components and the template source code of each of the target page components.
  • an apparatus comprising:
  • One or more processors are One or more processors;
  • One or more programs the one or more programs being stored in the memory, when executed by the one or more processors:
  • the page component data including identification information of each target page component of the N target page components, component configuration of each of the target page components
  • the page source code of each target page component is assembled to generate a page source code of the page.
  • a nonvolatile computer storage medium storing one or more programs when the one or more programs are executed by a device causes The device:
  • the page component data includes identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and assembly of N target page components Information, N is an integer greater than or equal to 1;
  • the page source code of each target page component is assembled to generate a page source code of the page.
  • the embodiment of the present invention obtains page component data of a page, where the page component data includes identifier information of each target page component of the N target page components, and component configuration information of each target page component. Identification information and assembly information of N target page components, N being an integer greater than or equal to 1, and then according to each target page The identification information of the face component and the identification information of the component configuration information of each target page component obtain the page source code of each target page component, so that each target page component can be obtained according to the assembly information The page source code is assembled to generate the page source code of the page.
  • the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component without pre-configuring the template.
  • the page source code of the page which improves the development efficiency of the page.
  • the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component, and does not need to pre-configure the page source code of the template page, thereby saving The development cost of the page.
  • the developer only needs to reconfigure the page source code of the page component, and the page source code of the template page does not need to be reconfigured, thereby further improving the page development. Efficiency, and can further reduce the development cost of the page.
  • the present invention by collecting an operation instruction input by the input device, and according to the operation instruction, selecting an identifier of the candidate page component from the identifiers of the M candidate page components, to The candidate page component is used as a target page component in the page component data. Since the template page of the fixed content is no longer completely dependent on the template construction of the fixed content, the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page is made. Can basically meet the true intention of the user to build the page, therefore, able to The problem of increasing the data interaction between the application and the server caused by the user repeatedly adjusting the template page by specifying the application in the prior art is avoided, thereby reducing the processing load of the server.
  • the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction.
  • the true intent of the page therefore, can effectively improve the effectiveness of page construction.
  • the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction.
  • the true intent of the page therefore, can effectively improve the efficiency of page construction.
  • FIG. 1 is a schematic flowchart of a method for constructing a page according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for constructing a page according to another embodiment of the present invention.
  • FIG. 3 is a schematic diagram showing an interface in the embodiment corresponding to FIG. 2;
  • FIG. 4 is a schematic diagram showing another interface in the embodiment corresponding to FIG. 2;
  • FIG. 5 is a schematic diagram showing another interface in the embodiment corresponding to FIG. 2;
  • FIG. 6 is a schematic diagram showing another interface in the embodiment corresponding to FIG. 2;
  • FIG. 7 is a schematic structural diagram of a device for constructing a page according to another embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a device for constructing a page according to another embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a system for constructing a page according to another embodiment of the present invention.
  • the page involved in the present invention may also be referred to as a Web page, and may be a Web page written based on HyperText Markup Language (HTML), that is, an HTML page, or may be based on Web pages written in the HTML and Java languages, that is, Java Server Pages (JSPs), or web pages that can also be written in other languages, are not specifically limited in this embodiment.
  • HTML HyperText Markup Language
  • Java Java Server Pages
  • a page may include a display block defined by one or more page tags, such as HTML tags, JSP tags, etc., called page elements, such as text, images, hyperlinks, buttons, input boxes, drop-down boxes, etc.
  • page tags such as HTML tags, JSP tags, etc.
  • page elements such as text, images, hyperlinks, buttons, input boxes, drop-down boxes, etc.
  • the embodiment is not particularly limited thereto.
  • the terminals involved in the embodiments of the present invention may include, but are not limited to, a mobile phone, a personal digital assistant (PDA), a wireless handheld device, a wireless netbook, a personal computer, a portable computer, and a personal computer (Personal Computer). , PC), MP3 player, MP4 player, etc.
  • PDA personal digital assistant
  • PC Personal Computer
  • MP3 player MP4 player
  • the page involved in this embodiment may be a page of a PC site, or may also be a page of a mobile site, which is not specifically limited in this embodiment.
  • mobile sites Compared with traditional PC sites, mobile sites have the characteristics of small page size, simple layout (mainly vertical), simple specification of page elements, and content-based interaction. Since the template page is known for its site style and style, the page used by the mobile site is built using the template page, which causes a lot of redundancy or page elements to be modified in the template page, which may make the constructed page unsatisfactory.
  • the user's true intention is that the user needs to increase the data interaction between the application and the server caused by the repeated adjustment of the template page by the specified application, thereby causing an increase in the processing load of the server.
  • FIG. 1 is a schematic flowchart of a method for constructing a page according to an embodiment of the present invention, as shown in FIG. 1 .
  • page component data of a page where the page component data includes identification information of each target page component of the N target page components, and a group of each target page component.
  • the identification information of the piece configuration information and the assembly information of the N target page components, and N is an integer greater than or equal to 1.
  • the identification information of the target page component may include, but is not limited to, an identity (IDentity, ID), a number, and the like of the page component.
  • the identification information of the component configuration information of the target page component may include, but is not limited to, an ID, a number, and the like of the component configuration information of the target page component.
  • HTML page source code for example, HTML page source code or JSP source code.
  • the HTML source code corresponding to the page source code is provided to the user to access the application of the page, so that the application presents the page to the user according to the page source code.
  • the page component may include, but is not limited to, at least one page element, that is, the page component is a set of page elements.
  • the page component may include, but is not limited to, a title component, a navigation component, a directory component, an image upload component, a text component, a table component, a map component, a tab (TAB) component, a link component, an editing component, a sharing component,
  • the contact component, the third-party component, and other components are not specifically limited in this embodiment.
  • the title component can text this page element.
  • the picture component can include page elements such as hyperlinks, input boxes, buttons, and drop down boxes.
  • the editing component can include page elements such as input boxes and buttons.
  • the contact component can include page elements such as input boxes, buttons, and drop down boxes.
  • the so-called page component is not a static entity, but a dynamic entity including a front-end presentation template, business logic code, and data storage, which can provide users with richer interaction effects, and Pages can be exchanged and collaborated with information through event-driven mechanisms to further enhance the expressive capabilities of page components.
  • page components are deployed in a page component platform, such as a component hosting module, and each page component has unique identifying information, such as the ID or number of the page component.
  • the page component platform is a running and management platform for various page components, and is responsible for various operations in the life cycle of submitting, reviewing, installing, running, and updating the page components.
  • the page component platform provides detailed page component development specifications and page component development framework.
  • the developer can implement the application of the page component permission, the page component dependency description, the page component interface export, the page component data table application, etc. through the configuration file; the development framework provides the template component, the page cache, and the page component.
  • page component developers only need to focus on the business logic of the page component, that is, the development of the business source code business logic.
  • the assembling information may include, but is not limited to, at least one of header information of the page, navigation information of the page, body information of the page, and tail information of the page. , as well as layout information for page components. among them,
  • the header information of the page may be used to indicate content in a portion between the upper border of the page and the body of the page, for example, a page title, a page description, a page keyword, and the like.
  • the navigation information of the page may be used to indicate the content in the navigation bar of the page.
  • the general page has a navigation bar for user browsing.
  • the navigation bar of the so-called page refers to the general name of the form such as the column, menu, online help, classification and other layout structures that guide the user to visit the website. Therefore, in the process of website construction, the navigation structure of the website must be clear, and the user can find the content that he likes in the shortest time.
  • the body information of the page may be used to indicate the content of the page, such as articles, directories, and the like.
  • the tail information of the page may be used to indicate content in a portion between the body of the page and the bottom border of the page, for example, copyright information and the like.
  • the execution body of 101 to 103 may be an application located in a local terminal, or may be a plug-in or a software development kit (SDK) functional unit located in an application of the local terminal, or
  • SDK software development kit
  • the processing engine in the server on the network side, or the distributed system on the network side, may not be specifically limited in this embodiment.
  • the application may be an application installed on the terminal (Native App), or may be a web application of the browser, which is not limited in this embodiment.
  • the page component data includes identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and N target pages.
  • the assembly information of the component, N is an integer greater than or equal to 1, and further according to the identification information of each target page component and each of the Identification information of the component configuration information of the target page component, obtaining the page source code of each target page component, so that the page source code of each target page component is assembled according to the assembly information, The page source code of the page is generated.
  • the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component, and does not need to pre-configure the page source code of the template page, thereby improving the page source code.
  • a page access request sent by a client may be received, where the page access request includes identifier information of the page, for example, uniform resource location of the page.
  • Uniform Resource Locator URL
  • the page component data of the page may be obtained according to the identification information of the page.
  • the identifier information of each target page component and the component configuration information of each target page component may be specifically sent to the page component platform.
  • the information is identified such that the page component platform obtains the page source code of each of the target page components according to the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components. Then, the page source code of each of the target page components sent by the page component platform may be received.
  • the identification information of each target page component and the identification information of component configuration information of each target page component may be sent to the page component platform in sequence.
  • the request may be sent to the page component platform in turn, and each time the sent request includes only the identification information of one target page component and the identification information of component configuration information of a target page component.
  • the page construction is not efficient due to the serial method of requesting to the page component platform.
  • the identification information of each target page component and the identification information of component configuration information of each target page component may be sent to the page component platform at the same time.
  • a request may be sent to the page component platform, the one request containing identification information of each target page component and identification information of component configuration information of each target page component.
  • a page label for example, an HTML tag, a JSP tag, or the like, for each target page component.
  • the page source code is assembled to generate the page source code for the page.
  • DIV tags are elements used to provide structure and context for content in several areas within an HTML page. Everything between the start and end tags of a DIV tag is used to define this area, where the properties of the included page component are controlled by the properties of the DIV tag, or by using a cascading style sheet (Cascading Style). Sheet, CSS) Format this area for control.
  • cascading style sheet Click-through style sheet
  • CSS Sheet, CSS
  • the page component data includes identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and N
  • the assembly information of the target page components, N is an integer greater than or equal to 1, and the obtained information is obtained according to the identification information of each target page component and the identification information of the component configuration information of each target page component.
  • the page source code of the target page component enables the page source code of each target page component to be assembled according to the assembly information to generate a page source code of the page.
  • the developer Since the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component, and does not need to pre-configure the page source code of the template page, thereby improving the development efficiency of the page.
  • the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component, and does not need to pre-configure the page source code of the template page, thereby saving The development cost of the page.
  • the developer only needs to reconfigure the page source code of the page component, and the page source code of the template page does not need to be reconfigured, thereby further improving the page development. Efficiency, and can further reduce the development cost of the page.
  • an instantiation operation may be further performed on the target page component included in the page to obtain a component instance of the target page component.
  • a visual editing platform hereinafter referred to as a website building platform, may be specifically used to complete the foregoing operations.
  • the website platform can provide users with site and page creation and management functions.
  • the core of the site is a WYSIWYG page editor. Users who use the page editor can click the page component or drag and drop page components to perform page components. The choice to complete the page's build and live preview of the effect.
  • FIG. 2 is a schematic flowchart diagram of a method for constructing a page according to another embodiment of the present invention.
  • the website platform displays identifiers of M candidate page components, where M is an integer greater than or equal to N.
  • the station platform in FIG. 3 presents a component library interface in the leftmost area of the interface, and sometimes may also be referred to as a component panel.
  • the component panel specifically displays the identifiers of the navigation component, the identifier of the slide component, the identifier of the picture component, and the identifier of the text component, etc., for the user to select.
  • the identifier of the candidate page component may be a picture label of the candidate page component, and the like.
  • the website platform collects an operation instruction input by the input device.
  • the input device in this embodiment may include, but is not limited to, a mouse, a keyboard, or a touch screen, which is not specifically limited in this embodiment.
  • the operation instruction may include, but is not limited to, a click operation instruction or a drag operation instruction, which is not specifically limited in this embodiment.
  • the website establishing platform may specifically collect an operation instruction of the input device used by the user on the interface displayed by the website, for example, the user selects by using the input device.
  • the website platform selects, according to the operation instruction, an identifier of a candidate page component from the identifiers of the M candidate page components, to use the one candidate page component as the target page component.
  • the website platform displays a configuration page of the target page component.
  • the station platform in FIG. 3 presents a component management interface in the rightmost area of the interface, and sometimes may also be referred to as a component instance configuration panel.
  • the component instance configuration panel specifically displays the configuration options of the target page component, such as component content, component style, etc., for the user to select and configure.
  • the website platform collects component components input by the input device in the configuration page. Set the information.
  • the website platform may specifically collect component configuration information input by the input device used by the user in the configuration option of the target page component displayed on the configuration page. If the website platform collects the input operation of the input device displayed by the user on the specified button displayed on the configuration page, the input operation is ended, and the configuration page of the target page component is no longer displayed.
  • the user can click the save button to end the input operation.
  • the website platform performs storage processing on the identifier information of the target page component, the identifier information of the component configuration information of the target page component, and the component configuration information of the target page component.
  • the website platform may specifically store the identification information of the target page component and the identification information of the component configuration information of the target page component as a data pair as a record in the structured data list. Further, the website platform moves the component configuration information of the target page component to the corresponding record as structured data of a complete target page component.
  • structured data can be stored in a distributed database.
  • the component configuration information of the target page component can be directly used as a data item of a record in the structured data list, or can also be in one-to-one correspondence with the identification information of the component configuration information of the target page component. Stored in another structured data list. This embodiment is not particularly limited.
  • the records of each target page component in the component instance list may be arranged according to the relative positional relationship of the target page components.
  • the relative positional relationship of the target page components is sequentially arranged downward, and accordingly, the records of the target page components are also sequentially configured downward according to the order of the target page components.
  • 201 to 206 can be repeatedly executed to obtain a component instance of other target page components included in the page, which is not described in this embodiment.
  • the website construction platform of 201 to 206 may be an application located in a local terminal, or may be a plug-in or a software development kit (SDK) functional unit located in an application of the local terminal, or
  • SDK software development kit
  • the processing engine in the server on the network side, or the distributed system on the network side, may not be specifically limited in this embodiment.
  • the application may be an application installed on the terminal (Native App), or may be a web application of the browser, which is not limited in this embodiment.
  • the present invention by collecting an operation instruction input by the input device, and according to the operation instruction, selecting an identifier of the candidate page component from the identifiers of the M candidate page components, to The candidate page component is used as a target page component in the page component data. Since the template page of the fixed content is no longer completely dependent on the template construction of the fixed content, the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page is made. It can basically satisfy the true intention of the user to build the page. Therefore, the problem of increasing the data interaction between the application and the server caused by the user repeatedly adjusting the template page through the specified application can be avoided in the prior art, thereby reducing the processing of the server. burden.
  • the website platform may further perform real-time display on the constructed page.
  • the website platform can obtain the beginning of the page according to the identification information of the page.
  • the source code and then the page can be presented based on the initial source code of the page.
  • the initial source code may include a page code corresponding to the information such as the page name, as shown in FIG. 4, and only the page including the page name "Baidu Light Application" is displayed.
  • the website platform may move the identifier of one candidate page component of the identifiers of the M candidate page components to the specified position in the page according to the operation instruction.
  • the website building platform may specifically move the identifier of the article list to a specified position in the displayed page according to the drag operation command input by the collected input device.
  • the so-called specified location may be a pre-configured location, for example, a position in which each target page component is sequentially arranged downward, or may also be used by a developer to use a format component such as a TAB component, a column component, or The position specified by the page component such as the table component is not particularly limited in this embodiment.
  • the website platform can obtain the template source code of the one candidate page component according to the identification information of the one candidate page component.
  • the website platform may specifically send the identifier information of the one candidate page component to the page component platform, so that the page component platform obtains the template source code of the one candidate page component according to the identifier information of the one candidate page component. Further, the website platform can receive the template source code of the one candidate page component sent by the page component platform.
  • the website platform may display the component template of the one candidate page component at the specified location according to the template source code of the one candidate page component.
  • the website platform may further display the template source code of the one candidate page component and the component configuration information of the one candidate page component while displaying the component template of the one candidate page component. Identification information, obtain the one The page source code of the candidate page component, and then the component instance of the one candidate page component is presented at the specified location according to the page source code of the one candidate page component.
  • the website platform may specifically send the identifier information of the component configuration information of the one candidate page component to the page component platform, so that the page component platform obtains the one according to the identifier information of the component configuration information of the one candidate page component.
  • Component configuration information for candidate page components can receive component configuration information of the one candidate page component sent by the page component platform. Then, the website platform may obtain the page source code of the one candidate page component according to the template source code of the one candidate page component and the component configuration information of the one candidate page component.
  • the user can click on the preview button displayed in the interface, and the website platform can display the page for the user to preview the actual effect of the page.
  • the candidate page component by collecting an operation instruction input by the input device, and according to the operation instruction, selecting an identifier of the candidate page component from the identifiers of the M candidate page components, to form the candidate page component as a component.
  • a target page component in the page component data because the template page of the fixed content is no longer completely dependent on the template construction of the fixed content, but the page is constructed in accordance with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction.
  • the true intention of the page therefore, the problem of increasing the data interaction between the application and the server caused by the user repeatedly adjusting the template page by the specified application in the prior art can be avoided, thereby reducing the processing load of the server.
  • the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction.
  • the true intent of the page therefore, can effectively improve the effectiveness of page construction.
  • the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction.
  • the true intent of the page therefore, can effectively improve the efficiency of page construction.
  • FIG. 7 is a schematic structural diagram of a device for constructing a page according to another embodiment of the present invention, as shown in FIG. 7.
  • the construction apparatus of the page of the present embodiment may include an acquisition unit 71, a rendering unit 72, and a splicing unit 73.
  • the obtaining unit 71 is configured to acquire page component data of a page, where the page component data includes identifier information of each target page component of the N target page components, and identifier information of component configuration information of each target page component.
  • the assembly information of the N target page components, N is an integer greater than or equal to 1;
  • the rendering unit 72 is configured to identify, according to the identification information of each target page component and the component configuration information of each target page component Information, obtaining the page source code of each target page component;
  • the assembling unit 73 configured to assemble the page source code of each target page component according to the assembly information, to generate a page of the page Source code.
  • the device for constructing the page may be located in the present embodiment.
  • the application of the local terminal or may be a plug-in or a software development kit (SDK) functional unit located in the application of the local terminal, or may be a processing engine located in a server on the network side, or may also For the distributed system located on the network side, this embodiment does not specifically limit this.
  • SDK software development kit
  • the application may be an application installed on the terminal (Native App), or may be a web application of the browser, which is not limited in this embodiment.
  • the page component may include, but is not limited to, at least one page element, that is, the page component is a set of page elements.
  • the rendering unit 72 may be specifically configured to send, to the page component platform, identifier information of each target page component and each of the target page components. And the identification information of the component configuration information, so that the page component platform obtains the identifier information of each of the target page components according to the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components.
  • a page source code for receiving each of the target page components sent by the page component platform.
  • the rendering unit 72 may be configured to sequentially send identifier information of each target page component and identifier information of component configuration information of each target page component to the page component platform.
  • the rendering unit 72 may be configured to send identifier information of each target page component and identifier information of component configuration information of each target page component to the page component platform at the same time.
  • the apparatus for constructing the page provided by the embodiment may further include a configuration unit 81 for displaying the identifiers of the M candidate page components, M being an integer greater than or equal to N; collecting an operation instruction input by the input device; The instruction, from the identifiers of the M candidate page components, select an identifier of the candidate page component to use the one candidate page component as the target page component; display the configuration page of the target page component; and collect the input device in the The component configuration information input in the configuration page; and the identification information of the target page component, the identification information of the component configuration information of the target page component, and the component configuration information of the target page component are stored.
  • the configuration unit 81 may be further configured to: obtain an initial source code of the page according to the identifier information of the page; and display the page according to an initial source code of the page; An operation instruction, moving an identifier of one candidate page component of the identifiers of the M candidate page components to a specified position in the page; obtaining a template source of the one candidate page component according to the identifier information of the one candidate page component And displaying a component template of the one candidate page component at the specified location according to the template source code of the one candidate page component.
  • the configuration unit 81 may be further configured to obtain, according to the template source code of the one candidate page component and the identifier information of the component configuration information of the one candidate page component, the one candidate page component is obtained. a page source code; and a component instance of the one candidate page component is presented at the specified location according to the page source code of the one candidate page component.
  • the operation instruction may include, but is not limited to, a click operation instruction or a drag operation instruction, which is not specifically limited in this embodiment.
  • the page component data of the page is acquired by the obtaining unit, where the page component data includes identification information of each target page component of the N target page components, and identifier information of component configuration information of each target page component. And N pieces of target page component assembly information, N is an integer greater than or equal to 1, and further, the rendering unit is configured according to the identification information of each target page component and the identification information of component configuration information of each target page component.
  • the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component, and does not need to pre-configure the page source code of the template page, thereby saving The development cost of the page.
  • the developer only needs to reconfigure the page source code of the page component, and the page source code of the template page does not need to be reconfigured, thereby further improving the page development. Efficiency, and can further reduce the development cost of the page.
  • the technical solution provided by the present invention by collecting an operation instruction input by the input device, and according to the operation instruction, selecting an identifier of the candidate page component from the identifiers of the M candidate page components, to Candidate page component as a component page group A target page component in the piece of data, because the template page of the fixed content is no longer completely dependent on the construction of the page, but the operation of the input device is used to construct the page, so that the constructed page can basically satisfy the user to build the page.
  • the real intention is to avoid the problem of increasing the data interaction between the application and the server caused by the user repeatedly adjusting the template page by specifying the application in the prior art, thereby reducing the processing load of the server.
  • the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction.
  • the true intent of the page therefore, can effectively improve the effectiveness of page construction.
  • the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction.
  • the true intent of the page therefore, can effectively improve the efficiency of page construction.
  • FIG. 9 is a schematic structural diagram of a page construction system according to another embodiment of the present invention, as shown in FIG. 9.
  • the construction system of the page of this embodiment may include the page component platform 91 and the construction means 92 of the page provided by the embodiment corresponding to FIG. 7 or FIG.
  • the page component platform 91 is configured to receive identification information of each target page component sent by the construction device 92 of the page, and identification information of component configuration information of each target page component; Identification information of each target page component and identification information of component configuration information of each target page component, obtaining page source code of each target page component; and transmitting the page to the construction device 92 of the page The page source code of each of the target page components sent by the component platform.
  • the page component platform 91 is specifically configured to obtain a template source of each target page component according to the identification information of each target page component. a code; obtaining, according to the identification information of the component configuration information of each target page component, component configuration information of each of the target page components; and component configuration information according to the template source code and the each target page component Get the page source code of each target page component.
  • the page component platform 91 may further be used to identify information about each target page component and a template source of each target page component. Code, for storage processing.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or page components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate,
  • the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A page construction method, apparatus, system and device, and a nonvolatile computer storage medium. Page component data of a page is acquired, wherein the page component data comprises identification information of each target page component of N target page components, identification information of component configuration information of each target page component and assembly information of the N target page components, and N is an integer greater than or equal to 1 (101); then, page source codes of each target page component are acquired according to the identification information of each target page component and the identification information of the component configuration information of each target page component (102); so that the page source codes of each target page component can be assembled according to the assembly information, so as to generate page source codes of the page (103). Because the page source codes of the page are automatically generated according to the page component data of the page, a developer just needs to configure the page source codes of the page components in advance and does not need to configure page source codes of a template page in advance, and therefore the page development efficiency is improved.

Description

页面的构建方法、装置、系统、设备及非易失性计算机存储介质Page construction method, device, system, device and non-volatile computer storage medium
本申请要求了申请日为2014年07月28日,申请号为201410364136.0发明名称为“页面的构建方法、装置及系统”的中国专利申请的优先权。The present application claims the priority of the Chinese patent application whose application date is July 28, 2014, and whose application number is 201410364136.0, and the name of the invention is "the construction method, device and system of the page".
技术领域Technical field
本发明涉及页面处理技术,特别涉及一种页面的构建方法、装置、系统、设备及非易失性计算机存储介质。The present invention relates to a page processing technology, and in particular, to a page construction method, apparatus, system, device, and non-volatile computer storage medium.
背景技术Background technique
页面,有时也可以称为万维网(World Wide Web,Web)页面,可以是基于超文本标记语言(HyperText Markup Language,HTML)编写的网页(Web Page),即HTML页面,或者还可以是基于HTML和Java语言编写的网页,即Java服务器页面(Java Server Page,JSP),或者还可以为其他语言编写的网页。当用户需要构建页面时,首先利用指定应用访问预先配置的模板页面,将用户需要发布的信息和设置的样式移动到模板页面中,以生成所需要的页面。A page, sometimes called a World Wide Web (Web) page, can be a Web Page based on HyperText Markup Language (HTML), or an HTML page, or it can be based on HTML and A web page written in the Java language, a Java Server Page (JSP), or a web page that can also be written in other languages. When the user needs to build the page, the specified application is used to access the pre-configured template page, and the information and the set style that the user needs to publish are moved to the template page to generate the required page.
然而,由于模板页面是开发人员分别根据每种待发布信息的发布需求,预先配置的固定页面,开发周期长,从而导致了页面的开发效率的降低。However, since the template page is a pre-configured fixed page by the developer according to the publishing requirements of each to-be-published information, the development cycle is long, resulting in a decrease in the development efficiency of the page.
发明内容 Summary of the invention
本发明的多个方面提供一种页面的构建方法、装置、系统、设备及非易失性计算机存储介质,用以提高页面的开发效率。Aspects of the present invention provide a page construction method, apparatus, system, device, and non-volatile computer storage medium for improving page development efficiency.
本发明的一方面,提供一种页面的构建方法,包括:An aspect of the present invention provides a method for constructing a page, including:
获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数;Obtaining page component data of the page, the page component data includes identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and assembly of N target page components Information, N is an integer greater than or equal to 1;
根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;Obtaining, according to the identification information of each target page component and the identification information of component configuration information of each target page component, a page source code of each target page component;
根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码。According to the assembly information, the page source code of each target page component is assembled to generate a page source code of the page.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码,包括:The aspect as described above and any possible implementation manner further provide an implementation manner, where the identifier information of each target page component and the identifier information of the component configuration information of each target page component are obtained. The page source code of each target page component includes:
向页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,以使得所述页面组件平台根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;Sending, to the page component platform, the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components, so that the page component platform is based on the identification information of each of the target page components and The identification information of the component configuration information of each target page component is obtained by obtaining the page source code of each target page component;
接收所述页面组件平台发送的所述每个目标页面组件的页面源代码。 Receiving page source code of each of the target page components sent by the page component platform.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述向页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,包括:The aspect as described above, and any possible implementation manner, further providing an implementation manner, the sending, to the page component platform, the identification information of each target page component and the component configuration information of each target page component Identification information, including:
依次向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息;或者And sending, to the page component platform, identification information of each target page component and identification information of component configuration information of each target page component; or
同时向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息。At the same time, the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components are sent to the page component platform.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述获取页面的页面组件数据之前,还包括:The aspect as described above, and any possible implementation manner, further provide an implementation manner, before the acquiring the page component data of the page, the method further includes:
展现M个候选页面组件的标识,M为大于或等于N的整数;Showing the identifiers of the M candidate page components, where M is an integer greater than or equal to N;
采集输入设备所输入的操作指令;Collecting operation instructions input by the input device;
根据所述操作指令,从M个候选页面组件的标识中,选择一个候选页面组件的标识,以将所述一个候选页面组件作为目标页面组件;Selecting, according to the operation instruction, an identifier of a candidate page component from the identifiers of the M candidate page components, to use the one candidate page component as the target page component;
展现所述目标页面组件的配置页面;Presenting a configuration page of the target page component;
采集所述输入设备在所述配置页面中输入的组件配置信息;Collecting component configuration information input by the input device in the configuration page;
对所述目标页面组件的标识信息、所述目标页面组件的组件配置信息的标识信息和所述目标页面组件的组件配置信息,进行存储处理。Performing storage processing on the identification information of the target page component, the identification information of the component configuration information of the target page component, and the component configuration information of the target page component.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述获取页面的页面组件数据之前,还包括:The aspect as described above, and any possible implementation manner, further provide an implementation manner, before the acquiring the page component data of the page, the method further includes:
根据所述页面的标识信息,获取所述页面的初始源代码;Obtaining an initial source code of the page according to the identification information of the page;
根据所述页面的初始源代码,展现所述页面; Presenting the page according to an initial source code of the page;
根据所述操作指令,将M个候选页面组件的标识中的一个候选页面组件的标识移动到所述页面中的指定位置;And moving, according to the operation instruction, an identifier of one candidate page component of the identifiers of the M candidate page components to a specified position in the page;
根据所述一个候选页面组件的标识信息,获得所述一个候选页面组件的模板源代码;Obtaining a template source code of the one candidate page component according to the identifier information of the one candidate page component;
根据所述一个候选页面组件的模板源代码,在所述指定位置,展现所述一个候选页面组件的组件模板。And displaying, according to the template source code of the one candidate page component, a component template of the one candidate page component at the specified location.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述根据所述一个候选页面组件的模板源代码,在所述指定位置,展现所述一个候选页面组件的组件模板同时或之后,还包括:The aspect as described above, and any possible implementation manner, further providing an implementation manner, according to the template source code of the one candidate page component, displaying the component template of the one candidate page component at the specified location At the same time or after, it also includes:
根据所述一个候选页面组件的模板源代码和所述一个候选页面组件的组件配置信息的标识信息,获得所述一个候选页面组件的页面源代码;Obtaining a page source code of the one candidate page component according to the template source code of the one candidate page component and the identification information of the component configuration information of the one candidate page component;
根据所述一个候选页面组件的页面源代码,在所述指定位置,展现所述一个候选页面组件的组件实例。Deriving a component instance of the one candidate page component at the specified location according to the page source code of the one candidate page component.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述操作指令包括点击操作指令或拖拽操作指令。In an aspect as described above and any possible implementation, an implementation is further provided, the operation instruction comprising a click operation instruction or a drag operation instruction.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述页面组件包括至少一个页面元素。In an aspect as described above and any possible implementation, an implementation is further provided, the page component comprising at least one page element.
本发明的另一方面,提供一种页面的构建装置,包括:In another aspect of the present invention, a device for constructing a page is provided, including:
获取单元,用于获取页面的页面组件数据,所述页面组件数据包括 N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数;An obtaining unit, configured to acquire page component data of a page, where the page component data includes Identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and assembly information of N target page components, where N is an integer greater than or equal to 1;
渲染单元,用于根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;a rendering unit, configured to obtain, according to the identification information of each target page component and the identification information of component configuration information of each target page component, a page source code of each target page component;
拼装单元,用于根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码。The assembling unit is configured to assemble the page source code of each target page component according to the assembling information to generate a page source code of the page.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述渲染单元,具体用于An aspect of the foregoing, and any possible implementation, further providing an implementation manner, where the rendering unit is specifically configured to
向页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,以使得所述页面组件平台根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;以及Sending, to the page component platform, the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components, so that the page component platform is based on the identification information of each of the target page components and The identification information of the component configuration information of each target page component is obtained, and the page source code of each target page component is obtained;
接收所述页面组件平台发送的所述每个目标页面组件的页面源代码。Receiving page source code of each of the target page components sent by the page component platform.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述渲染单元,具体用于An aspect of the foregoing, and any possible implementation, further providing an implementation manner, where the rendering unit is specifically configured to
依次向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息;或者And sending, to the page component platform, identification information of each target page component and identification information of component configuration information of each target page component; or
同时向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息。 At the same time, the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components are sent to the page component platform.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述装置还包括配置单元,用于An aspect of the foregoing, and any possible implementation, further providing an implementation, the device further comprising a configuration unit, configured to:
展现M个候选页面组件的标识,M为大于或等于N的整数;Showing the identifiers of the M candidate page components, where M is an integer greater than or equal to N;
采集输入设备所输入的操作指令;Collecting operation instructions input by the input device;
根据所述操作指令,从M个候选页面组件的标识中,选择一个候选页面组件的标识,以将所述一个候选页面组件作为目标页面组件;Selecting, according to the operation instruction, an identifier of a candidate page component from the identifiers of the M candidate page components, to use the one candidate page component as the target page component;
展现所述目标页面组件的配置页面;Presenting a configuration page of the target page component;
采集所述输入设备在所述配置页面中输入的组件配置信息;以及Collecting component configuration information input by the input device in the configuration page;
对所述目标页面组件的标识信息、所述目标页面组件的组件配置信息的标识信息和所述目标页面组件的组件配置信息,进行存储处理。Performing storage processing on the identification information of the target page component, the identification information of the component configuration information of the target page component, and the component configuration information of the target page component.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述配置单元,还用于An aspect of the foregoing, and any possible implementation, further providing an implementation manner, where the configuration unit is further used to
根据所述页面的标识信息,获取所述页面的初始源代码;Obtaining an initial source code of the page according to the identification information of the page;
根据所述页面的初始源代码,展现所述页面;Presenting the page according to an initial source code of the page;
根据所述操作指令,将M个候选页面组件的标识中的一个候选页面组件的标识移动到所述页面中的指定位置;And moving, according to the operation instruction, an identifier of one candidate page component of the identifiers of the M candidate page components to a specified position in the page;
根据所述一个候选页面组件的标识信息,获得所述一个候选页面组件的模板源代码;以及Obtaining template source code of the one candidate page component according to the identifier information of the one candidate page component;
根据所述一个候选页面组件的模板源代码,在所述指定位置,展现所述一个候选页面组件的组件模板。 And displaying, according to the template source code of the one candidate page component, a component template of the one candidate page component at the specified location.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述配置单元,还用于An aspect of the foregoing, and any possible implementation, further providing an implementation manner, where the configuration unit is further used to
根据所述一个候选页面组件的模板源代码和所述一个候选页面组件的组件配置信息的标识信息,获得所述一个候选页面组件的页面源代码;以及Obtaining a page source code of the one candidate page component according to the template source code of the one candidate page component and the identification information of component configuration information of the one candidate page component;
根据所述一个候选页面组件的页面源代码,在所述指定位置,展现所述一个候选页面组件的组件实例。Deriving a component instance of the one candidate page component at the specified location according to the page source code of the one candidate page component.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述操作指令包括点击操作指令或拖拽操作指令。In an aspect as described above and any possible implementation, an implementation is further provided, the operation instruction comprising a click operation instruction or a drag operation instruction.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述页面组件包括至少一个页面元素。In an aspect as described above and any possible implementation, an implementation is further provided, the page component comprising at least one page element.
本发明的另一方面,提供一种页面的构建系统,包括页面组件平台和上述的方面所述的页面的构建装置;其中,Another aspect of the present invention provides a page construction system, including a page component platform and a device for constructing a page according to the above aspect;
所述页面组件平台,用于The page component platform for
接收所述页面的构建装置发送的所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息;Receiving identification information of each target page component sent by the constructing device of the page and identification information of component configuration information of each target page component;
根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;以及Obtaining, according to the identification information of each target page component and the identification information of the component configuration information of each target page component, the page source code of each target page component;
向所述页面的构建装置发送所述页面组件平台发送的所述每个目标 页面组件的页面源代码。Sending each of the targets sent by the page component platform to a build device of the page The page source code for the page component.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述页面组件平台,具体用于An aspect of the foregoing, and any possible implementation manner, further provide an implementation manner, where the page component platform is specifically used to
根据所述每个目标页面组件的标识信息,获得所述每个目标页面组件的模板源代码;Obtaining template source code of each target page component according to the identification information of each target page component;
根据所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的组件配置信息;以及Obtaining component configuration information of each of the target page components according to the identification information of the component configuration information of each target page component;
根据所述模板源代码和所述每个目标页面组件的组件配置信息,获得所述每个目标页面组件的页面源代码。And obtaining page source code of each target page component according to the template source code and component configuration information of each target page component.
如上所述的方面和任一可能的实现方式,进一步提供一种实现方式,所述页面组件平台,还用于An aspect of the foregoing, and any possible implementation, further providing an implementation manner, the page component platform is further used to
对所述每个目标页面组件的标识信息和所述每个目标页面组件的模板源代码,进行存储处理。The storage processing is performed on the identification information of each of the target page components and the template source code of each of the target page components.
本发明的另一方面,提供一种设备,包括:In another aspect of the invention, an apparatus is provided, comprising:
一个或者多个处理器;One or more processors;
存储器;Memory
一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:One or more programs, the one or more programs being stored in the memory, when executed by the one or more processors:
获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置 信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数;Obtaining page component data of the page, the page component data including identification information of each target page component of the N target page components, component configuration of each of the target page components The identification information of the information and the assembly information of the N target page components, where N is an integer greater than or equal to 1;
根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;Obtaining, according to the identification information of each target page component and the identification information of component configuration information of each target page component, a page source code of each target page component;
根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码。According to the assembly information, the page source code of each target page component is assembled to generate a page source code of the page.
本发明的另一方面,提供一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:In another aspect of the present invention, a nonvolatile computer storage medium storing one or more programs when the one or more programs are executed by a device causes The device:
获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数;Obtaining page component data of the page, the page component data includes identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and assembly of N target page components Information, N is an integer greater than or equal to 1;
根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;Obtaining, according to the identification information of each target page component and the identification information of component configuration information of each target page component, a page source code of each target page component;
根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码。According to the assembly information, the page source code of each target page component is assembled to generate a page source code of the page.
由上述技术方案可知,本发明实施例通过获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数,进而根据所述每个目标页 面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码,使得能够根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码,由于根据页面的页面组件数据自动生成页面的页面源代码,开发人员只需要预先配置页面组件的页面源代码,无需预先配置模板页面的页面源代码,从而提高了页面的开发效率。According to the foregoing technical solution, the embodiment of the present invention obtains page component data of a page, where the page component data includes identifier information of each target page component of the N target page components, and component configuration information of each target page component. Identification information and assembly information of N target page components, N being an integer greater than or equal to 1, and then according to each target page The identification information of the face component and the identification information of the component configuration information of each target page component obtain the page source code of each target page component, so that each target page component can be obtained according to the assembly information The page source code is assembled to generate the page source code of the page. Since the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component without pre-configuring the template. The page source code of the page, which improves the development efficiency of the page.
另外,采用本发明提供的技术方案,由于根据页面的页面组件数据自动生成页面的页面源代码,开发人员只需要预先配置页面组件的页面源代码,无需预先配置模板页面的页面源代码,能够节省页面的开发成本。In addition, according to the technical solution provided by the present invention, since the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component, and does not need to pre-configure the page source code of the template page, thereby saving The development cost of the page.
另外,采用本发明提供的技术方案,针对待发布信息的发布需求变化的情况,开发人员只需要重新配置页面组件的页面源代码,无需重新配置模板页面的页面源代码,能够进一步提高页面的开发效率,以及还能够进一步降低页面的开发成本。In addition, according to the technical solution provided by the present invention, the developer only needs to reconfigure the page source code of the page component, and the page source code of the template page does not need to be reconfigured, thereby further improving the page development. Efficiency, and can further reduce the development cost of the page.
另外,采用本发明提供的技术方案,通过采集输入设备所输入的操作指令,进而根据所述操作指令,从M个候选页面组件的标识中,选择一个候选页面组件的标识,以将所述一个候选页面组件作为组成页面组件数据中的一个目标页面组件,由于不再完全依赖固定内容的模板页面进行页面的构建,而是结合输入设备所输入的操作指令进行页面的构建,使得所构建的页面能够基本满足用户构建页面的真正意图,因此,能够 避免现有技术中由于用户通过指定应用反复进行模板页面的调整而导致的增加应用与服务器之间的数据交互的问题,从而降低了服务器的处理负担。In addition, by using the technical solution provided by the present invention, by collecting an operation instruction input by the input device, and according to the operation instruction, selecting an identifier of the candidate page component from the identifiers of the M candidate page components, to The candidate page component is used as a target page component in the page component data. Since the template page of the fixed content is no longer completely dependent on the template construction of the fixed content, the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page is made. Can basically meet the true intention of the user to build the page, therefore, able to The problem of increasing the data interaction between the application and the server caused by the user repeatedly adjusting the template page by specifying the application in the prior art is avoided, thereby reducing the processing load of the server.
另外,采用本发明提供的技术方案,由于不再完全依赖固定内容的模板页面进行页面的构建,而是结合输入设备所输入的操作指令进行页面的构建,使得所构建的页面能够基本满足用户构建页面的真正意图,因此,能够有效提高页面构建的有效性。In addition, with the technical solution provided by the present invention, since the template page of the fixed content is no longer completely dependent on the construction of the page, the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction. The true intent of the page, therefore, can effectively improve the effectiveness of page construction.
另外,采用本发明提供的技术方案,由于不再完全依赖固定内容的模板页面进行页面的构建,而是结合输入设备所输入的操作指令进行页面的构建,使得所构建的页面能够基本满足用户构建页面的真正意图,因此,能够有效提高页面构建的效率。In addition, with the technical solution provided by the present invention, since the template page of the fixed content is no longer completely dependent on the construction of the page, the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction. The true intent of the page, therefore, can effectively improve the efficiency of page construction.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are the present invention. For some embodiments, other drawings may be obtained from those of ordinary skill in the art in light of the inventive workability.
图1为本发明一实施例提供的页面的构建方法的流程示意图;1 is a schematic flowchart of a method for constructing a page according to an embodiment of the present invention;
图2为本发明另一实施例提供的页面的构建方法的流程示意图;2 is a schematic flowchart of a method for constructing a page according to another embodiment of the present invention;
图3为图2对应的实施例中一界面展现示意图;3 is a schematic diagram showing an interface in the embodiment corresponding to FIG. 2;
图4为图2对应的实施例中另一界面展现示意图; 4 is a schematic diagram showing another interface in the embodiment corresponding to FIG. 2;
图5为图2对应的实施例中另一界面展现示意图;FIG. 5 is a schematic diagram showing another interface in the embodiment corresponding to FIG. 2; FIG.
图6为图2对应的实施例中另一界面展现示意图;6 is a schematic diagram showing another interface in the embodiment corresponding to FIG. 2;
图7为本发明另一实施例提供的页面的构建装置的结构示意图;FIG. 7 is a schematic structural diagram of a device for constructing a page according to another embodiment of the present invention;
图8为本发明另一实施例提供的页面的构建装置的结构示意图;FIG. 8 is a schematic structural diagram of a device for constructing a page according to another embodiment of the present invention;
图9为本发明另一实施例提供的页面的构建系统的结构示意图。FIG. 9 is a schematic structural diagram of a system for constructing a page according to another embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的全部其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
可以理解的是,本发明所涉及的页面,也可以称为Web页面,可以是基于超文本标记语言(HyperText Markup Language,HTML)编写的网页(Web Page),即HTML页面,或者还可以是基于HTML和Java语言编写的网页,即Java服务器页面(Java Server Page,JSP),或者还可以为其他语言编写的网页,本实施例对此不进行特别限定。It can be understood that the page involved in the present invention may also be referred to as a Web page, and may be a Web page written based on HyperText Markup Language (HTML), that is, an HTML page, or may be based on Web pages written in the HTML and Java languages, that is, Java Server Pages (JSPs), or web pages that can also be written in other languages, are not specifically limited in this embodiment.
页面可以包括由一个或者多个页面标签例如,HTML标签、JSP标签等,定义的一个显示区块,称为页面元素,例如,文字、图片、超链接、按钮、输入框、下拉框等,本实施例对此不进行特别限定。A page may include a display block defined by one or more page tags, such as HTML tags, JSP tags, etc., called page elements, such as text, images, hyperlinks, buttons, input boxes, drop-down boxes, etc. The embodiment is not particularly limited thereto.
需要说明的是,本发明实施例中所涉及的终端可以包括但不限于手机、个人数字助理(Personal Digital Assistant,PDA)、无线手持装置、无线上网本、个人电脑、便携电脑、个人电脑(Personal Computer, PC)、MP3播放器、MP4播放器等。It should be noted that the terminals involved in the embodiments of the present invention may include, but are not limited to, a mobile phone, a personal digital assistant (PDA), a wireless handheld device, a wireless netbook, a personal computer, a portable computer, and a personal computer (Personal Computer). , PC), MP3 player, MP4 player, etc.
另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist at the same time. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
需要说明的是,本实施例中所涉及的页面,可以为PC站点的页面,或者还可以为移动站点的页面,本实施例对此不进行特别限定。It should be noted that the page involved in this embodiment may be a page of a PC site, or may also be a page of a mobile site, which is not specifically limited in this embodiment.
随着移动互联网的发展,移动站点的建设浪潮正在兴起,与此同时一批面向个人和中小企业的移动站点构建工具和服务也应运而生。其共同特点是为用户提供了可视化、所见即所得的在线站点构建平台,包括了页面内容的构建、页面样式的配置、站点托管、域名部署等功能,帮助用户快速、便捷的创建和管理移动站点。With the development of mobile Internet, the wave of construction of mobile sites is on the rise. At the same time, a number of mobile site building tools and services for individuals and small and medium-sized enterprises have emerged. The common feature is to provide users with a visual, WYSIWYG online site construction platform, including page content construction, page style configuration, site hosting, domain name deployment and other functions to help users create and manage mobile quickly and easily. Site.
与传统PC站点相比,移动站点具有页面尺寸小、布局简单(以垂直为主)、页面元素简单规范、以内容为主的交互等特点。由于模板页面是以站点风格和样式见长,因此,移动站点所使用的页面采用模板页面进行构建,会使得模板页面中有大量冗余或者需要修改的页面元素,可能会使得所构建的页面无法满足用户的真正意图,使得用户需要通过指定应用反复进行模板页面的调整而导致的增加应用与服务器之间的数据交互的问题,从而导致了服务器的处理负担的增加。Compared with traditional PC sites, mobile sites have the characteristics of small page size, simple layout (mainly vertical), simple specification of page elements, and content-based interaction. Since the template page is known for its site style and style, the page used by the mobile site is built using the template page, which causes a lot of redundancy or page elements to be modified in the template page, which may make the constructed page unsatisfactory. The user's true intention is that the user needs to increase the data interaction between the application and the server caused by the repeated adjustment of the template page by the specified application, thereby causing an increase in the processing load of the server.
图1为本发明一实施例提供的页面的构建方法的流程示意图,如图1所示。FIG. 1 is a schematic flowchart of a method for constructing a page according to an embodiment of the present invention, as shown in FIG. 1 .
101、获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组 件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数。101. Obtain page component data of a page, where the page component data includes identification information of each target page component of the N target page components, and a group of each target page component. The identification information of the piece configuration information and the assembly information of the N target page components, and N is an integer greater than or equal to 1.
其中,目标页面组件的标识信息可以包括但不限于页面组件的身份标识(IDentity,ID)、编号等。The identification information of the target page component may include, but is not limited to, an identity (IDentity, ID), a number, and the like of the page component.
其中,目标页面组件的组件配置信息的标识信息可以包括但不限于目标页面组件的组件配置信息的ID、编号等。The identification information of the component configuration information of the target page component may include, but is not limited to, an ID, a number, and the like of the component configuration information of the target page component.
102、根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码。102. Obtain, according to the identifier information of each target page component and the identifier information of component configuration information of each target page component, a page source code of each target page component.
103、根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码。103. Perform, according to the assembling information, a page source code of each target page component to assemble a page source code of the page.
至此,获得一个完整的页面的页面源代码,例如,HTML页面源代码或JSP源代码等。将页面源代码所对应的HTML源代码提供给用户访问页面的应用,以使得该应用根据该页面源代码,将所述页面展现给用户。At this point, get the page source code of a complete page, for example, HTML page source code or JSP source code. The HTML source code corresponding to the page source code is provided to the user to access the application of the page, so that the application presents the page to the user according to the page source code.
可选地,在本实施例的一个可能的实现方式中,所述页面组件可以包括但不限于至少一个页面元素,也就是说,页面组件是页面元素的一个集合。Optionally, in a possible implementation manner of the embodiment, the page component may include, but is not limited to, at least one page element, that is, the page component is a set of page elements.
具体地,所述页面组件可以包括但不限于标题组件、导航组件、目录组件、图片上传组件、文本组件、表格组件、地图组件、选项卡(TAB)组件、链接组件、编辑组件、分享组件、联系方式组件、第三方组件和其他组件,本实施例对此不进行特别限定。Specifically, the page component may include, but is not limited to, a title component, a navigation component, a directory component, an image upload component, a text component, a table component, a map component, a tab (TAB) component, a link component, an editing component, a sharing component, The contact component, the third-party component, and other components are not specifically limited in this embodiment.
例如,标题组件可以文字这一个页面元素。 For example, the title component can text this page element.
或者,再例如,图片组件可以包括超链接、输入框、按钮和下拉框等页面元素。Or, for example, the picture component can include page elements such as hyperlinks, input boxes, buttons, and drop down boxes.
或者,再例如,编辑组件可以包括输入框和按钮等页面元素。Or, for example, the editing component can include page elements such as input boxes and buttons.
或者,再例如,联系方式组件可以包括输入框、按钮和下拉框等页面元素。Alternatively, for example, the contact component can include page elements such as input boxes, buttons, and drop down boxes.
本实施例中,所谓的页面组件,并不是一个静态的实体,而是一个包括了前端展示模板、业务逻辑代码、数据存储的动态的实体,其能够为用户提供更为丰富的交互效果,并且页面组件之间可以通过事件驱动机制,进行信息的交换和协作,进一步提升页面组件的表达能力。In this embodiment, the so-called page component is not a static entity, but a dynamic entity including a front-end presentation template, business logic code, and data storage, which can provide users with richer interaction effects, and Pages can be exchanged and collaborated with information through event-driven mechanisms to further enhance the expressive capabilities of page components.
这些页面组件部署在页面组件平台中,例如组件托管模块等,并且每个页面组件都有唯一的标识信息,例如,页面组件的ID或编号等。These page components are deployed in a page component platform, such as a component hosting module, and each page component has unique identifying information, such as the ID or number of the page component.
页面组件平台,是各种页面组件的运行和管理平台,负责页面组件的提交、审核、安装、运行、更新等生命周期中的各项操作。为了页面组件的开发更方便以及运行更为高效,页面组件平台提供了详解的页面组件开发规范和页面组件开发框架。根据开发规范,开发人员可以通过配置文件的方式实现页面组件权限的申请、页面组件依赖描述、页面组件接口导出、页面组件数据表申请等工作;开发框架为页面组件提供了模板系统、页面缓存、数据库访问、URL映射、静态文件访问等基础服务,页面组件开发者只需要专注于页面组件的业务逻辑即业务源代码业务逻辑的开发。The page component platform is a running and management platform for various page components, and is responsible for various operations in the life cycle of submitting, reviewing, installing, running, and updating the page components. In order to facilitate the development of page components and to run more efficiently, the page component platform provides detailed page component development specifications and page component development framework. According to the development specification, the developer can implement the application of the page component permission, the page component dependency description, the page component interface export, the page component data table application, etc. through the configuration file; the development framework provides the template component, the page cache, and the page component. For basic services such as database access, URL mapping, and static file access, page component developers only need to focus on the business logic of the page component, that is, the development of the business source code business logic.
可选地,在本实施例的一个可能的实现方式中,所述拼装信息可以包括但不限于页面的头部信息、页面的导航信息、页面的正文信息和页面的尾部信息中的至少一项,以及页面组件的布局信息。其中, Optionally, in a possible implementation manner of the embodiment, the assembling information may include, but is not limited to, at least one of header information of the page, navigation information of the page, body information of the page, and tail information of the page. , as well as layout information for page components. among them,
所述页面的头部信息,可以用于指示位于页面的上边框与页面的正文之间的部分,中的内容,例如,页面标题、页面描述和页面关键字等。The header information of the page may be used to indicate content in a portion between the upper border of the page and the body of the page, for example, a page title, a page description, a page keyword, and the like.
所述页面的导航信息,可以用于指示页面的导航栏中的内容。一般页面都有导航栏,方便用户的浏览。所谓的页面的导航栏指的是引导用户访问网站的栏目、菜单、在线帮助、分类等布局结构等形式的总称。所以网站建设的过程中一定要使网站导航结构清晰,能够使用户在最短时间内找到自己喜欢的内容。The navigation information of the page may be used to indicate the content in the navigation bar of the page. The general page has a navigation bar for user browsing. The navigation bar of the so-called page refers to the general name of the form such as the column, menu, online help, classification and other layout structures that guide the user to visit the website. Therefore, in the process of website construction, the navigation structure of the website must be clear, and the user can find the content that he likes in the shortest time.
所述页面的正文信息,可以用于指示页面的正文,中的内容,例如,文章、目录等。The body information of the page may be used to indicate the content of the page, such as articles, directories, and the like.
所述页面的尾部信息,可以用于指示从页面的正文与页面的下边框之间的部分,中的内容,例如,版权信息等。The tail information of the page may be used to indicate content in a portion between the body of the page and the bottom border of the page, for example, copyright information and the like.
需要说明的是,101~103的执行主体,可以为位于本地终端的应用,或者还可以为位于本地终端的应用中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,或者还可以为位于网络侧的服务器中的处理引擎,或者还可以为位于网络侧的分布式系统,本实施例对此不进行特别限定。It should be noted that the execution body of 101 to 103 may be an application located in a local terminal, or may be a plug-in or a software development kit (SDK) functional unit located in an application of the local terminal, or The processing engine in the server on the network side, or the distributed system on the network side, may not be specifically limited in this embodiment.
可以理解的是,所述应用可以是安装在终端上的应用程序(Native App),或者还可以是浏览器的一个网页程序(Web App),本实施例对此不进行限定。It can be understood that the application may be an application installed on the terminal (Native App), or may be a web application of the browser, which is not limited in this embodiment.
这样,通过获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数,进而根据所述每个目标页面组件的标识信息和所述每 个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码,使得能够根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码,由于根据页面的页面组件数据自动生成页面的页面源代码,开发人员只需要预先配置页面组件的页面源代码,无需预先配置模板页面的页面源代码,从而提高了页面的开发效率。In this way, by acquiring page component data of the page, the page component data includes identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and N target pages. The assembly information of the component, N is an integer greater than or equal to 1, and further according to the identification information of each target page component and each of the Identification information of the component configuration information of the target page component, obtaining the page source code of each target page component, so that the page source code of each target page component is assembled according to the assembly information, The page source code of the page is generated. Since the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component, and does not need to pre-configure the page source code of the template page, thereby improving the page source code. The efficiency of page development.
可选地,在本实施例的一个可能的实现方式中,在101中,具体可以接收客户端发送的页面访问请求,所述页面访问请求中包含页面的标识信息,例如,页面的统一资源定位符(Uniform Resource Locator,URL),有时也被称为网页地址。进而,则可以根据页面的标识信息,获得所述页面的页面组件数据。Optionally, in a possible implementation manner of the embodiment, in 101, a page access request sent by a client may be received, where the page access request includes identifier information of the page, for example, uniform resource location of the page. Uniform Resource Locator (URL), sometimes referred to as a web page address. Further, the page component data of the page may be obtained according to the identification information of the page.
可选地,在本实施例的一个可能的实现方式中,在102中,具体可以向页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,以使得所述页面组件平台根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码。然后,则可以接收所述页面组件平台发送的所述每个目标页面组件的页面源代码。Optionally, in a possible implementation manner of this embodiment, in 102, the identifier information of each target page component and the component configuration information of each target page component may be specifically sent to the page component platform. The information is identified such that the page component platform obtains the page source code of each of the target page components according to the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components. Then, the page source code of each of the target page components sent by the page component platform may be received.
具体地,具体可以依次向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息。例如,可以依次向所述页面组件平台发送请求,每次所发送的请求中只包含一个目标页面组件的标识信息和一个目标页面组件的组件配置信息的标识信息。这样,由于采用串行方式向页面组件平台进行请求,页面的构建的效率不高。 Specifically, the identification information of each target page component and the identification information of component configuration information of each target page component may be sent to the page component platform in sequence. For example, the request may be sent to the page component platform in turn, and each time the sent request includes only the identification information of one target page component and the identification information of component configuration information of a target page component. In this way, the page construction is not efficient due to the serial method of requesting to the page component platform.
具体地,具体可以同时向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息。例如,可以向所述页面组件平台发送一个请求,该一个请求中包含每个目标页面组件的标识信息和每个目标页面组件的组件配置信息的标识信息。这样,由于采用并行方式向页面组件平台进行请求,能够有效提高页面的构建的效率。Specifically, the identification information of each target page component and the identification information of component configuration information of each target page component may be sent to the page component platform at the same time. For example, a request may be sent to the page component platform, the one request containing identification information of each target page component and identification information of component configuration information of each target page component. In this way, since the request is made to the page component platform in a parallel manner, the efficiency of page construction can be effectively improved.
可选地,在本实施例的一个可能的实现方式中,在103中,具体可以根据所述拼装信息,并利用页面标签例如,HTML标签、JSP标签等,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码。Optionally, in a possible implementation manner of the embodiment, in 103, specifically, according to the assembling information, and using a page label, for example, an HTML tag, a JSP tag, or the like, for each target page component. The page source code is assembled to generate the page source code for the page.
例如,具体可以利用DIV标签。DIV标签是用来为HTML页面内若干区域的内容提供结构和背景的元素。DIV标签的起始标签和结束标签之间的所有内容都是用来定义这个区域的,其中所包含页面组件的特性由DIV标签的属性来进行控制,或者是通过使用级联样式表(Cascading Style Sheet,CSS)格式化这个区域来进行控制。DIV标签的详细描述可以参见现有技术中的相关内容,此处不再赘述。For example, a DIV tag can be specifically utilized. DIV tags are elements used to provide structure and context for content in several areas within an HTML page. Everything between the start and end tags of a DIV tag is used to define this area, where the properties of the included page component are controlled by the properties of the DIV tag, or by using a cascading style sheet (Cascading Style). Sheet, CSS) Format this area for control. For a detailed description of the DIV tag, refer to related content in the prior art, and details are not described herein again.
本实施例中,通过获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数,进而根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码,使得能够根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码, 由于根据页面的页面组件数据自动生成页面的页面源代码,开发人员只需要预先配置页面组件的页面源代码,无需预先配置模板页面的页面源代码,从而提高了页面的开发效率。In this embodiment, by acquiring page component data of a page, the page component data includes identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and N The assembly information of the target page components, N is an integer greater than or equal to 1, and the obtained information is obtained according to the identification information of each target page component and the identification information of the component configuration information of each target page component. The page source code of the target page component enables the page source code of each target page component to be assembled according to the assembly information to generate a page source code of the page. Since the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component, and does not need to pre-configure the page source code of the template page, thereby improving the development efficiency of the page.
另外,采用本发明提供的技术方案,由于根据页面的页面组件数据自动生成页面的页面源代码,开发人员只需要预先配置页面组件的页面源代码,无需预先配置模板页面的页面源代码,能够节省页面的开发成本。In addition, according to the technical solution provided by the present invention, since the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component, and does not need to pre-configure the page source code of the template page, thereby saving The development cost of the page.
另外,采用本发明提供的技术方案,针对待发布信息的发布需求变化的情况,开发人员只需要重新配置页面组件的页面源代码,无需重新配置模板页面的页面源代码,能够进一步提高页面的开发效率,以及还能够进一步降低页面的开发成本。In addition, according to the technical solution provided by the present invention, the developer only needs to reconfigure the page source code of the page component, and the page source code of the template page does not need to be reconfigured, thereby further improving the page development. Efficiency, and can further reduce the development cost of the page.
可选地,本发明另一实施例中,在101之前,还可以进一步预先对页面所包括的目标页面组件执行实例化操作,以获得目标页面组件的组件实例。具体地,具体可以利用一可视化编辑平台,以下简称建站平台,完成上述操作。建站平台可以为用户提供站点以及页面的创建和管理功能,其核心是一个所见即所得的页面编辑器,使用页面编辑器的用户可以通过点击页面组件或拖放页面组件等操作,进行页面组件的选择,以完成页面的构建和实时的效果预览。用户在利用建站平台进行站点创建时,首先可以填写站点名称等站点基本信息,然后,填写页面名称等页面基本信息,进而执行页面的构建操作。图2为本发明另一实施例提供的页面的构建方法的流程示意图。Optionally, in another embodiment of the present invention, prior to 101, an instantiation operation may be further performed on the target page component included in the page to obtain a component instance of the target page component. Specifically, a visual editing platform, hereinafter referred to as a website building platform, may be specifically used to complete the foregoing operations. The website platform can provide users with site and page creation and management functions. The core of the site is a WYSIWYG page editor. Users who use the page editor can click the page component or drag and drop page components to perform page components. The choice to complete the page's build and live preview of the effect. When a user creates a site using the website, he or she can first fill in the basic information of the site, such as the site name, and then fill in the basic information of the page such as the page name, and then perform the page construction operation. FIG. 2 is a schematic flowchart diagram of a method for constructing a page according to another embodiment of the present invention.
201、建站平台展现M个候选页面组件的标识,M为大于或等于N的整数。 201. The website platform displays identifiers of M candidate page components, where M is an integer greater than or equal to N.
例如,如图3所示,图3中建站平台在界面最左边的区域展现一组件库界面,有时还可以称为组件面板。该组件面板中具体展现了导航组件的标识、幻灯片组件的标识、图片组件的标识、文本组件的标识等若干候选页面组件的标识,以供用户进行选择。其中,候选页面组件的标识可以为候选页面组件的图片标注等。For example, as shown in FIG. 3, the station platform in FIG. 3 presents a component library interface in the leftmost area of the interface, and sometimes may also be referred to as a component panel. The component panel specifically displays the identifiers of the navigation component, the identifier of the slide component, the identifier of the picture component, and the identifier of the text component, etc., for the user to select. The identifier of the candidate page component may be a picture label of the candidate page component, and the like.
202、建站平台采集输入设备所输入的操作指令。202. The website platform collects an operation instruction input by the input device.
需要说明的是,本实施例所涉及的输入设备可以包括但不限于鼠标、键盘或触摸屏,本实施例对此不进行特别限定。It should be noted that the input device in this embodiment may include, but is not limited to, a mouse, a keyboard, or a touch screen, which is not specifically limited in this embodiment.
具体地,所述操作指令可以包括但不限于点击操作指令或拖拽操作指令,本实施例对此不进行特别限定。Specifically, the operation instruction may include, but is not limited to, a click operation instruction or a drag operation instruction, which is not specifically limited in this embodiment.
具体地,在本实施例的一个可能的实现方式中,在202中,建站平台具体可以采集用户所使用的输入设备在建站平台所展现界面上的操作指令,例如,用户利用输入设备点击所选择的候选页面组件的标识或拖动所选择的候选页面组件的标识预设距离等。Specifically, in a possible implementation manner of the embodiment, in 202, the website establishing platform may specifically collect an operation instruction of the input device used by the user on the interface displayed by the website, for example, the user selects by using the input device. The identification of the candidate page component or the selection of the selected candidate page component by the preset distance, and the like.
203、建站平台根据所述操作指令,从M个候选页面组件的标识中,选择一个候选页面组件的标识,以将所述一个候选页面组件作为目标页面组件。203. The website platform selects, according to the operation instruction, an identifier of a candidate page component from the identifiers of the M candidate page components, to use the one candidate page component as the target page component.
204、建站平台展现所述目标页面组件的配置页面。204. The website platform displays a configuration page of the target page component.
例如,如图3所示,图3中建站平台在界面最右边的区域展现一组件管理界面,有时还可以称为组件实例配置面板。该组件实例配置面板中具体展现了目标页面组件的配置选项,例如,组件内容、组件样式等,以供用户进行选择与配置。For example, as shown in FIG. 3, the station platform in FIG. 3 presents a component management interface in the rightmost area of the interface, and sometimes may also be referred to as a component instance configuration panel. The component instance configuration panel specifically displays the configuration options of the target page component, such as component content, component style, etc., for the user to select and configure.
205、建站平台采集所述输入设备在所述配置页面中输入的组件配 置信息。205. The website platform collects component components input by the input device in the configuration page. Set the information.
具体地,建站平台具体可以采集用户所使用的输入设备在所述配置页面上所展现的目标页面组件的配置选项中输入的组件配置信息。若建站平台采集用户所使用的输入设备在所述配置页面上所展现的指定按钮上点击操作,则结束输入操作,不再展现所述目标页面组件的配置页面。Specifically, the website platform may specifically collect component configuration information input by the input device used by the user in the configuration option of the target page component displayed on the configuration page. If the website platform collects the input operation of the input device displayed by the user on the specified button displayed on the configuration page, the input operation is ended, and the configuration page of the target page component is no longer displayed.
例如,继续参见图3,用户具体可以点击保存按钮,以结束输入操作。For example, referring to FIG. 3, the user can click the save button to end the input operation.
206、建站平台对所述目标页面组件的标识信息、所述目标页面组件的组件配置信息的标识信息和所述目标页面组件的组件配置信息,进行存储处理。206. The website platform performs storage processing on the identifier information of the target page component, the identifier information of the component configuration information of the target page component, and the component configuration information of the target page component.
具体地,建站平台具体可以将所述目标页面组件的标识信息与所述目标页面组件的组件配置信息的标识信息,作为数据对,存储为结构化数据列表中的一条记录。进而,建站平台再将所述目标页面组件的组件配置信息,移动到所对应的记录中,以作为一条完整的目标页面组件的结构化数据。这些结构化数据可以存储在一个分布式数据库中。Specifically, the website platform may specifically store the identification information of the target page component and the identification information of the component configuration information of the target page component as a data pair as a record in the structured data list. Further, the website platform moves the component configuration information of the target page component to the corresponding record as structured data of a complete target page component. These structured data can be stored in a distributed database.
可以理解的是,所述目标页面组件的组件配置信息,可以直接作为结构化数据列表中一条记录的一个数据项,或者还可以与目标页面组件的组件配置信息的标识信息,一一对应,单独存储在另一个结构化数据列表中。本实施例对此不进行特别限定。It can be understood that the component configuration information of the target page component can be directly used as a data item of a record in the structured data list, or can also be in one-to-one correspondence with the identification information of the component configuration information of the target page component. Stored in another structured data list. This embodiment is not particularly limited.
可选地,组件实例列表中每个目标页面组件的记录,可以按照目标页面组件的相对位置关系,进行排列。例如,目标页面组件的相对位置关系为顺次向下排列,那么,相应地,这些目标页面组件的记录则也按照目标页面组件的排列顺序,顺次向下配置。 Optionally, the records of each target page component in the component instance list may be arranged according to the relative positional relationship of the target page components. For example, the relative positional relationship of the target page components is sequentially arranged downward, and accordingly, the records of the target page components are also sequentially configured downward according to the order of the target page components.
至此,获得一个目标页面组件的组件实例。依次类推,可以反复执行201~206,以获得页面所包含的其他目标页面组件的组件实例,本实施例对此不再赘述。At this point, get a component instance of the target page component. By analogy, 201 to 206 can be repeatedly executed to obtain a component instance of other target page components included in the page, which is not described in this embodiment.
需要说明的是,201~206的建站平台,可以为位于本地终端的应用,或者还可以为位于本地终端的应用中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,或者还可以为位于网络侧的服务器中的处理引擎,或者还可以为位于网络侧的分布式系统,本实施例对此不进行特别限定。It should be noted that the website construction platform of 201 to 206 may be an application located in a local terminal, or may be a plug-in or a software development kit (SDK) functional unit located in an application of the local terminal, or The processing engine in the server on the network side, or the distributed system on the network side, may not be specifically limited in this embodiment.
可以理解的是,所述应用可以是安装在终端上的应用程序(Native App),或者还可以是浏览器的一个网页程序(Web App),本实施例对此不进行限定。It can be understood that the application may be an application installed on the terminal (Native App), or may be a web application of the browser, which is not limited in this embodiment.
这样,采用本发明提供的技术方案,通过采集输入设备所输入的操作指令,进而根据所述操作指令,从M个候选页面组件的标识中,选择一个候选页面组件的标识,以将所述一个候选页面组件作为组成页面组件数据中的一个目标页面组件,由于不再完全依赖固定内容的模板页面进行页面的构建,而是结合输入设备所输入的操作指令进行页面的构建,使得所构建的页面能够基本满足用户构建页面的真正意图,因此,能够避免现有技术中由于用户通过指定应用反复进行模板页面的调整而导致的增加应用与服务器之间的数据交互的问题,从而降低了服务器的处理负担。In this way, by using the technical solution provided by the present invention, by collecting an operation instruction input by the input device, and according to the operation instruction, selecting an identifier of the candidate page component from the identifiers of the M candidate page components, to The candidate page component is used as a target page component in the page component data. Since the template page of the fixed content is no longer completely dependent on the template construction of the fixed content, the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page is made. It can basically satisfy the true intention of the user to build the page. Therefore, the problem of increasing the data interaction between the application and the server caused by the user repeatedly adjusting the template page through the specified application can be avoided in the prior art, thereby reducing the processing of the server. burden.
可选地,在本实施例的一个可能的实现方式中,建站平台还可以进一步对所构建的页面进行实时展现。Optionally, in a possible implementation manner of the embodiment, the website platform may further perform real-time display on the constructed page.
首先,建站平台可以根据所述页面的标识信息,获取所述页面的初 始源代码,进而则可以根据所述页面的初始源代码,展现所述页面。初始源代码,可以包含页面名称等信息对应的页面代码,如图4所示,只展现了包含页面名称为“百度轻应用”的页面。First, the website platform can obtain the beginning of the page according to the identification information of the page. The source code, and then the page can be presented based on the initial source code of the page. The initial source code may include a page code corresponding to the information such as the page name, as shown in FIG. 4, and only the page including the page name "Baidu Light Application" is displayed.
接着,建站平台则可以根据所述操作指令,将M个候选页面组件的标识中的一个候选页面组件的标识移动到所述页面中的指定位置。Then, the website platform may move the identifier of one candidate page component of the identifiers of the M candidate page components to the specified position in the page according to the operation instruction.
如图5所示,图5中,建站平台具体可以根据所采集的输入设备所输入的拖拽操作命令等,将文章列表的标识移动到所展现的页面中的指定位置。As shown in FIG. 5, in FIG. 5, the website building platform may specifically move the identifier of the article list to a specified position in the displayed page according to the drag operation command input by the collected input device.
可以理解的是,所谓的指定位置,可以为预先配置的位置,例如,每个目标页面组件顺次向下排列的位置,或者还可以为开发者利用格式组件例如,TAB组件、分栏组件或表格组件等页面组件所指定的位置,本实施例对此不进行特别限定。It can be understood that the so-called specified location may be a pre-configured location, for example, a position in which each target page component is sequentially arranged downward, or may also be used by a developer to use a format component such as a TAB component, a column component, or The position specified by the page component such as the table component is not particularly limited in this embodiment.
然后,建站平台可以根据所述一个候选页面组件的标识信息,获得所述一个候选页面组件的模板源代码。Then, the website platform can obtain the template source code of the one candidate page component according to the identification information of the one candidate page component.
具体地,建站平台具体可以向页面组件平台发送所述一个候选页面组件的标识信息,以使得页面组件平台根据所述一个候选页面组件的标识信息,获得所述一个候选页面组件的模板源代码。进而,建站平台则可以接收页面组件平台所发送的所述一个候选页面组件的模板源代码。Specifically, the website platform may specifically send the identifier information of the one candidate page component to the page component platform, so that the page component platform obtains the template source code of the one candidate page component according to the identifier information of the one candidate page component. Further, the website platform can receive the template source code of the one candidate page component sent by the page component platform.
最后,建站平台则可以根据所述一个候选页面组件的模板源代码,在所述指定位置,展现所述一个候选页面组件的组件模板。Finally, the website platform may display the component template of the one candidate page component at the specified location according to the template source code of the one candidate page component.
如图6所示,建站平台在展现所述一个候选页面组件的组件模板的同时,或者之后,还可以进一步根据所述一个候选页面组件的模板源代码和所述一个候选页面组件的组件配置信息的标识信息,获得所述一个 候选页面组件的页面源代码,进而根据所述一个候选页面组件的页面源代码,在所述指定位置,展现所述一个候选页面组件的组件实例。As shown in FIG. 6, the website platform may further display the template source code of the one candidate page component and the component configuration information of the one candidate page component while displaying the component template of the one candidate page component. Identification information, obtain the one The page source code of the candidate page component, and then the component instance of the one candidate page component is presented at the specified location according to the page source code of the one candidate page component.
具体地,建站平台具体可以向页面组件平台发送所述一个候选页面组件的组件配置信息的标识信息,以使得页面组件平台根据所述一个候选页面组件的组件配置信息的标识信息,获得所述一个候选页面组件的组件配置信息。进而,建站平台则可以接收页面组件平台所发送的所述一个候选页面组件的组件配置信息。然后,建站平台则可以根据所述一个候选页面组件的模板源代码和所述一个候选页面组件的组件配置信息,获得所述一个候选页面组件的页面源代码。Specifically, the website platform may specifically send the identifier information of the component configuration information of the one candidate page component to the page component platform, so that the page component platform obtains the one according to the identifier information of the component configuration information of the one candidate page component. Component configuration information for candidate page components. Further, the website platform can receive component configuration information of the one candidate page component sent by the page component platform. Then, the website platform may obtain the page source code of the one candidate page component according to the template source code of the one candidate page component and the component configuration information of the one candidate page component.
继续参见图6,用户可以点击界面中所展现的预览按钮,建站平台则可以展现所述页面,以供用户预览页面的实际效果。Continuing to refer to FIG. 6, the user can click on the preview button displayed in the interface, and the website platform can display the page for the user to preview the actual effect of the page.
本实施例中,通过采集输入设备所输入的操作指令,进而根据所述操作指令,从M个候选页面组件的标识中,选择一个候选页面组件的标识,以将所述一个候选页面组件作为组成页面组件数据中的一个目标页面组件,由于不再完全依赖固定内容的模板页面进行页面的构建,而是结合输入设备所输入的操作指令进行页面的构建,使得所构建的页面能够基本满足用户构建页面的真正意图,因此,能够避免现有技术中由于用户通过指定应用反复进行模板页面的调整而导致的增加应用与服务器之间的数据交互的问题,从而降低了服务器的处理负担。In this embodiment, by collecting an operation instruction input by the input device, and according to the operation instruction, selecting an identifier of the candidate page component from the identifiers of the M candidate page components, to form the candidate page component as a component. A target page component in the page component data, because the template page of the fixed content is no longer completely dependent on the template construction of the fixed content, but the page is constructed in accordance with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction. The true intention of the page, therefore, the problem of increasing the data interaction between the application and the server caused by the user repeatedly adjusting the template page by the specified application in the prior art can be avoided, thereby reducing the processing load of the server.
另外,采用本发明提供的技术方案,由于不再完全依赖固定内容的模板页面进行页面的构建,而是结合输入设备所输入的操作指令进行页面的构建,使得所构建的页面能够基本满足用户构建页面的真正意图,因此,能够有效提高页面构建的有效性。 In addition, with the technical solution provided by the present invention, since the template page of the fixed content is no longer completely dependent on the construction of the page, the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction. The true intent of the page, therefore, can effectively improve the effectiveness of page construction.
另外,采用本发明提供的技术方案,由于不再完全依赖固定内容的模板页面进行页面的构建,而是结合输入设备所输入的操作指令进行页面的构建,使得所构建的页面能够基本满足用户构建页面的真正意图,因此,能够有效提高页面构建的效率。In addition, with the technical solution provided by the present invention, since the template page of the fixed content is no longer completely dependent on the construction of the page, the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction. The true intent of the page, therefore, can effectively improve the efficiency of page construction.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
图7为本发明另一实施例提供的页面的构建装置的结构示意图,如图7所示。本实施例的页面的构建装置可以包括获取单元71、渲染单元72和拼装单元73。其中,获取单元71,用于获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数;渲染单元72,用于根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;拼装单元73,用于根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码。FIG. 7 is a schematic structural diagram of a device for constructing a page according to another embodiment of the present invention, as shown in FIG. 7. The construction apparatus of the page of the present embodiment may include an acquisition unit 71, a rendering unit 72, and a splicing unit 73. The obtaining unit 71 is configured to acquire page component data of a page, where the page component data includes identifier information of each target page component of the N target page components, and identifier information of component configuration information of each target page component. The assembly information of the N target page components, N is an integer greater than or equal to 1; the rendering unit 72 is configured to identify, according to the identification information of each target page component and the component configuration information of each target page component Information, obtaining the page source code of each target page component; the assembling unit 73, configured to assemble the page source code of each target page component according to the assembly information, to generate a page of the page Source code.
需要说明的是,本实施例所提供的页面的构建装置,可以为位于本 地终端的应用,或者还可以为位于本地终端的应用中的插件或软件开发工具包(Software Development Kit,SDK)等功能单元,或者还可以为位于网络侧的服务器中的处理引擎,或者还可以为位于网络侧的分布式系统,本实施例对此不进行特别限定。It should be noted that the device for constructing the page provided in this embodiment may be located in the present embodiment. The application of the local terminal, or may be a plug-in or a software development kit (SDK) functional unit located in the application of the local terminal, or may be a processing engine located in a server on the network side, or may also For the distributed system located on the network side, this embodiment does not specifically limit this.
可以理解的是,所述应用可以是安装在终端上的应用程序(Native App),或者还可以是浏览器的一个网页程序(Web App),本实施例对此不进行限定。It can be understood that the application may be an application installed on the terminal (Native App), or may be a web application of the browser, which is not limited in this embodiment.
可选地,在本实施例的一个可能的实现方式中,所述页面组件可以包括但不限于至少一个页面元素,也就是说,页面组件是页面元素的一个集合。Optionally, in a possible implementation manner of the embodiment, the page component may include, but is not limited to, at least one page element, that is, the page component is a set of page elements.
可选地,在本实施例的一个可能的实现方式中,所述渲染单元72,具体可以用于向页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,以使得所述页面组件平台根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;以及接收所述页面组件平台发送的所述每个目标页面组件的页面源代码。Optionally, in a possible implementation manner of the embodiment, the rendering unit 72 may be specifically configured to send, to the page component platform, identifier information of each target page component and each of the target page components. And the identification information of the component configuration information, so that the page component platform obtains the identifier information of each of the target page components according to the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components. a page source code; and a page source code for receiving each of the target page components sent by the page component platform.
具体地,所述渲染单元72,具体可以用于依次向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息。Specifically, the rendering unit 72 may be configured to sequentially send identifier information of each target page component and identifier information of component configuration information of each target page component to the page component platform.
具体地,所述渲染单元72,具体可以用于同时向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息。Specifically, the rendering unit 72 may be configured to send identifier information of each target page component and identifier information of component configuration information of each target page component to the page component platform at the same time.
可选地,在本实施例的一个可能的实现方式中,如图8所示,本实 施例所提供的页面的构建装置还可以进一步包括配置单元81,用于展现M个候选页面组件的标识,M为大于或等于N的整数;采集输入设备所输入的操作指令;根据所述操作指令,从M个候选页面组件的标识中,选择一个候选页面组件的标识,以将所述一个候选页面组件作为目标页面组件;展现所述目标页面组件的配置页面;采集所述输入设备在所述配置页面中输入的组件配置信息;以及对所述目标页面组件的标识信息、所述目标页面组件的组件配置信息的标识信息和所述目标页面组件的组件配置信息,进行存储处理。Optionally, in a possible implementation manner of this embodiment, as shown in FIG. The apparatus for constructing the page provided by the embodiment may further include a configuration unit 81 for displaying the identifiers of the M candidate page components, M being an integer greater than or equal to N; collecting an operation instruction input by the input device; The instruction, from the identifiers of the M candidate page components, select an identifier of the candidate page component to use the one candidate page component as the target page component; display the configuration page of the target page component; and collect the input device in the The component configuration information input in the configuration page; and the identification information of the target page component, the identification information of the component configuration information of the target page component, and the component configuration information of the target page component are stored.
进一步可选地,所述配置单元81,还可以进一步用于根据所述页面的标识信息,获取所述页面的初始源代码;根据所述页面的初始源代码,展现所述页面;根据所述操作指令,将M个候选页面组件的标识中的一个候选页面组件的标识移动到所述页面中的指定位置;根据所述一个候选页面组件的标识信息,获得所述一个候选页面组件的模板源代码;以及根据所述一个候选页面组件的模板源代码,在所述指定位置,展现所述一个候选页面组件的组件模板。Further, the configuration unit 81 may be further configured to: obtain an initial source code of the page according to the identifier information of the page; and display the page according to an initial source code of the page; An operation instruction, moving an identifier of one candidate page component of the identifiers of the M candidate page components to a specified position in the page; obtaining a template source of the one candidate page component according to the identifier information of the one candidate page component And displaying a component template of the one candidate page component at the specified location according to the template source code of the one candidate page component.
进一步可选地,所述配置单元81,还可以进一步用于根据所述一个候选页面组件的模板源代码和所述一个候选页面组件的组件配置信息的标识信息,获得所述一个候选页面组件的页面源代码;以及根据所述一个候选页面组件的页面源代码,在所述指定位置,展现所述一个候选页面组件的组件实例。Further, the configuration unit 81 may be further configured to obtain, according to the template source code of the one candidate page component and the identifier information of the component configuration information of the one candidate page component, the one candidate page component is obtained. a page source code; and a component instance of the one candidate page component is presented at the specified location according to the page source code of the one candidate page component.
其中,所述操作指令可以包括但不限于点击操作指令或拖拽操作指令,本实施例对此不进行特别限定。The operation instruction may include, but is not limited to, a click operation instruction or a drag operation instruction, which is not specifically limited in this embodiment.
需要说明的是,图1对应的实施例中方法,可以由本实施例提供的 页面的构建装置实现。详细描述可以参见图1对应的实施例中的相关内容,此处不再赘述。It should be noted that the method in the embodiment corresponding to FIG. 1 can be provided by the embodiment. The construction of the page is implemented. For details, refer to related content in the embodiment corresponding to FIG. 1, and details are not described herein again.
本实施例中,通过获取单元获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数,进而由渲染单元根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码,使得拼装单元能够根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码,由于根据页面的页面组件数据自动生成页面的页面源代码,开发人员只需要预先配置页面组件的页面源代码,无需预先配置模板页面的页面源代码,从而提高了页面的开发效率。In this embodiment, the page component data of the page is acquired by the obtaining unit, where the page component data includes identification information of each target page component of the N target page components, and identifier information of component configuration information of each target page component. And N pieces of target page component assembly information, N is an integer greater than or equal to 1, and further, the rendering unit is configured according to the identification information of each target page component and the identification information of component configuration information of each target page component. Obtaining a page source code of each target page component, so that the assembling unit is capable of assembling the page source code of each target page component according to the assembling information to generate a page source code of the page, According to the page component data of the page, the page source code of the page is automatically generated. The developer only needs to pre-configure the page source code of the page component, and does not need to pre-configure the page source code of the template page, thereby improving the development efficiency of the page.
另外,采用本发明提供的技术方案,由于根据页面的页面组件数据自动生成页面的页面源代码,开发人员只需要预先配置页面组件的页面源代码,无需预先配置模板页面的页面源代码,能够节省页面的开发成本。In addition, according to the technical solution provided by the present invention, since the page source code of the page is automatically generated according to the page component data of the page, the developer only needs to pre-configure the page source code of the page component, and does not need to pre-configure the page source code of the template page, thereby saving The development cost of the page.
另外,采用本发明提供的技术方案,针对待发布信息的发布需求变化的情况,开发人员只需要重新配置页面组件的页面源代码,无需重新配置模板页面的页面源代码,能够进一步提高页面的开发效率,以及还能够进一步降低页面的开发成本。In addition, according to the technical solution provided by the present invention, the developer only needs to reconfigure the page source code of the page component, and the page source code of the template page does not need to be reconfigured, thereby further improving the page development. Efficiency, and can further reduce the development cost of the page.
另外,采用本发明提供的技术方案,通过采集输入设备所输入的操作指令,进而根据所述操作指令,从M个候选页面组件的标识中,选择一个候选页面组件的标识,以将所述一个候选页面组件作为组成页面组 件数据中的一个目标页面组件,由于不再完全依赖固定内容的模板页面进行页面的构建,而是结合输入设备所输入的操作指令进行页面的构建,使得所构建的页面能够基本满足用户构建页面的真正意图,因此,能够避免现有技术中由于用户通过指定应用反复进行模板页面的调整而导致的增加应用与服务器之间的数据交互的问题,从而降低了服务器的处理负担。In addition, by using the technical solution provided by the present invention, by collecting an operation instruction input by the input device, and according to the operation instruction, selecting an identifier of the candidate page component from the identifiers of the M candidate page components, to Candidate page component as a component page group A target page component in the piece of data, because the template page of the fixed content is no longer completely dependent on the construction of the page, but the operation of the input device is used to construct the page, so that the constructed page can basically satisfy the user to build the page. The real intention is to avoid the problem of increasing the data interaction between the application and the server caused by the user repeatedly adjusting the template page by specifying the application in the prior art, thereby reducing the processing load of the server.
另外,采用本发明提供的技术方案,由于不再完全依赖固定内容的模板页面进行页面的构建,而是结合输入设备所输入的操作指令进行页面的构建,使得所构建的页面能够基本满足用户构建页面的真正意图,因此,能够有效提高页面构建的有效性。In addition, with the technical solution provided by the present invention, since the template page of the fixed content is no longer completely dependent on the construction of the page, the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction. The true intent of the page, therefore, can effectively improve the effectiveness of page construction.
另外,采用本发明提供的技术方案,由于不再完全依赖固定内容的模板页面进行页面的构建,而是结合输入设备所输入的操作指令进行页面的构建,使得所构建的页面能够基本满足用户构建页面的真正意图,因此,能够有效提高页面构建的效率。In addition, with the technical solution provided by the present invention, since the template page of the fixed content is no longer completely dependent on the construction of the page, the page is constructed in conjunction with the operation instruction input by the input device, so that the constructed page can basically satisfy the user's construction. The true intent of the page, therefore, can effectively improve the efficiency of page construction.
图9为本发明另一实施例提供的页面的构建系统的结构示意图,如图9所示。本实施例的页面的构建系统可以包括页面组件平台91和图7或图8对应的实施例所提供的页面的构建装置92。其中,所述页面组件平台91,用于接收所述页面的构建装置92发送的所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息;根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;以及向所述页面的构建装置92发送所述页面组件平台发送的所述每个目标页面组件的页面源代码。 FIG. 9 is a schematic structural diagram of a page construction system according to another embodiment of the present invention, as shown in FIG. 9. The construction system of the page of this embodiment may include the page component platform 91 and the construction means 92 of the page provided by the embodiment corresponding to FIG. 7 or FIG. The page component platform 91 is configured to receive identification information of each target page component sent by the construction device 92 of the page, and identification information of component configuration information of each target page component; Identification information of each target page component and identification information of component configuration information of each target page component, obtaining page source code of each target page component; and transmitting the page to the construction device 92 of the page The page source code of each of the target page components sent by the component platform.
所述页面的构建装置92的详细描述可以参见图7或图8对应的实施例中的相关内容,此处不再赘述。For a detailed description of the construction device 92 of the page, refer to related content in the embodiment corresponding to FIG. 7 or FIG. 8 , and details are not described herein again.
可选地,在本实施例的一个可能的实现方式中,所述页面组件平台91,具体可以用于根据所述每个目标页面组件的标识信息,获得所述每个目标页面组件的模板源代码;根据所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的组件配置信息;以及根据所述模板源代码和所述每个目标页面组件的组件配置信息,获得所述每个目标页面组件的页面源代码。Optionally, in a possible implementation manner of the embodiment, the page component platform 91 is specifically configured to obtain a template source of each target page component according to the identification information of each target page component. a code; obtaining, according to the identification information of the component configuration information of each target page component, component configuration information of each of the target page components; and component configuration information according to the template source code and the each target page component Get the page source code of each target page component.
可选地,在本实施例的一个可能的实现方式中,所述页面组件平台91,还可以进一步用于对所述每个目标页面组件的标识信息和所述每个目标页面组件的模板源代码,进行存储处理。Optionally, in a possible implementation manner of the embodiment, the page component platform 91 may further be used to identify information about each target page component and a template source of each target page component. Code, for storage processing.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或页面组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or page components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, The components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (21)

  1. 一种页面的构建方法,其特征在于,包括:A method for constructing a page, comprising:
    获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数;Obtaining page component data of the page, the page component data includes identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and assembly of N target page components Information, N is an integer greater than or equal to 1;
    根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;Obtaining, according to the identification information of each target page component and the identification information of component configuration information of each target page component, a page source code of each target page component;
    根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码。According to the assembly information, the page source code of each target page component is assembled to generate a page source code of the page.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码,包括:The method according to claim 1, wherein the each target page component is obtained according to the identification information of each target page component and the identification information of the component configuration information of each target page component. Page source code, including:
    向页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,以使得所述页面组件平台根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;Sending, to the page component platform, the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components, so that the page component platform is based on the identification information of each of the target page components and The identification information of the component configuration information of each target page component is obtained by obtaining the page source code of each target page component;
    接收所述页面组件平台发送的所述每个目标页面组件的页面源代码。Receiving page source code of each of the target page components sent by the page component platform.
  3. 根据权利要求2所述的方法,其特征在于,所述向页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,包括:The method according to claim 2, wherein the sending the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components to the page component platform comprises:
    依次向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息;或者 And sending, to the page component platform, identification information of each target page component and identification information of component configuration information of each target page component; or
    同时向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息。At the same time, the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components are sent to the page component platform.
  4. 根据权利要求1~3任一权利要求所述的方法,其特征在于,所述获取页面的页面组件数据之前,还包括:The method according to any one of claims 1 to 3, wherein before the obtaining the page component data of the page, the method further comprises:
    展现M个候选页面组件的标识,M为大于或等于N的整数;Showing the identifiers of the M candidate page components, where M is an integer greater than or equal to N;
    采集输入设备所输入的操作指令;Collecting operation instructions input by the input device;
    根据所述操作指令,从M个候选页面组件的标识中,选择一个候选页面组件的标识,以将所述一个候选页面组件作为目标页面组件;Selecting, according to the operation instruction, an identifier of a candidate page component from the identifiers of the M candidate page components, to use the one candidate page component as the target page component;
    展现所述目标页面组件的配置页面;Presenting a configuration page of the target page component;
    采集所述输入设备在所述配置页面中输入的组件配置信息;Collecting component configuration information input by the input device in the configuration page;
    对所述目标页面组件的标识信息、所述目标页面组件的组件配置信息的标识信息和所述目标页面组件的组件配置信息,进行存储处理。Performing storage processing on the identification information of the target page component, the identification information of the component configuration information of the target page component, and the component configuration information of the target page component.
  5. 根据权利要求4所述的方法,其特征在于,所述获取页面的页面组件数据之前,还包括:The method according to claim 4, wherein before the obtaining the page component data of the page, the method further comprises:
    根据所述页面的标识信息,获取所述页面的初始源代码;Obtaining an initial source code of the page according to the identification information of the page;
    根据所述页面的初始源代码,展现所述页面;Presenting the page according to an initial source code of the page;
    根据所述操作指令,将M个候选页面组件的标识中的一个候选页面组件的标识移动到所述页面中的指定位置;And moving, according to the operation instruction, an identifier of one candidate page component of the identifiers of the M candidate page components to a specified position in the page;
    根据所述一个候选页面组件的标识信息,获得所述一个候选页面组件的模板源代码;Obtaining a template source code of the one candidate page component according to the identifier information of the one candidate page component;
    根据所述一个候选页面组件的模板源代码,在所述指定位置,展现所述一个候选页面组件的组件模板。And displaying, according to the template source code of the one candidate page component, a component template of the one candidate page component at the specified location.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述一个候 选页面组件的模板源代码,在所述指定位置,展现所述一个候选页面组件的组件模板同时或之后,还包括:The method according to claim 5, wherein said one is based on said one Selecting a template source code of the page component, at the specified position, displaying the component template of the one candidate page component simultaneously or after, further comprising:
    根据所述一个候选页面组件的模板源代码和所述一个候选页面组件的组件配置信息的标识信息,获得所述一个候选页面组件的页面源代码;Obtaining a page source code of the one candidate page component according to the template source code of the one candidate page component and the identification information of the component configuration information of the one candidate page component;
    根据所述一个候选页面组件的页面源代码,在所述指定位置,展现所述一个候选页面组件的组件实例。Deriving a component instance of the one candidate page component at the specified location according to the page source code of the one candidate page component.
  7. 根据权利要求4~6任一权利要求所述的方法,其特征在于,所述操作指令包括点击操作指令或拖拽操作指令。The method according to any one of claims 4 to 6, wherein the operation instruction comprises a click operation instruction or a drag operation instruction.
  8. 根据权利要求1~7任一权利要求所述的方法,其特征在于,所述页面组件包括至少一个页面元素。The method of any of claims 1-7, wherein the page component comprises at least one page element.
  9. 一种页面的构建装置,其特征在于,包括:A device for constructing a page, comprising:
    获取单元,用于获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数;An obtaining unit, configured to acquire page component data of a page, where the page component data includes identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and N The assembly information of the target page component, N is an integer greater than or equal to 1;
    渲染单元,用于根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;a rendering unit, configured to obtain, according to the identification information of each target page component and the identification information of component configuration information of each target page component, a page source code of each target page component;
    拼装单元,用于根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码。The assembling unit is configured to assemble the page source code of each target page component according to the assembling information to generate a page source code of the page.
  10. 根据权利要求9所述的装置,其特征在于,所述渲染单元,具体用于The apparatus according to claim 9, wherein the rendering unit is specifically configured to
    向页面组件平台发送所述每个目标页面组件的标识信息和所述每个 目标页面组件的组件配置信息的标识信息,以使得所述页面组件平台根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;以及Sending identification information of each of the target page components to the page component platform and each of the The identification information of the component configuration information of the target page component, so that the page component platform obtains the each according to the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components The page source code of the target page component;
    接收所述页面组件平台发送的所述每个目标页面组件的页面源代码。Receiving page source code of each of the target page components sent by the page component platform.
  11. 根据权利要求10所述的装置,其特征在于,所述渲染单元,具体用于The device according to claim 10, wherein the rendering unit is specifically configured to
    依次向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息;或者And sending, to the page component platform, identification information of each target page component and identification information of component configuration information of each target page component; or
    同时向所述页面组件平台发送所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息。At the same time, the identification information of each of the target page components and the identification information of the component configuration information of each of the target page components are sent to the page component platform.
  12. 根据权利要求9~11任一权利要求所述的装置,其特征在于,所述装置还包括配置单元,用于The device according to any one of claims 9 to 11, wherein the device further comprises a configuration unit for
    展现M个候选页面组件的标识,M为大于或等于N的整数;Showing the identifiers of the M candidate page components, where M is an integer greater than or equal to N;
    采集输入设备所输入的操作指令;Collecting operation instructions input by the input device;
    根据所述操作指令,从M个候选页面组件的标识中,选择一个候选页面组件的标识,以将所述一个候选页面组件作为目标页面组件;Selecting, according to the operation instruction, an identifier of a candidate page component from the identifiers of the M candidate page components, to use the one candidate page component as the target page component;
    展现所述目标页面组件的配置页面;Presenting a configuration page of the target page component;
    采集所述输入设备在所述配置页面中输入的组件配置信息;以及Collecting component configuration information input by the input device in the configuration page;
    对所述目标页面组件的标识信息、所述目标页面组件的组件配置信息的标识信息和所述目标页面组件的组件配置信息,进行存储处理。Performing storage processing on the identification information of the target page component, the identification information of the component configuration information of the target page component, and the component configuration information of the target page component.
  13. 根据权利要求12所述的装置,其特征在于,所述配置单元,还用于The device according to claim 12, wherein said configuration unit is further configured to
    根据所述页面的标识信息,获取所述页面的初始源代码; Obtaining an initial source code of the page according to the identification information of the page;
    根据所述页面的初始源代码,展现所述页面;Presenting the page according to an initial source code of the page;
    根据所述操作指令,将M个候选页面组件的标识中的一个候选页面组件的标识移动到所述页面中的指定位置;And moving, according to the operation instruction, an identifier of one candidate page component of the identifiers of the M candidate page components to a specified position in the page;
    根据所述一个候选页面组件的标识信息,获得所述一个候选页面组件的模板源代码;以及Obtaining template source code of the one candidate page component according to the identifier information of the one candidate page component;
    根据所述一个候选页面组件的模板源代码,在所述指定位置,展现所述一个候选页面组件的组件模板。And displaying, according to the template source code of the one candidate page component, a component template of the one candidate page component at the specified location.
  14. 根据权利要求13所述的装置,其特征在于,所述配置单元,还用于The apparatus according to claim 13, wherein said configuration unit is further configured to
    根据所述一个候选页面组件的模板源代码和所述一个候选页面组件的组件配置信息的标识信息,获得所述一个候选页面组件的页面源代码;以及Obtaining a page source code of the one candidate page component according to the template source code of the one candidate page component and the identification information of component configuration information of the one candidate page component;
    根据所述一个候选页面组件的页面源代码,在所述指定位置,展现所述一个候选页面组件的组件实例。Deriving a component instance of the one candidate page component at the specified location according to the page source code of the one candidate page component.
  15. 根据权利要求12~14任一权利要求所述的装置,其特征在于,所述操作指令包括点击操作指令或拖拽操作指令。The apparatus according to any one of claims 12 to 14, wherein the operation instruction comprises a click operation instruction or a drag operation instruction.
  16. 根据权利要求9~15任一权利要求所述的装置,其特征在于,所述页面组件包括至少一个页面元素。Apparatus according to any of claims 9-15, wherein said page component comprises at least one page element.
  17. 一种页面的构建系统,其特征在于,包括页面组件平台和权利要求9~16任一权利要求所述的页面的构建装置;其中,A page construction system, comprising: a page component platform and a device for constructing a page according to any one of claims 9 to 16; wherein
    所述页面组件平台,用于The page component platform for
    接收所述页面的构建装置发送的所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息; Receiving identification information of each target page component sent by the constructing device of the page and identification information of component configuration information of each target page component;
    根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;以及Obtaining, according to the identification information of each target page component and the identification information of the component configuration information of each target page component, the page source code of each target page component;
    向所述页面的构建装置发送所述页面组件平台发送的所述每个目标页面组件的页面源代码。Sending a page source code of each of the target page components sent by the page component platform to a build device of the page.
  18. 根据权利要求17所述的系统,其特征在于,所述页面组件平台,具体用于The system according to claim 17, wherein said page component platform is specifically for
    根据所述每个目标页面组件的标识信息,获得所述每个目标页面组件的模板源代码;Obtaining template source code of each target page component according to the identification information of each target page component;
    根据所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的组件配置信息;以及Obtaining component configuration information of each of the target page components according to the identification information of the component configuration information of each target page component;
    根据所述模板源代码和所述每个目标页面组件的组件配置信息,获得所述每个目标页面组件的页面源代码。And obtaining page source code of each target page component according to the template source code and component configuration information of each target page component.
  19. 根据权利要求17或18所述的系统,其特征在于,所述页面组件平台,还用于A system according to claim 17 or 18, wherein said page component platform is further
    对所述每个目标页面组件的标识信息和所述每个目标页面组件的模板源代码,进行存储处理。The storage processing is performed on the identification information of each of the target page components and the template source code of each of the target page components.
  20. 一种设备,包括:A device that includes:
    一个或者多个处理器;One or more processors;
    存储器;Memory
    一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时:One or more programs, the one or more programs being stored in the memory, when executed by the one or more processors:
    获取页面的页面组件数据,所述页面组件数据包括N个目标页面组 件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数;Obtaining page component data of the page, the page component data including N target page groups Identification information of each target page component in the piece, identification information of component configuration information of each target page component, and assembly information of N target page components, N being an integer greater than or equal to 1;
    根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;Obtaining, according to the identification information of each target page component and the identification information of component configuration information of each target page component, a page source code of each target page component;
    根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码。According to the assembly information, the page source code of each target page component is assembled to generate a page source code of the page.
  21. 一种非易失性计算机存储介质,所述非易失性计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备:A non-volatile computer storage medium storing one or more programs, when the one or more programs are executed by a device, causing the device to:
    获取页面的页面组件数据,所述页面组件数据包括N个目标页面组件中每个目标页面组件的标识信息、所述每个目标页面组件的组件配置信息的标识信息和N个目标页面组件的拼装信息,N为大于或等于1的整数;Obtaining page component data of the page, the page component data includes identification information of each target page component of the N target page components, identification information of component configuration information of each target page component, and assembly of N target page components Information, N is an integer greater than or equal to 1;
    根据所述每个目标页面组件的标识信息和所述每个目标页面组件的组件配置信息的标识信息,获得所述每个目标页面组件的页面源代码;Obtaining, according to the identification information of each target page component and the identification information of component configuration information of each target page component, a page source code of each target page component;
    根据所述拼装信息,对所述每个目标页面组件的页面源代码进行拼装处理,以生成所述页面的页面源代码。 According to the assembly information, the page source code of each target page component is assembled to generate a page source code of the page.
PCT/CN2014/093749 2014-07-28 2014-12-12 Page construction method, apparatus, system and device, and nonvolatile computer storage medium WO2016015432A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410364136.0 2014-07-28
CN201410364136.0A CN104142826A (en) 2014-07-28 2014-07-28 Method, device and system for constructing page

Publications (1)

Publication Number Publication Date
WO2016015432A1 true WO2016015432A1 (en) 2016-02-04

Family

ID=51852008

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/093749 WO2016015432A1 (en) 2014-07-28 2014-12-12 Page construction method, apparatus, system and device, and nonvolatile computer storage medium

Country Status (2)

Country Link
CN (1) CN104142826A (en)
WO (1) WO2016015432A1 (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110610343A (en) * 2018-06-15 2019-12-24 马上消费金融股份有限公司 Business process generation method and device and storage medium
CN110990008A (en) * 2019-11-28 2020-04-10 北京三快在线科技有限公司 Method, device, storage medium and electronic equipment for updating page
CN111124390A (en) * 2019-12-17 2020-05-08 东软集团股份有限公司 Rechecking page generation method and device, storage medium and electronic equipment
CN111367507A (en) * 2020-03-11 2020-07-03 上海东普信息科技有限公司 Page code generation method, device, equipment and storage medium
CN111399823A (en) * 2020-02-28 2020-07-10 山东浪潮商用系统有限公司 Page component layout method, system and foreground terminal
CN112035117A (en) * 2020-08-27 2020-12-04 北京三快在线科技有限公司 Page display system, method and device
CN112214708A (en) * 2020-10-21 2021-01-12 北京五八信息技术有限公司 Page generation method and device, electronic equipment and computer readable medium
CN112416348A (en) * 2020-12-02 2021-02-26 车智互联(北京)科技有限公司 Page generation method and system and computing equipment
CN112631580A (en) * 2019-09-24 2021-04-09 阿里巴巴集团控股有限公司 Data processing method and device and computing equipment
CN113138760A (en) * 2021-04-29 2021-07-20 北京百度网讯科技有限公司 Page generation method and device, electronic equipment and medium
CN113407879A (en) * 2020-03-16 2021-09-17 北京搜狗科技发展有限公司 Data reporting method, device and readable medium
CN113407168A (en) * 2021-06-07 2021-09-17 远光软件股份有限公司 Editing method and device of page elements, storage medium and terminal
CN113900755A (en) * 2021-10-11 2022-01-07 重庆紫光华山智安科技有限公司 Alarm page processing method and device, computer equipment and readable storage medium
CN115098213A (en) * 2022-07-15 2022-09-23 北京有竹居网络技术有限公司 Data processing method and device, electronic equipment and storage medium
CN115328751A (en) * 2022-08-10 2022-11-11 北京同创永益科技发展有限公司 Method for dynamically constructing observation page for chaos engineering experiment
CN117421000A (en) * 2023-09-06 2024-01-19 北京饼干科技有限公司 Method, device, electronic equipment and storage medium for generating distribution webpage
CN117421000B (en) * 2023-09-06 2024-06-04 北京饼干科技有限公司 Method, device, electronic equipment and storage medium for generating distribution webpage

Families Citing this family (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142826A (en) * 2014-07-28 2014-11-12 百度在线网络技术(北京)有限公司 Method, device and system for constructing page
CN104462545B (en) * 2014-12-24 2017-12-19 国家电网公司 A kind of page building method and device based on three layer model
CN106202096A (en) * 2015-05-05 2016-12-07 阿里巴巴集团控股有限公司 Customer terminal webpage rendering intent and device
CN104809240B (en) * 2015-05-13 2018-06-19 广州华多网络科技有限公司 A kind of page processing method and its equipment
CN104932889B (en) * 2015-06-15 2018-10-09 北京奇虎科技有限公司 Page visualized generation method and device
CN105094683A (en) * 2015-06-30 2015-11-25 北京金山安全软件有限公司 Data display method and device
CN105095445B (en) * 2015-07-24 2019-06-04 北京奇虎科技有限公司 A kind of page generation method and system
CN106708480B (en) * 2015-07-29 2021-02-26 腾讯科技(深圳)有限公司 Management platform implementation method and device
CN106547529A (en) * 2015-09-23 2017-03-29 百度在线网络技术(北京)有限公司 Page makeup method and device
CN106610826B (en) * 2015-10-23 2020-04-21 腾讯科技(深圳)有限公司 Method and device for manufacturing online scene application
CN107168969B (en) * 2016-03-07 2021-07-20 北京搜狗科技发展有限公司 Page element control method and device and electronic equipment
CN107193815B (en) * 2016-03-14 2021-03-12 阿里巴巴集团控股有限公司 Page code processing method, device and equipment
CN106201459B (en) * 2016-06-24 2019-08-23 武汉斗鱼网络科技有限公司 A kind of method and system of rapid build special topic landing page
CN106021617B (en) * 2016-07-12 2018-09-28 腾讯科技(深圳)有限公司 The method and apparatus that the page generates
CN106446283A (en) * 2016-10-27 2017-02-22 腾讯科技(深圳)有限公司 Page style generating method and device
CN106648630A (en) * 2016-12-01 2017-05-10 北京趣拿软件科技有限公司 Page obtaining method and device
CN106873965A (en) * 2016-12-25 2017-06-20 北京通途永久科技有限公司 A kind of method suitable for the monitoring service class application dynamic construction page
CN108255847B (en) * 2016-12-28 2021-03-26 腾讯科技(深圳)有限公司 Page generation method and device
CN108469970B (en) * 2017-02-17 2021-09-14 阿里巴巴集团控股有限公司 Page tab information processing method and device
CN107273127A (en) * 2017-06-15 2017-10-20 浪潮软件集团有限公司 Method and device for realizing page plug-in web application
CN107451184A (en) * 2017-06-19 2017-12-08 阿里巴巴集团控股有限公司 Page display method and device, user equipment, storage medium
CN108255485B (en) * 2017-09-22 2021-10-29 阿里巴巴(中国)有限公司 Page construction method and equipment and electronic equipment
CN107729005A (en) * 2017-10-12 2018-02-23 福建富士通信息软件有限公司 A kind of visualization business interface Dynamic Configuration based on H5
CN107678739A (en) * 2017-10-20 2018-02-09 温州市捷点信息技术有限公司 A kind of Web Hosting system and method
CN109857473A (en) * 2017-11-29 2019-06-07 北京京东尚科信息技术有限公司 A kind of loading method and device of page data
CN108090159A (en) * 2017-12-12 2018-05-29 福建中金在线信息科技有限公司 A kind of generation method of Website page, device, electronic equipment and storage medium
CN109960491A (en) * 2017-12-26 2019-07-02 北京金山云网络技术有限公司 Application program generation method, generating means, electronic equipment and storage medium
CN108762758A (en) * 2018-05-23 2018-11-06 北京五八信息技术有限公司 A kind of display methods of page field, device, storage medium and terminal
CN108874384B (en) * 2018-05-31 2023-06-02 康键信息技术(深圳)有限公司 Terminal device, server, web page data processing method, and computer storage medium
CN109508191B (en) * 2018-11-22 2022-03-22 北京腾云天下科技有限公司 Code generation method and system
CN109901838B (en) * 2019-01-17 2024-05-28 平安证券股份有限公司 Front-end development method, device, equipment and storage medium based on componentization
CN110489118A (en) * 2019-05-13 2019-11-22 杭州米雅信息科技有限公司 Webpage generating method, device, system and computer readable storage medium
CN110515691A (en) * 2019-08-29 2019-11-29 北京明略软件系统有限公司 The display methods and device of parameter information, storage medium, processor
CN110673839B (en) * 2019-09-10 2023-11-07 口碑(上海)信息技术有限公司 Distributed tool configuration construction generation method and system
CN112579068A (en) * 2019-09-30 2021-03-30 北京国双科技有限公司 Code generation method, device, storage medium and equipment
CN110825374A (en) * 2019-11-04 2020-02-21 泰康保险集团股份有限公司 Page generation method and device based on component, electronic equipment and storage medium
CN110909280A (en) * 2019-11-20 2020-03-24 杭州端点网络科技有限公司 Internet software web application page decoration system
CN111079047B (en) * 2019-11-28 2020-09-15 蜂助手股份有限公司 Web-oriented page construction system
CN111142735B (en) * 2019-12-10 2021-06-29 深圳市优必选科技股份有限公司 Software page creating method and device, terminal equipment and storage medium
CN111045653B (en) * 2019-12-16 2022-01-07 京东科技控股股份有限公司 System generation method and device, computer readable medium and electronic equipment
CN111626034B (en) * 2020-05-27 2021-04-30 南京蓝鲸人网络科技有限公司 Nonlinear editing method more suitable for mobile terminal
CN113297521B (en) * 2021-04-30 2022-10-14 成都东方盛行电子有限责任公司 Visual station building method and system
CN113806659A (en) * 2021-09-16 2021-12-17 大连华信计算机技术股份有限公司 WYSIWYG portal custom site system and operation method
CN114647809A (en) * 2022-03-18 2022-06-21 浙江出海数字技术有限公司 Software service system
CN115826950B (en) * 2022-11-24 2023-09-12 内蒙古欣荣惠信息技术有限公司 Online form page development application system and data processing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207872A (en) * 2011-06-04 2011-10-05 中国移动通信集团内蒙古有限公司 Method and system for customizing Web UI (User Interface) control according to user requirements
CN102520960A (en) * 2011-12-21 2012-06-27 珠海许继芝电网自动化有限公司 Interface automatic generating system and interface automatic generating method
CN102637184A (en) * 2011-02-15 2012-08-15 北京千橡网景科技发展有限公司 Method and system for customizing webpages
CN102662993A (en) * 2012-03-14 2012-09-12 北京神州数码思特奇信息技术股份有限公司 A method for providing page data
CN104142826A (en) * 2014-07-28 2014-11-12 百度在线网络技术(北京)有限公司 Method, device and system for constructing page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102637184A (en) * 2011-02-15 2012-08-15 北京千橡网景科技发展有限公司 Method and system for customizing webpages
CN102207872A (en) * 2011-06-04 2011-10-05 中国移动通信集团内蒙古有限公司 Method and system for customizing Web UI (User Interface) control according to user requirements
CN102520960A (en) * 2011-12-21 2012-06-27 珠海许继芝电网自动化有限公司 Interface automatic generating system and interface automatic generating method
CN102662993A (en) * 2012-03-14 2012-09-12 北京神州数码思特奇信息技术股份有限公司 A method for providing page data
CN104142826A (en) * 2014-07-28 2014-11-12 百度在线网络技术(北京)有限公司 Method, device and system for constructing page

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110610343A (en) * 2018-06-15 2019-12-24 马上消费金融股份有限公司 Business process generation method and device and storage medium
CN112631580A (en) * 2019-09-24 2021-04-09 阿里巴巴集团控股有限公司 Data processing method and device and computing equipment
CN110990008B (en) * 2019-11-28 2023-06-30 北京三快在线科技有限公司 Page updating method and device, storage medium and electronic equipment
CN110990008A (en) * 2019-11-28 2020-04-10 北京三快在线科技有限公司 Method, device, storage medium and electronic equipment for updating page
CN111124390A (en) * 2019-12-17 2020-05-08 东软集团股份有限公司 Rechecking page generation method and device, storage medium and electronic equipment
CN111399823A (en) * 2020-02-28 2020-07-10 山东浪潮商用系统有限公司 Page component layout method, system and foreground terminal
CN111399823B (en) * 2020-02-28 2023-11-24 浪潮软件科技有限公司 Page component layout method, system and foreground terminal
CN111367507A (en) * 2020-03-11 2020-07-03 上海东普信息科技有限公司 Page code generation method, device, equipment and storage medium
CN113407879A (en) * 2020-03-16 2021-09-17 北京搜狗科技发展有限公司 Data reporting method, device and readable medium
CN113407879B (en) * 2020-03-16 2024-04-30 北京搜狗科技发展有限公司 Data reporting method, device and readable medium
CN112035117A (en) * 2020-08-27 2020-12-04 北京三快在线科技有限公司 Page display system, method and device
CN112214708A (en) * 2020-10-21 2021-01-12 北京五八信息技术有限公司 Page generation method and device, electronic equipment and computer readable medium
CN112416348B (en) * 2020-12-02 2024-04-12 车智互联(北京)科技有限公司 Page generation method, system and computing device
CN112416348A (en) * 2020-12-02 2021-02-26 车智互联(北京)科技有限公司 Page generation method and system and computing equipment
CN113138760A (en) * 2021-04-29 2021-07-20 北京百度网讯科技有限公司 Page generation method and device, electronic equipment and medium
CN113138760B (en) * 2021-04-29 2024-03-12 北京百度网讯科技有限公司 Page generation method and device, electronic equipment and medium
CN113407168A (en) * 2021-06-07 2021-09-17 远光软件股份有限公司 Editing method and device of page elements, storage medium and terminal
CN113900755A (en) * 2021-10-11 2022-01-07 重庆紫光华山智安科技有限公司 Alarm page processing method and device, computer equipment and readable storage medium
CN113900755B (en) * 2021-10-11 2024-04-16 重庆紫光华山智安科技有限公司 Alarm page processing method and device, computer equipment and readable storage medium
CN115098213A (en) * 2022-07-15 2022-09-23 北京有竹居网络技术有限公司 Data processing method and device, electronic equipment and storage medium
CN115328751B (en) * 2022-08-10 2023-03-14 北京同创永益科技发展有限公司 Method for dynamically constructing observation page for chaos engineering experiment
CN115328751A (en) * 2022-08-10 2022-11-11 北京同创永益科技发展有限公司 Method for dynamically constructing observation page for chaos engineering experiment
CN117421000A (en) * 2023-09-06 2024-01-19 北京饼干科技有限公司 Method, device, electronic equipment and storage medium for generating distribution webpage
CN117421000B (en) * 2023-09-06 2024-06-04 北京饼干科技有限公司 Method, device, electronic equipment and storage medium for generating distribution webpage

Also Published As

Publication number Publication date
CN104142826A (en) 2014-11-12

Similar Documents

Publication Publication Date Title
WO2016015432A1 (en) Page construction method, apparatus, system and device, and nonvolatile computer storage medium
US11853728B2 (en) System integrating a mobile device application creation, editing and distribution system with a website design system
US11372935B2 (en) Automatically generating a website specific to an industry
KR101953303B1 (en) Identifying matching applications based on browsing activity
KR102185864B1 (en) Server-side rendering method and system of native content for presentation
US10140314B2 (en) Previews for contextual searches
CN105706080B (en) Augmenting and presenting captured data
US9002895B2 (en) Systems and methods for providing modular configurable creative units for delivery via intext advertising
US20130326333A1 (en) Mobile Content Management System
US9875284B1 (en) Displaying search completion results
US10169374B2 (en) Image searches using image frame context
RU2595524C2 (en) Device and method for processing content of web resource in browser
CN103246699A (en) Method and device for data access control based on browser
US20160191338A1 (en) Retrieving content from an application
CN107430609A (en) For the generation of the new Shipping Options Page of browser of corporate environment
WO2017049715A1 (en) Page construction method, apparatus and device, and nonvolatile computer storage medium
CN102142004B (en) Service processing method and service engine
JP4996504B2 (en) SBM server, registration screen generation method and program
CN107357796B (en) Network information acquisition method, equipment and programmable equipment
US20240086159A1 (en) System integrating a mobile device application creation, editing and distribution system with a website design system
US10223457B2 (en) Identification of distributed user interface (DUI) elements
CN113779469A (en) Website page modification method and device, electronic equipment and storage medium
KR20140058049A (en) Method for managing advertisement database in mobile environment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14898740

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14898740

Country of ref document: EP

Kind code of ref document: A1