CN112506479B - Page editing method, device, equipment and storage medium - Google Patents
Page editing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112506479B CN112506479B CN202011376444.7A CN202011376444A CN112506479B CN 112506479 B CN112506479 B CN 112506479B CN 202011376444 A CN202011376444 A CN 202011376444A CN 112506479 B CN112506479 B CN 112506479B
- Authority
- CN
- China
- Prior art keywords
- page
- edited
- code
- determining
- elements
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000004458 analytical method Methods 0.000 claims abstract description 19
- 230000015654 memory Effects 0.000 claims description 19
- 239000002131 composite material Substances 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 8
- 238000012937 correction Methods 0.000 claims description 7
- 238000001514 detection method Methods 0.000 claims description 6
- 239000003086 colorant Substances 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 238000012986 modification Methods 0.000 description 10
- 230000004048 modification Effects 0.000 description 10
- 238000004590 computer program Methods 0.000 description 7
- 238000013507 mapping Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012550 audit Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/44—Encoding
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Document Processing Apparatus (AREA)
Abstract
The application discloses a method, a device, equipment and a storage medium for page editing, and relates to the fields of computer vision, application page editing, browser page editing and the like. The specific implementation scheme is as follows: analyzing the received page editing code to obtain an analysis result; determining page elements of a page to be edited corresponding to the analysis result; and updating the page to be edited by using the page element. By the scheme, when the page is generated or modified, the page can be directly realized by using the codes. The method for modifying the page by utilizing the code can realize the light weight and convenience of page editing and improve the efficiency of page editing.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to the fields of computer vision, application page editing, browser page editing, and the like.
Background
In the page development process, each development of a product or a function needs to go through a series of processes of page design, code writing, design or code modification, online and the like. Even with very small editing modifications to the page, the above process still needs to be repeated, which is cumbersome.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for page editing.
According to an aspect of the present application, there is provided a method of page editing, the method may include the steps of:
analyzing the received page editing code to obtain an analysis result;
determining page elements of a page to be edited corresponding to the analysis result;
and updating the page to be edited by using the page element.
According to another aspect of the present application, there is provided an apparatus for page editing, the apparatus may include:
the code analysis module is used for analyzing the received page editing code to obtain an analysis result;
the page element determining module to be edited is used for determining a page to be edited corresponding to the analysis result and page elements of the page to be edited;
and the page updating module is used for updating the page to be edited by using the page elements.
In a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods provided by any one of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a method provided by any one of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program which, when executed by a processor, implements a method as described above.
By the scheme, when the page is generated or modified, the page can be directly realized by using the codes. The method for modifying the page by utilizing the code can realize the light weight and convenience of page editing and improve the efficiency of page editing.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
FIG. 1 is a flow chart of a method of page editing according to the present application;
FIG. 2 is a flow chart for determining page elements according to the present application;
FIG. 3 is a flow chart for determining page elements according to the present application;
FIG. 4 is a flow chart for updating a page to be edited in accordance with the present application;
FIG. 5 is a flow chart for updating a page to be edited in accordance with the present application;
FIG. 6 is a schematic diagram of an apparatus for page editing according to the present application;
fig. 7 is a block diagram of an electronic device for implementing a method of page editing of an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application 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 application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As shown in fig. 1, the present application provides a method for editing a page, which may include the following steps:
s101: analyzing the received page editing code to obtain an analysis result;
s102: determining page elements of a page to be edited corresponding to the analysis result;
s103: and updating the page to be edited by using the page element.
The above method of the present application can be applied to a page editing server. Page editing includes the generation of pages and modification of pages. The generated or modified page may be a page of an application program, for example, a page of an application program running in an intelligent terminal such as a mobile phone, or a page of a browser in a home computer, etc. After the page editing server edits the page, the updated page is displayed on the intelligent terminal or the home computer.
Take an application as a browser in an intelligent terminal as an example. The browser running in the intelligent terminal may include various services, such as a search service, a Feed stream push service, an audio-video service, and the like.
The page editing code may be a code for modifying any service in the browser, or may be a code for generating a newly added service.
Taking the code for modifying the service as an example, for example, the modification of the search service title may be that the font and the font size of the original search service title are modified. In this case, the page editing code may include a code for searching for a business title and a code for a font, a font size.
For another example, all text colors in the browser may be modified. In this case, the page editing code may include a code of a text color.
And receiving the page editing code, and analyzing the page editing code to determine the content in the page editing code. That is, the encoding of the page that needs modification or new generation, and the encoding of the elements in the page are determined.
The page editing server may have a correspondence relation stored in advance. The correspondence includes a correspondence of the code to the page and a correspondence of the code to the element. And according to the corresponding relation, determining the page to be edited corresponding to the page editing code and page elements in the page to be edited.
The elements corresponding to the codes of the elements in the page are all content which is designed in advance and passes the examination, so that the elements can be directly applied to the page after the elements are determined. No modification, audit and other work is needed.
Illustratively, the page edit code may be ab_0122. By parsing the code, it can be determined that the first letter a of the code may correspond to the search service, the second letter B may correspond to the search box of the search service, the first three digits (012) may represent the color coding of the search box, and the fourth digit may represent the transparency code.
And determining the page to be edited and page elements of the page to be edited corresponding to the analysis result according to the analysis result. Such as the coding of the previous example, that is, expressed as an edit modification to the color and transparency of the search box in the search service.
When the page editing is carried out, the elements in the page to be edited can be directly modified into the content corresponding to the page editing code, and the page editing can be completed. By the scheme, when the page is generated or modified, the page can be directly realized by using the codes. Because the elements corresponding to the codes are all the content which passes the auditing, the page editing can be light and convenient by utilizing the mode of modifying the pages by the codes, and the efficiency of the page editing is improved.
As shown in fig. 2, in an embodiment, in a case where the page editing code includes a page identification code and a page element code, step S102 may specifically include the steps of:
s1021: determining a page corresponding to the page identification code as a page to be edited by utilizing a pre-established corresponding relation;
s1022: and determining the page element corresponding to the page element code as the page element of the page to be edited by utilizing the pre-established corresponding relation.
The page identification code may characterize the page to be edited. For example, the pages of the search service, the Feed stream push service, and the audio/video service may correspond to different page identifiers respectively. And determining the page to be edited according to the page identification code.
Page element encoding may characterize different elements in a page to be edited. In the current embodiment, the page element encoding may characterize elements in the page to be edited from different dimensions.
The different dimensions can be distinguished from fine to coarse granularity.
For example, the first level of fine-grained elements may include: word size coding, glyph coding, rounded corner coding, pitch coding, projection coding, cover coding, text coding, line coding, icon coding, color mode coding, (opacity) coding, and/or color value coding, etc.
The second level of fine-grained elements may be components in which the first level of fine-grained elements may be included, the components may include: label component encoding, button component encoding, picture component encoding, text chain encoding, video/picture composite component encoding, base plate component encoding, head portrait composite component encoding, and/or scoring composite component encoding, etc.
The third level of fine granularity elements may be tiles, in which the second level of fine granularity elements may be covered, the tiles may include: header block coding, body block coding, and/or pendant block coding, etc.
The fourth level of fine-grained elements may be cards, the third level of fine-grained elements may be covered in a tile, and the cards may include: single-drawing card code, multi-topic card code, dynamic card code, popular group card code, left-drawing right Wen Kapian code, large-drawing card code, and/or financial information card code, etc.
When the page editing code includes a page identification code and a page element code, the page to be edited can be determined by the page identification code, and then the page element of the page to be edited can be determined according to the page element code.
That is, the above scheme is suitable for accurate editing of pages, and pages to be edited can be locked by using page identification codes, so that page element codes are only specific to a specific page. The rest pages can be normally presented or normally accessed without being interfered by the editing process.
As shown in fig. 3, in one embodiment, where the page edit encoding includes page element encoding, step S102 may include the sub-steps of:
s1023: determining the page element corresponding to the page element code as the page element of the page to be edited by utilizing the pre-established corresponding relation;
s1024: a plurality of pages containing page elements are determined as pages to be edited.
In the case where the page edit code includes only page element codes, a page element corresponding to the page element code may be determined as the target element. The pages with target elements in the application program are all pages to be edited.
For example, in special cases, it is necessary to modify all color content of an application program to black and white content. In this case, the page editing code may include only color mode code. Thereby, the color pattern is determined as the target element. All pages in which the color mode appears are determined as pages to be edited. After the pages to be edited are determined, the color modes of all the pages to be edited can be adjusted to black and white according to the color mode codes.
For another example, if the page edit code includes a header block code and a corner rounding code. Thus, the title block is determined as the target element. All pages for which there is a title block will be determined as pages to be edited. After the pages to be edited are determined, the title area fillets of all the pages to be edited can be modified into the patterns (such as right-angle title blocks, fillet title blocks and the like) corresponding to the fillets according to the fillets.
Through the scheme, when multi-page editing is needed, the page element coding is directly utilized to simultaneously edit a plurality of pages containing the target element. Thereby, page editing efficiency can be improved.
It is emphasized that the association between the page element code and the service is established by a mapping relationship.
Pages may include titles, text, summaries, etc. For example, the title has a word size corresponding to code T1, the text has a word size corresponding to code T2, and the abstract has a word size corresponding to code T3. The word sizes of the three areas may be the same or different. For example, the font size codes may include 24, 25, 26, 30, etc. Then, the mapping relationship between the word sizes and the codes of the three areas can be expressed as t1=25, t2=30, and t3=30.
If the title appears in the search service, the mapping relationship between the word size and the code of the title of the search service (the code of the search service may be S) may be expressed as: st1=t1. If the header appears in the information push service (the code of the information push service may be F), the mapping relationship between the word size and the code of the text of the information push service may be expressed as: FT2 = T2.
Therefore, the page editing can be realized by directly changing the code value of the code. That is, the non-coded page style change can be realized without modifying the code. Since no correlation occurs between different services, only the word size of the search service in the foregoing example can be adjusted, and flexibility of searching the service line is maintained. In addition, since the word size of the editing search service and the word size of the title have a mapping relationship in the foregoing example, the word size of the editing search service is kept in the specification defined by the word size of the title, thereby guaranteeing the uniformity of the overall design style.
In addition, the page editing code can also establish a mapping relation with the text description corresponding to the code. Illustratively, the number codes 5-10 may be mapped to "small number words," the number codes 10-20 may be mapped to "medium number words," and the number codes greater than 20 may be mapped to "large number words.
As shown in fig. 4, in one embodiment, step S103 may include the sub-steps of:
s1031: determining codes of page elements and codes of pages to be edited;
s1032: and combining the codes of the page elements with the codes of the page to be edited according to the positions of the page elements in the page to be edited, so as to obtain combined codes.
The code of the page to be edited may be a pre-written code. For example, different services such as a search service, a Feed stream push service, an audio/video service, and the like correspond to codes.
The code of the page to be edited can be established with the code in an index relation, namely, the code of the page to be edited can be determined according to the code of the page to be edited.
The code of the page to be edited may be a code frame, i.e. the code of the different page elements may be contained in the code frame. According to the position of the page element in the page to be edited, the position of the code of the page element in the code frame can be determined. Thus, the codes of the page elements in the page editing code are filled in the corresponding positions in the code frame, so that the combination of the codes of the page elements and the codes of the pages to be edited is realized.
In addition, the page editing server also includes a code editing portal. The code editing portal may be utilized to receive code of pages of (program developers uploading of) different applications. That is, the linkage of the page editing code with the code of the page to be edited and the code of the page element can be realized through the code editing entry.
Through the scheme, the received page editing codes can be converted into page codes. For designers who do not understand the development of the page codes, the page codes can be directly generated, so that the difficulty of page editing is reduced.
As shown in fig. 5, in one embodiment, step S103 may further include the sub-steps of:
s1033: acquiring information of equipment for displaying a page to be edited;
s1034: and converting the combined codes according to the information of the equipment so as to meet the display requirement of the equipment by utilizing the page generated by the converted combined codes.
The device to be edited can be mobile device or home computer. Thereby causing differences in the operating system of the device, the code development environment. For example, the operating system may include an IOS operating system, an Android operating system, and the like. The code development environment may include precompiled languages such as les and SASS.
The information of the device displaying the page to be edited can be obtained in the page editing code, or can be obtained according to the received information of the device by providing options of the information of the device in advance.
The page editing server is preset with an element importing tool, and can convert the combined codes according to the information of the equipment by using the element importing tool so as to meet the display requirement of the equipment by using the page generated by the converted combined codes.
By the scheme, equipment self-adaption can be realized. The page code of the device adapted to display the page to be edited can be directly generated, so that the page editing difficulty is reduced.
In one embodiment, before parsing the received page editing code, the method may further include the steps of:
detecting page editing codes;
and carrying out error correction or error reporting processing under the condition that the detection result is wrong.
The purpose of detecting the page edit code is to check whether an error has occurred. In the event of an error, an error handling may be performed. To prompt the user that the page editing code is wrong. In addition, an error correction rule may be established in advance, and when an error of the page editing code accords with the error correction rule, the page editing code may be corrected according to the error correction rule.
By the scheme, the striving rate of page editing codes can be improved.
In one embodiment, the page elements of the page to be edited include:
fine-grained elements;
a component element consisting of at least one fine-grained element;
a tile element consisting of at least one component element;
a card element consisting of at least one block.
The fine grained elements include: at least one of fonts, texts, icons, lines, word sizes, fonts, colors, shadows, corners, up-down spacing, left-right spacing and text line spacing;
the component elements include: at least one of a label assembly, a button assembly, a picture assembly, a text chain, a video/picture composite assembly, a base plate assembly, a head portrait composite assembly and a scoring composite assembly;
the block elements include: at least one of a title block, a head block, a body block, and a pendant block;
the card element comprises: at least one of a single-drawing card, a multi-topic card, a dynamic card, a trending group card, a left-drawing right-language card, a large-drawing card and a financial information card.
The page element corresponds to the page element code.
As shown in fig. 6, the present application provides an apparatus for page editing, which may include the following components:
the code analysis module 601 is configured to analyze the received page editing code to obtain an analysis result;
the page element to be edited determining module 602 is configured to determine a page to be edited corresponding to the analysis result and page elements of the page to be edited;
the page updating module 603 is configured to update a page to be edited with page elements.
In one embodiment, where the page edit code includes a page identification code and a page element code, the page element to be edited determination module 602 may further include:
the page to be edited determining submodule is used for determining a page corresponding to the page identification code as a page to be edited by utilizing a pre-established corresponding relation;
and the page element determining sub-module is used for determining the page element corresponding to the page element code as the page element of the page to be edited by utilizing the pre-established corresponding relation.
In one embodiment, where the page edit encoding includes a page element encoding, the page element to be edited determination module 602 may further include:
the page element determining submodule is used for determining the page element corresponding to the page element code as the page element of the page to be edited by utilizing the pre-established corresponding relation;
and the page to be edited determining submodule is used for determining a plurality of pages containing page elements as pages to be edited.
In one embodiment, the page update module 603 may further include:
the page code to be edited determining submodule is used for determining the codes of page elements and the codes of the page to be edited;
and the code combining sub-module is used for combining the codes of the page elements with the codes of the page to be edited according to the positions of the page elements on the page to be edited to obtain combined codes.
In one embodiment, the page update module 603 may further include:
the equipment information acquisition sub-module is used for acquiring information of equipment for displaying the page to be edited;
and the code conversion sub-module is used for converting the combined codes according to the information of the equipment so that the page generated by using the converted combined codes meets the display requirement of the equipment.
In one embodiment, the apparatus for editing a page may further include:
the code detection module is used for detecting the page editing code;
and the error processing module is used for carrying out error correction or error reporting processing under the condition that the detection result is wrong.
According to embodiments of the present application, there is also provided an electronic device, a readable storage medium and a computer program product.
As shown in fig. 7, a block diagram of an electronic device is provided for a method of page editing according to an embodiment of the present application. 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 devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. 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 application described and/or claimed herein.
As shown in fig. 7, the electronic device includes: one or more processors 710, memory 720, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 710 is illustrated in fig. 7.
Memory 720 is a non-transitory computer-readable storage medium provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of page editing provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method of page editing provided herein.
The memory 720 is used as a non-transitory computer readable storage medium, and may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the code parsing module 601, the page element to be edited determining module 602, and the page updating module 603 shown in fig. 6) corresponding to the page editing method in the embodiments of the present application. The processor 710 executes various functional applications of the server and data processing, i.e., a method of implementing page editing in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 720.
Memory 720 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the electronic device of the page editing method, and the like. In addition, memory 720 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 720 may optionally include memory remotely located with respect to processor 710, which may be connected to the electronic device of the page editing method via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the page editing method may further include: an input device 730 and an output device 740. Processor 710, memory 720, input device 730, and output device 740 may be connected by a bus or other means, for example in fig. 7.
The input device 730 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device for the method of page editing, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, and the like. The output device 740 may include a display apparatus, auxiliary lighting devices (e.g., LEDs), haptic feedback devices (e.g., vibration motors), and the like. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), 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.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
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 as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and Virtual Private Server (VPS) service. 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 described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. 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 application are intended to be included within the scope of the present application.
Claims (18)
1. A method of page editing, comprising:
analyzing the received page editing code to obtain an analysis result;
determining a page element of a page to be edited corresponding to the analysis result; the page element of the page to be edited comprises: fine-grained elements; a component element consisting of at least one of the fine-grained elements; a tile element consisting of at least one of the component elements; and a card element consisting of at least one block;
and updating the page to be edited by using the page element.
2. The method of claim 1, wherein, in a case where the page editing code includes a page identification code and a page element code, the determining a page to be edited and a page element of the page to be edited corresponding to the parsing result includes:
determining a page corresponding to the page identification code as the page to be edited by utilizing a pre-established corresponding relation;
and determining the page element corresponding to the page element code as the page element of the page to be edited by utilizing the pre-established corresponding relation.
3. The method of claim 1, wherein, in a case where the page editing code includes a page element code, the determining a page to be edited and a page element of the page to be edited corresponding to the parsing result includes:
determining the page element corresponding to the page element code as the page element of the page to be edited by utilizing a pre-established corresponding relation;
and determining a plurality of pages containing the page elements as the pages to be edited.
4. The method of claim 1, wherein the updating the page to be edited with the page element comprises:
determining codes of the page elements and codes of the pages to be edited;
and combining the codes of the page elements with the codes of the page to be edited according to the positions of the page elements on the page to be edited, so as to obtain combined codes.
5. The method of claim 4, wherein the updating the page to be edited with the page element further comprises:
acquiring information of equipment for displaying the page to be edited;
and converting the combination codes according to the information of the equipment so that the page generated by using the converted combination codes meets the display requirement of the equipment.
6. The method of claim 1, further comprising, prior to parsing the received page-editing code:
detecting the page editing code;
and carrying out error correction or error reporting processing under the condition that the detection result is wrong.
7. The method of claim 1, wherein the fine-grained element comprises: at least one of fonts, text, icons, lines, word sizes, fonts, colors, shadows, corners, up-down spacing, left-right spacing, and text line spacing.
8. The method of claim 1, wherein the component element comprises: at least one of a label component, a button component, a picture component, a text chain, a video composite component, a picture composite component, a base plate component, a head portrait composite component and a scoring composite component.
9. The method of claim 1, wherein the tile element comprises: at least one of a title block, a head block, a body block, and a pendant block.
10. The method of claim 1, wherein the tile element comprises: the card element includes: at least one of a single-drawing card, a multi-topic card, a dynamic card, a trending group card, a left-drawing right-language card, a large-drawing card and a financial information card.
11. An apparatus for page editing, comprising:
the code analysis module is used for analyzing the received page editing code to obtain an analysis result;
the page element determining module to be edited is used for determining a page to be edited corresponding to the analysis result and page elements of the page to be edited; the page element of the page to be edited comprises: fine-grained elements; a component element consisting of at least one of the fine-grained elements; a tile element consisting of at least one of the component elements; and a card element consisting of at least one block;
and the page updating module is used for updating the page to be edited by utilizing the page elements.
12. The apparatus of claim 11, wherein, in a case where the page editing code includes a page identification code and a page element code, the page element to be edited determining module includes:
the page to be edited determining submodule is used for determining a page corresponding to the page identification code as the page to be edited by utilizing a pre-established corresponding relation;
and the page element determining submodule is used for determining the page element corresponding to the page element code as the page element of the page to be edited by utilizing the pre-established corresponding relation.
13. The apparatus of claim 11, wherein, in a case where the page editing code comprises a page element code, the page element to be edited determination module comprises:
a page element determining sub-module, configured to determine, by using a pre-established correspondence, a page element corresponding to the page element code as a page element of the page to be edited;
and the page to be edited determining submodule is used for determining a plurality of pages containing the page elements as the page to be edited.
14. The apparatus of claim 11, wherein the page update module comprises:
the page code to be edited determining submodule is used for determining codes of the page elements and codes of the page to be edited;
and the code combining sub-module is used for combining the codes of the page elements with the codes of the page to be edited according to the positions of the page elements on the page to be edited to obtain combined codes.
15. The apparatus of claim 14, wherein the page update module further comprises:
the equipment information acquisition sub-module is used for acquiring information of equipment displaying the page to be edited;
and the code conversion sub-module is used for converting the combined codes according to the information of the equipment so as to enable the page generated by using the converted combined codes to meet the display requirement of the equipment.
16. The apparatus of claim 11, further comprising:
the code detection module is used for detecting the page editing code;
and the error processing module is used for carrying out error correction or error reporting processing under the condition that the detection result is wrong.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
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 to 10.
18. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011376444.7A CN112506479B (en) | 2020-11-30 | 2020-11-30 | Page editing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011376444.7A CN112506479B (en) | 2020-11-30 | 2020-11-30 | Page editing method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112506479A CN112506479A (en) | 2021-03-16 |
CN112506479B true CN112506479B (en) | 2024-03-01 |
Family
ID=74969574
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011376444.7A Active CN112506479B (en) | 2020-11-30 | 2020-11-30 | Page editing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112506479B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113190226A (en) * | 2021-05-06 | 2021-07-30 | 北京百度网讯科技有限公司 | App design method, and page rendering method and device of App |
CN113343066A (en) * | 2021-05-07 | 2021-09-03 | 北京百度网讯科技有限公司 | Page processing method and device, electronic equipment and storage medium |
CN113407168A (en) * | 2021-06-07 | 2021-09-17 | 远光软件股份有限公司 | Editing method and device of page elements, storage medium and terminal |
CN113836462A (en) * | 2021-09-07 | 2021-12-24 | 北京猿力未来科技有限公司 | Page description file generation method, device, equipment and storage medium |
CN115080027B (en) * | 2022-08-24 | 2023-01-06 | 深圳市信润富联数字科技有限公司 | Web page automatic adaptation method, device, equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104850415A (en) * | 2014-02-13 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Method and apparatus for loading pages |
CN106126197A (en) * | 2016-05-31 | 2016-11-16 | 美通云动(北京)科技有限公司 | Make the method and device of the mobile terminal application page and PC end application page synchronization |
CN106990949A (en) * | 2016-12-31 | 2017-07-28 | 深圳大宇无限科技有限公司 | Five application page display methods and device |
CN108345456A (en) * | 2018-03-07 | 2018-07-31 | 平安普惠企业管理有限公司 | Page code generation method, device, computer equipment and storage medium |
CN110083790A (en) * | 2019-04-30 | 2019-08-02 | 珠海随变科技有限公司 | Page editing method, page output method, device, computer equipment and medium |
CN111045653A (en) * | 2019-12-16 | 2020-04-21 | 京东数字科技控股有限公司 | System generation method and device, computer readable medium and electronic equipment |
CN111045645A (en) * | 2019-11-08 | 2020-04-21 | 贝壳技术有限公司 | Page editing method and device, electronic equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170371849A1 (en) * | 2015-01-22 | 2017-12-28 | Hewlett Packard Enterprise Development Lp | In-line editor insertion |
-
2020
- 2020-11-30 CN CN202011376444.7A patent/CN112506479B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104850415A (en) * | 2014-02-13 | 2015-08-19 | 腾讯科技(深圳)有限公司 | Method and apparatus for loading pages |
CN106126197A (en) * | 2016-05-31 | 2016-11-16 | 美通云动(北京)科技有限公司 | Make the method and device of the mobile terminal application page and PC end application page synchronization |
CN106990949A (en) * | 2016-12-31 | 2017-07-28 | 深圳大宇无限科技有限公司 | Five application page display methods and device |
CN108345456A (en) * | 2018-03-07 | 2018-07-31 | 平安普惠企业管理有限公司 | Page code generation method, device, computer equipment and storage medium |
CN110083790A (en) * | 2019-04-30 | 2019-08-02 | 珠海随变科技有限公司 | Page editing method, page output method, device, computer equipment and medium |
CN111045645A (en) * | 2019-11-08 | 2020-04-21 | 贝壳技术有限公司 | Page editing method and device, electronic equipment and storage medium |
CN111045653A (en) * | 2019-12-16 | 2020-04-21 | 京东数字科技控股有限公司 | System generation method and device, computer readable medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN112506479A (en) | 2021-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112506479B (en) | Page editing method, device, equipment and storage medium | |
EP3920088A1 (en) | Method and apparatus for generating tag of video, electronic device, and storage medium | |
EP3843031A2 (en) | Face super-resolution realization method and apparatus, electronic device and storage medium | |
CN111078878B (en) | Text processing method, device, equipment and computer readable storage medium | |
CN110413740B (en) | Query method and device of chemical expression, electronic equipment and storage medium | |
CN111737965A (en) | Document comparison method and device, electronic equipment and readable storage medium | |
CN112541359B (en) | Document content identification method, device, electronic equipment and medium | |
CN111753717A (en) | Method, apparatus, device and medium for extracting structured information of text | |
CN111753744B (en) | Method, apparatus, device and readable storage medium for bill image classification | |
CN111767691B (en) | Computing method, computing device, computing equipment and storage medium | |
KR20210040332A (en) | Application construction method and apparatus, electronic device and storage medium | |
KR102634484B1 (en) | A method, a device, an electronic equipment and a storage medium for extracting information | |
CN113778403B (en) | Front-end code generation method and device | |
CN113535165A (en) | Interface generation method and device, electronic equipment and computer readable storage medium | |
CN111914528B (en) | Content editing method, method for generating editor, device, equipment and medium thereof | |
JP7389824B2 (en) | Object identification method and device, electronic equipment and storage medium | |
CN111199802A (en) | Electronic medical record data mining method, device, equipment and medium | |
CN110633281A (en) | Method and device for processing multi-type data sources | |
CN111158666A (en) | Entity normalization processing method, device, equipment and storage medium | |
CN117057318A (en) | Domain model generation method, device, equipment and storage medium | |
US20220113847A1 (en) | Online collaborative document processing method and device | |
CN112397050B (en) | Prosody prediction method, training device, electronic equipment and medium | |
CN111985760B (en) | Data content evaluation method and device, electronic equipment and storage medium | |
CN110909390B (en) | Task auditing method and device, electronic equipment and storage medium | |
CN111026916B (en) | Text description conversion method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |