CN116340689A - Website processing method and device - Google Patents

Website processing method and device Download PDF

Info

Publication number
CN116340689A
CN116340689A CN202310380394.7A CN202310380394A CN116340689A CN 116340689 A CN116340689 A CN 116340689A CN 202310380394 A CN202310380394 A CN 202310380394A CN 116340689 A CN116340689 A CN 116340689A
Authority
CN
China
Prior art keywords
website
editing
data structures
data structure
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310380394.7A
Other languages
Chinese (zh)
Inventor
韩露
邢一飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202310380394.7A priority Critical patent/CN116340689A/en
Publication of CN116340689A publication Critical patent/CN116340689A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The disclosure provides a processing method and device for website sites, and relates to the technical fields of data processing and computers. The specific implementation scheme is as follows: the website material is obtained according to website site generation requirements, and various data structures are constructed according to the website material, wherein different data structures are used for generating website sites of different types, website sites corresponding to the data structures are generated according to each data structure, generation of various website sites based on one set of website material can be achieved, namely, the processing device can obtain various website sites through one-time operation, display effects on different ends can be achieved through one-time operation, processing flexibility and diversity of the website sites are improved, and efficiency of generating various website sites can be improved.

Description

Website processing method and device
Technical Field
The present disclosure relates to the field of data processing and computer technologies, and in particular, to a method and an apparatus for processing a website.
Background
With the development of internet technology, processing (e.g., generating and/or updating) of website sites has become an important research direction.
In the related art, processing for website sites of different categories is in a "stand-alone processing" manner, such as generating website sites of one category at a time.
Disclosure of Invention
The present disclosure provides a website processing method and apparatus for improving the efficiency of website processing.
According to a first aspect of the present disclosure, there is provided a method for processing a website, including:
acquiring website materials according to website site generation requirements;
constructing a plurality of data structures according to the website materials, wherein different data structures are used for generating website sites of different categories;
and generating a website site corresponding to each data structure according to each data structure.
According to a second aspect of the present disclosure, there is provided a processing apparatus for a website, including:
the acquisition unit is used for acquiring website materials according to website site generation requirements;
the construction unit is used for constructing various data structures according to the website materials, wherein different data structures are used for generating website sites of different categories;
and the generating unit is used for generating a website site corresponding to each data structure according to each data structure.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method according to the first aspect.
According to a fifth aspect of the present disclosure, there is provided a computer program product comprising: a computer program stored in a readable storage medium, from which it can be read by at least one processor of an electronic device, the at least one processor executing the computer program causing the electronic device to perform the method of the first aspect.
The processing method and device for the website site provided by the disclosure comprise the following steps: the method comprises the steps of obtaining website materials according to website site generation requirements, constructing various data structures according to the website materials, wherein different data structures are used for generating website sites of different types, generating website sites corresponding to the data structures according to each data structure, and constructing various data structures based on the website materials to generate technical characteristics of the website sites corresponding to the different data structures respectively according to the different data structures.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present disclosure;
FIG. 2 is a schematic diagram according to a second embodiment of the present disclosure;
FIG. 3 is a schematic diagram of one embodiment according to the present disclosure;
FIG. 4 is a schematic diagram of another embodiment according to the present disclosure;
FIG. 5 is a schematic diagram according to a third embodiment of the present disclosure;
FIG. 6 is a schematic diagram according to a fourth embodiment of the present disclosure;
FIG. 7 is a schematic diagram according to a fifth embodiment of the present disclosure;
fig. 8 is a block diagram of an electronic device for implementing a method of processing a website site in accordance with an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The terms "comprising" and "having" and any variations thereof in this disclosure are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to those elements expressly listed but may include other elements not expressly listed or inherent to such product or apparatus.
For the convenience of the reader to understand the present disclosure, at least some of the terms involved in this disclosure are now explained as follows:
website site, which may be referred to simply as site (site), refers to information between the second and third slashes of the uniform resource locator (Uniform Resource Locator, URL), i.e., information between the second/third/of the URL.
Alternatively, a website site may simply be understood as a page of a website. Illustratively, a website site is typically a multi-page site, i.e., a site that includes multiple pages. For example, the plurality of pages may include: front page, detail page, floor page.
Website materials, which may be referred to simply as materials, refer to content displayed in pages of website sites.
A component, meaning a package of data and methods, may be understood as a group of data providing some operations to implement some simple functions. For example, button assemblies are used to implement the functions of buttons; the jump component is used to implement the function of jumping, etc., and is not listed here.
The data structure refers to a mode of storing and organizing data by a computer.
The processing method of the website site can be described from two dimensions, wherein one dimension is a generation dimension or a creation dimension, the generation process of the website site can be understood, and the other dimension is an update dimension or an edit dimension, and the update process of the website site which is generated can be understood.
In the related art, taking the generation process as an example, the generation processes for website sites of different categories are independent from each other, for example, website sites of category a and website sites of category B are website sites of two different categories, and website sites of category a and website sites of category B are constructed as two independent construction processes, and are not related to each other.
Similarly, the website of the update class A and the website of the update class B are formed by two independent constructions and are not related to each other.
That is, in the related art, only a certain website site can be independently operated at a time, but a "multi-website site" cannot be generated by one operation.
For example, if the website of the class a is a computer-side (PC, personal computer) website and the website of the class B is a hypertext 5.0 (HTML 5, H5) website of the mobile side, the PC website and the H5 website need to be respectively constructed, but the PC website and the H5 website cannot be constructed at one time, that is, the "double website" (including both the PC website and the H5 website) cannot be generated at one time.
Accordingly, when the update processing is required for the website site, the update processing is required for the PC website site alone, and the update processing is required for the H5 website site alone, that is, the update processing for the H5 website site cannot be adaptively performed on the basis of the update processing for the PC website site, and the update processing for the PC website site cannot be adaptively performed on the basis of the update processing for the H5 website site.
In order to avoid at least one of the above technical problems, the present disclosure proposes an inventive technical idea: multiple data structures for generating different types of website sites are constructed based on the same set of website materials, so that website sites corresponding to the data structures are generated for each data structure, and correspondingly, when one website site is updated, other website sites are adaptively adjusted based on the updating process and the data structures.
For example, based on the same set of website materials, the data structure of the H5 website site and the data structure of the PC website site are generated, for convenience of distinction, the data structure of the H5 website site may be referred to as an H5 data structure, and the data structure of the PC website site may be referred to as a PC data structure, so as to generate the H5 website site according to the H5 data structure, and generate the PC website site according to the PC data structure.
Accordingly, in the case where the H5 website site is updated, the PC website site can be adaptively updated based on the update processing of the H5 website site. Alternatively, in the case where the H5 website site is updated, the update process may be adaptively performed on the H5 website site based on the update process on the PC website site.
Based on the above inventive concept, the present disclosure provides a website processing method and apparatus, which are applied to data processing and computer technology, so as to generate a "multi-website" and improve efficiency and flexibility of website processing.
Fig. 1 is a schematic diagram according to a first embodiment of the present disclosure, and as shown in fig. 1, a processing method of a website site according to an embodiment of the present disclosure includes:
s101: and acquiring website materials according to website site generation requirements.
The execution body of the present embodiment may be a processing device (hereinafter simply referred to as a processing device) of a website, the processing device may be a server, may be a terminal device, may be a processor, may be a chip, or the like, which is not listed here.
For example, if the processing device is a server, the processing device may be an independent server or a server cluster; the server may be a cloud server (e.g. a server deployed on a cloud platform), or may be a local server, which is not limited in this embodiment.
The website site requirement refers to the requirement of generating website sites, such as content required to be displayed by the website sites. Accordingly, the website material may be understood as the obtained material meeting the website requirement, that is, the material meeting the website corresponding to the website requirement.
The following example implementations may be employed with respect to acquiring website materials:
in one example, the processing device may be coupled to the material collection device and receive web site material transmitted by the material collection device.
In another example, the processing device may provide a tool for loading website materials through which a user may transfer website materials to the processing device.
The tool for loading the website materials can be an interface for connecting with external equipment, such as an interface for connecting with other storage equipment, and the website materials transmitted by the external equipment are obtained through the interface; the tool for loading the website materials can also be a display device, for example, the processing device can input an interface for loading the website materials on the display device, a user can import the website materials to the processing device through the interface, and the processing device obtains the imported website materials.
S102: and constructing various data structures according to the website materials, wherein different data structures are used for generating website sites of different categories.
The number of data structures in this embodiment is not limited and may be determined based on requirements. The plurality of data structures is illustratively two data structures, but may be three or more data structures.
For example, the various data structures include: data structure 1 up to data structure N (N is a positive integer greater than or equal to 2). Accordingly, data structure 1 is used to generate class 1 website sites until data structure N is used to generate class N website sites N.
In combination with the above analysis, N may be equal to 2, and the two data structures are an H5 data structure and a PC data structure, respectively, the H5 data structure being used to generate an H5 website site and the PC data structure being used to generate a PC website site.
That is, in this embodiment, the website materials used for constructing multiple data structures are the same set of website materials, that is, multiple data structures can be constructed based on the same set of website materials, so as to adapt to generating website sites corresponding to the multiple data structures.
S103: and generating a website site corresponding to each data structure according to each data structure.
For example, if the data structure is an H5 data structure, an H5 website corresponding to the H5 data structure may be generated according to the H5 data structure, and a PC website corresponding to the PC data structure may be generated according to the PC data structure.
Based on the above analysis, the present disclosure provides a method for processing a website, including: the method comprises the steps of obtaining website materials according to website site generation requirements, constructing various data structures according to the website materials, wherein different data structures are used for generating website sites of different types, generating website sites corresponding to the data structures according to each data structure, and constructing various data structures based on the website materials to generate technical characteristics of the website sites corresponding to the different data structures respectively according to the different data structures.
To facilitate the reader's understanding of the present disclosure, the implementation principles of the present disclosure will now be described in detail in connection with fig. 2-4, taking the need to generate a "dual website site" comprising an H5 website site and a PC website site as an example. Wherein fig. 2 is a schematic diagram according to a second embodiment of the disclosure, and as shown in fig. 2, a processing method of a website site according to an embodiment of the disclosure includes:
S201: and acquiring website materials according to the website site generation requirements, wherein the website materials comprise the contents to be displayed of the pages.
It should be understood that, in order to avoid the cumbersome statement, the technical features of this embodiment that are the same as those of the above embodiment are not repeated.
For example, regarding the partial implementation principle of S201, reference may be made to S101 for description, which is not repeated here.
The content to be displayed of the page refers to content to be displayed of the page in the website corresponding to the website generation requirement.
S202: and generating each page to-be-displayed component and the association relation among the page to-be-displayed components according to the page to-be-displayed content.
The page to-be-displayed components are components required to be displayed in pages in website sites, the number of the components is multiple, and the specific number is determined based on website site generation requirements. Accordingly, there may be a sequential display relationship between the components to be displayed on each page, or there may also be a jump display relationship, which is not listed here, and these display relationships may be association relationships.
For example, the page to-be-displayed components include components 1 to M (M is a positive integer greater than or equal to 2), and the association relationship between the page to-be-displayed components may include: the component 1 is the first component.
S203: and respectively constructing an H5 data structure and a PC data structure according to the components to be displayed of each page and the association relation among the components to be displayed of each page.
The processing device may construct an H5 data structure according to the components to be displayed on each page and the association relationship between the components to be displayed on each page; and constructing a PC data structure according to the components to be displayed of each page and the association relation among the components to be displayed of each page.
That is, the contents for constructing the H5 data structure and the PC data structure are the same page components to be displayed, and the association relationship between the page components to be displayed, that is, the contents for constructing the H5 data structure and the PC data structure originate from the same set of website materials, so that by generating two different data structures based on the same set of materials at one time, the efficient generation of the "dual website site" is realized under the condition that the website sites corresponding to the two different data structures are generated.
In some embodiments, each data structure includes a material node that characterizes the components to be exposed for each page and a node attribute that characterizes the association between the components to be exposed for each page.
The H5 data structure comprises material nodes and node attributes, wherein the material nodes represent components to be displayed of each page, and the node attributes represent association relations among the components to be displayed of each page. The PC data structure comprises material nodes and node attributes, wherein the material nodes represent components to be displayed on each page, and the node attributes represent association relations among the components to be displayed on each page.
S204: and responding to the editing operation aiming at the target data structure, and updating the website sites corresponding to the data structures according to the editing operation.
Wherein the plurality of data structures includes a target data structure.
For example, the user may adaptively adjust the website based on the requirement, such as may adjust the sequence of component presentation, add components, delete components, modify components, etc., and the editing operation may be understood as an operation performed by the user on the target data structure based on the requirement.
The plurality of data structures includes a target data structure, which may be an H5 data structure or a PC data structure in the case that the plurality of data structures includes an H5 data structure and a PC data structure.
Correspondingly, if the target data structure is an H5 data structure, the processing device may update the website corresponding to the H5 data structure according to the editing operation for the user to edit the H5 data structure, and may update the website corresponding to the PC data structure according to the editing operation.
In this embodiment, in the case of an editing operation for one of the multiple data structures, the website sites corresponding to each data structure are adaptively updated according to the editing operation, so as to improve the comprehensiveness and efficiency of website site update.
In some embodiments, S204 may include the steps of:
a first step of: editing information corresponding to the editing operation is obtained.
The editing information may be understood as information corresponding to an editing operation by a user, such as content including editing of a target data structure by the user, and the like.
And a second step of: and editing the other data structures according to the editing information to obtain updated other data structures, and generating website sites corresponding to the updated other data structures.
Illustratively, the plurality of data structures includes a target data structure and other data structures, and in the case where the plurality of data structures includes an H5 data structure and a PC data structure, the other data structure is a PC data structure if the target data structure is an H5 data structure, whereas the other data structure is an H5 data structure if the target data structure is a PC data structure.
For example, if the target data structure is an H5 data structure and the other data structures are PC data structures, if the H5 data structure is edited by a user, the data device performs editing processing on the PC data structure according to editing information corresponding to the editing operation to obtain an updated PC data structure, and generates a website corresponding to the updated PC data structure based on the updated PC data structure to update the website corresponding to the PC data structure.
Similarly, in the case that the PC data structure is edited by the user, the data device performs editing processing on the H5 data structure according to editing information corresponding to the editing operation, so as to obtain an updated H5 data structure, and generates a website corresponding to the updated H5 data structure based on the updated H5 data structure, so as to update the website corresponding to the H5 data structure.
In this embodiment, other data structures are edited by combining editing information to obtain updated other data structures, and corresponding website sites are further updated, so that reliability and effectiveness of updating the website sites are improved.
In some embodiments, the editing information includes an editing component and editing content; the second step may comprise the following sub-steps:
a first substep: attribute information of the editing component in the target data structure is obtained.
The editing component refers to a component aimed by the editing operation, and the attribute information refers to related information corresponding to the editing component, such as information related to the type of the editing component, information related to the editing position, and the like.
A second substep: and editing other data structures according to the attribute information and the editing content.
The editing content refers to editing content of editing operation of the editing component, such as deleting processing of the editing component, modifying processing of the editing component, and the like.
In this embodiment, by performing editing processing on other data in combination with attribute information and editing content, the comprehensiveness, reliability, and effectiveness of the editing processing can be achieved.
In some embodiments, the attribute information includes: component type and component location; the second sub-step may comprise the following refinement step:
a first refinement step: and determining suspected components to be edited from other data structures according to the component types.
For example, attribute information may be described from at least two dimensions, one dimension being a type dimension, one dimension being a location dimension, the type dimension being characterizable by a component type, the location dimension being characterizable by a component location.
The component type refers to the type of the editing component, for example, the component type is carousel, and the editing component is carousel.
The component location refers to the sequence number of the edit component in the same component type, e.g., the edit component is the second carousel component.
For example, as shown in fig. 3, the target data structure is a PC data structure, the other data structures are H5 data structures, and each of the PC data structure and the H5 data structure includes K (K is a positive integer greater than or equal to 2) components, which are respectively component 1 through component K.
The component 1 in the PC data structure is a first carousel component, the component type of the editing component is carousel component, the component position is 1, namely the editing component is the first carousel component, namely the editing component is the component 1 in the PC data structure.
And if two components of the H5 data structure are components 1 and K, the suspected components to be edited comprise the component 1 and the component K in the H5 data structure.
And a second refinement step: and determining the component to be edited from the suspected components to be edited according to the component position.
In connection with the above analysis, the component position is 1, and then the component 1 in the H5 data structure is determined as the component to be edited.
And a third refinement step: and editing the component to be edited according to the editing content.
In combination with the above analysis, the component 1 in the H5 data structure is subjected to editing processing according to the editing contents.
In this embodiment, by determining the suspected component to be edited first and then determining the component to be edited so as to edit the component to be edited, the accuracy and effectiveness of the editing process can be improved.
In some embodiments, the editing component includes a plurality of editing objects, the editing objects include pictures and/or texts, the editing operation is an operation for the editing objects, the editing content is an operation content for the editing objects, the attribute information may further include an object type and an object position of the editing objects, after the processing device determines the component to be edited, the object to be edited may be further determined from the component to be edited, and the object to be edited may be determined based on the object type and the object position, and the editing processing may be performed on the object to be edited based on the editing content.
The term "and/or" in the embodiments of the present disclosure describes an association relationship of association objects, which indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In connection with the above example and fig. 4, the edit component is component 1 in the PC data structure, and the component to be edited is component 1 in the H5 data structure. The editing component and the component to be edited comprise T pictures, such as picture 1 to picture T.
As shown in fig. 4, if the object type is a picture and the object position is the first picture, that is, the editing object is the picture 1 in the component 1 in the PC data structure, the picture 1 in the component 1 in the H5 data structure is determined as the object to be edited.
Fig. 5 is a schematic diagram of a website according to a third embodiment of the present disclosure, and as shown in fig. 5, a processing apparatus of a website according to an embodiment of the present disclosure includes:
the obtaining unit 501 is configured to obtain website materials according to website site generation requirements.
The construction unit 502 is configured to construct a plurality of data structures according to the website materials, where different data structures are used to generate website sites of different categories.
A generating unit 503, configured to generate, according to each data structure, a website corresponding to the data structure.
Fig. 6 is a schematic diagram of a fourth embodiment of the present disclosure, and as shown in fig. 6, a processing apparatus of a website site of the embodiment of the present disclosure includes:
the acquiring unit 601 is configured to acquire website materials according to website site generation requirements.
A construction unit 602, configured to construct a plurality of data structures according to the website materials, where different data structures are used to generate website sites of different categories.
In some embodiments, the website material includes page content to be presented; the construction unit 602 includes:
the first generation subunit 6021 is configured to generate, according to the content to be displayed, each page component to be displayed, and an association relationship between each page component to be displayed.
And a constructing subunit 6022, configured to construct the multiple data structures according to the components to be displayed on each page and the association relationship between the components to be displayed on each page.
In some embodiments, each data structure includes a material node that characterizes the page components to be exposed and a node attribute that characterizes an association between the page components to be exposed.
The generating unit 603 is configured to generate, according to each data structure, a website corresponding to the data structure.
In some embodiments, the plurality of data structures comprises: a PC data structure at a computer end and a H5 data structure at a mobile end;
the different categories of website sites include: PC website site and H5 site.
And the updating unit 604 is used for responding to the editing operation for the target data structure and updating the website sites corresponding to the data structures according to the editing operation.
Wherein the plurality of data structures includes the target data structure.
In some embodiments, the updating unit 604 includes:
an acquisition subunit 6041 configured to acquire editing information corresponding to the editing operation.
And the processing subunit 6042 is configured to perform editing processing on other data structures according to the editing information, so as to obtain updated other data structures.
In some embodiments, the editing information includes an editing component and editing content; the processing subunit 6042 includes:
and the acquisition module is used for acquiring the attribute information of the editing component in the target data structure.
And the processing module is used for editing the other data structures according to the attribute information and the editing content.
In some embodiments, the attribute information includes: component type and component location; the processing module comprises:
and the first determining submodule is used for determining suspected components to be edited from the other data structures according to the component types.
And the second determining submodule is used for determining the component to be edited from the suspected components to be edited according to the component position.
And the processing sub-module is used for editing the component to be edited according to the editing content.
And the generating subunit 6043 is configured to generate website sites corresponding to the updated other data structures.
Wherein the plurality of data structures includes the target data structure and the other data structures.
Fig. 7 is a schematic diagram according to a fifth embodiment of the present disclosure, as shown in fig. 7, an electronic device 700 in the present disclosure may include: a processor 701 and a memory 702.
A memory 702 for storing a program; the memory 702 may include a volatile memory (english: volatile memory), such as a random-access memory (RAM), such as a static random-access memory (SRAM), a double data rate synchronous dynamic random-access memory (DDR SDRAM), etc.; the memory may also include a non-volatile memory (English) such as a flash memory (English). The memory 702 is used to store computer programs (e.g., application programs, functional modules, etc. that implement the methods described above), computer instructions, etc., which may be stored in one or more of the memories 702 in partitions. And the above-described computer programs, computer instructions, data, etc. may be called by the processor 701.
The computer programs, computer instructions, etc., described above may be stored in one or more of the memories 702 in partitions. And the above-described computer programs, computer instructions, etc. may be invoked by the processor 701.
A processor 701 for executing a computer program stored in a memory 702 to implement the steps of the method according to the above embodiment.
Reference may be made in particular to the description of the embodiments of the method described above.
The processor 701 and the memory 702 may be separate structures or may be integrated structures integrated together. When the processor 701 and the memory 702 are separate structures, the memory 702 and the processor 701 may be coupled by a bus 703.
The electronic device in this embodiment may execute the technical scheme in the above method, and the specific implementation process and the technical principle are the same, which are not described herein again.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing and the like of the personal information of the user accord with the regulations of related laws and regulations, and the public order colloquial is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
According to an embodiment of the present disclosure, the present disclosure also provides a computer program product comprising: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can read, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any one of the embodiments described above.
Fig. 8 illustrates a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile apparatuses, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing apparatuses. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
Various components in device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the respective methods and processes described above, for example, the processing method of the website site. For example, in some embodiments, the processing method of a website site may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 800 via ROM 802 and/or communication unit 809. When the computer program is loaded into RAM 803 and executed by computing unit 801, one or more steps of the website site processing method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the processing method of the website site in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (19)

1. A method for processing a website site, comprising:
acquiring website materials according to website site generation requirements;
constructing a plurality of data structures according to the website materials, wherein different data structures are used for generating website sites of different categories;
and generating a website site corresponding to each data structure according to each data structure.
2. The method of claim 1, wherein the plurality of data structures comprises: a PC data structure at a computer end and a H5 data structure at a mobile end;
The different categories of website sites include: PC website site and H5 site.
3. The method of claim 1 or 2, wherein the website material comprises page content to be presented; constructing a plurality of data structures according to the website materials, including:
generating each page to-be-displayed component and an association relation among each page to-be-displayed component according to the page to-be-displayed content;
and constructing the plurality of data structures according to the components to be displayed on each page and the association relation among the components to be displayed on each page.
4. A method according to claim 3, wherein each data structure comprises a material node representing the page components to be presented and a node attribute representing an association between the page components to be presented.
5. The method of any of claims 1-4, wherein the method further comprises:
responding to editing operation aiming at a target data structure, and updating website sites corresponding to each data structure according to the editing operation;
wherein the plurality of data structures includes the target data structure.
6. The method of claim 5, wherein updating the website site corresponding to each data structure according to the editing operation comprises:
Acquiring editing information corresponding to the editing operation;
editing other data structures according to the editing information to obtain updated other data structures, and generating website sites corresponding to the updated other data structures;
wherein the plurality of data structures includes the target data structure and the other data structures.
7. The method of claim 6, wherein the editing information comprises editing components and editing content; editing other data structures in the plurality of data structures according to the editing information, including:
acquiring attribute information of the editing component in the target data structure;
and editing the other data structures according to the attribute information and the editing content.
8. The method of claim 7, wherein the attribute information comprises: component type and component location; and editing the other data structures according to the attribute information and the editing content, wherein the editing processing comprises the following steps:
determining suspected components to be edited from the other data structures according to the component types;
determining a component to be edited from the suspected component to be edited according to the component position;
And editing the component to be edited according to the editing content.
9. A website site processing apparatus, comprising:
the acquisition unit is used for acquiring website materials according to website site generation requirements;
the construction unit is used for constructing various data structures according to the website materials, wherein different data structures are used for generating website sites of different categories;
and the generating unit is used for generating a website site corresponding to each data structure according to each data structure.
10. The apparatus of claim 9, wherein the plurality of data structures comprises: a PC data structure at a computer end and a H5 data structure at a mobile end;
the different categories of website sites include: PC website site and H5 site.
11. The apparatus of claim 9 or 10, wherein the website material comprises page content to be presented; the construction unit includes:
the first generation subunit is used for generating each page to-be-displayed component and the association relation among the page to-be-displayed components according to the page to-be-displayed content;
the construction subunit is used for constructing the various data structures according to the components to be displayed on each page and the association relation among the components to be displayed on each page.
12. The apparatus of claim 11, wherein each data structure comprises a material node that characterizes the page components to be exposed and a node attribute that characterizes an association between the page components to be exposed.
13. The apparatus of any of claims 9-12, wherein the apparatus further comprises:
an updating unit, configured to respond to an editing operation for a target data structure, and update website sites corresponding to each data structure according to the editing operation;
wherein the plurality of data structures includes the target data structure.
14. The apparatus of claim 13, wherein the updating unit comprises:
the acquisition subunit is used for acquiring editing information corresponding to the editing operation;
the processing subunit is used for editing other data structures according to the editing information to obtain updated other data structures;
a generating subunit, configured to generate website sites corresponding to the updated other data structures;
wherein the plurality of data structures includes the target data structure and the other data structures.
15. The apparatus of claim 14, wherein the editing information comprises an editing component and editing content; the processing subunit includes:
The acquisition module is used for acquiring attribute information of the editing component in the target data structure;
and the processing module is used for editing the other data structures according to the attribute information and the editing content.
16. The apparatus of claim 15, wherein the attribute information comprises: component type and component location; the processing module comprises:
a first determining submodule, configured to determine a suspected component to be edited from the other data structures according to the component type;
the second determining submodule is used for determining a component to be edited from the suspected components to be edited according to the component position;
and the processing sub-module is used for editing the component to be edited according to the editing content.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-8.
19. A computer program product comprising a computer program which, when executed by a processor, implements the steps of the method of any of claims 1-8.
CN202310380394.7A 2023-04-11 2023-04-11 Website processing method and device Pending CN116340689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310380394.7A CN116340689A (en) 2023-04-11 2023-04-11 Website processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310380394.7A CN116340689A (en) 2023-04-11 2023-04-11 Website processing method and device

Publications (1)

Publication Number Publication Date
CN116340689A true CN116340689A (en) 2023-06-27

Family

ID=86882319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310380394.7A Pending CN116340689A (en) 2023-04-11 2023-04-11 Website processing method and device

Country Status (1)

Country Link
CN (1) CN116340689A (en)

Similar Documents

Publication Publication Date Title
CN106991154B (en) Webpage rendering method and device, terminal and server
CN110795195B (en) Webpage rendering method and device, electronic equipment and storage medium
CN115309470B (en) Method, device, equipment and storage medium for loading widget
CN115686499A (en) Method, device, storage medium and electronic equipment for generating request message
CN112947916B (en) Method, apparatus, device and storage medium for implementing online canvas
CN113392346A (en) Path processing method and device for resource file, electronic equipment and storage medium
CN117234582A (en) Project code processing method and device, electronic equipment and storage medium
CN116244703A (en) Fuzzy test method and device
CN113127357B (en) Unit test method, apparatus, device, storage medium, and program product
CN116340689A (en) Website processing method and device
CN113869042A (en) Text title generation method and device, electronic equipment and storage medium
CN113656041A (en) Data processing method, device, equipment and storage medium
CN113849164A (en) Data processing method and device, electronic equipment and memory
CN113626747A (en) Method and device for generating breadcrumb navigation
CN113905040A (en) File transmission method, device, system, equipment and storage medium
CN111506380A (en) Rendering method, device, equipment and storage medium
CN113342413B (en) Method, apparatus, device, medium, and article for processing components
CN113642295B (en) Page typesetting method, device and computer program product
CN113010812B (en) Information acquisition method, device, electronic equipment and storage medium
CN113378091B (en) Visualized item generation method and device, electronic equipment and storage medium
CN113438428B (en) Method, apparatus, device and computer-readable storage medium for automated video generation
CN116501284A (en) Voice control method, device, equipment, storage medium and program product
CN111104626B (en) Information storage method and device
CN117240708A (en) Website configuration method, access method and device
CN114546343A (en) Generation method and device of activity page

Legal Events

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