CN111694549A - Data processing method, device, terminal and medium - Google Patents

Data processing method, device, terminal and medium Download PDF

Info

Publication number
CN111694549A
CN111694549A CN202010348617.8A CN202010348617A CN111694549A CN 111694549 A CN111694549 A CN 111694549A CN 202010348617 A CN202010348617 A CN 202010348617A CN 111694549 A CN111694549 A CN 111694549A
Authority
CN
China
Prior art keywords
configuration
target page
page
target
configuration instruction
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
CN202010348617.8A
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.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN202010348617.8A priority Critical patent/CN111694549A/en
Publication of CN111694549A publication Critical patent/CN111694549A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a data processing method, a device, a terminal and a medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a target page, analyzing the target page to obtain page information corresponding to the target page, determining a configuration interface aiming at the target page according to the page information, receiving a configuration instruction aiming at any one or more elements in the target page and input in the configuration interface, and updating the target page according to a target preset configuration instruction. By implementing the method, the page can be analyzed to obtain the configuration interface, so that developers can modify data in the configuration interface to update the page, and the updating efficiency of the page is improved.

Description

Data processing method, device, terminal and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, an apparatus, a terminal, and a medium.
Background
With the development of computer technology, terminals (mobile phones, computers, tablet computers, etc.) have become essential items in daily life of users, and users can browse various pages (application pages, web pages, etc.) through the terminals, but page developers also need to update pages in time to meet the needs of users as the browsing needs of users for pages change.
At present, the in-process that the developer updated the page, need edit a large amount of codes, and the update process is longer, and also need carry out complete development to the page again when updating the page, when requiring highly to developer's coding ability, page development efficiency is also lower, can't deal with the page update demand that increases day by day.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device, a terminal and a medium, which can analyze a page to obtain a configuration interface, so that developers can modify data in the configuration interface to update the page, and the updating efficiency of the page is improved.
In a first aspect, an embodiment of the present invention provides a data processing method, where the method includes:
acquiring a target page;
analyzing the target page to obtain page information corresponding to the target page, wherein the page information comprises at least one element forming the target page and a connection relation between the elements;
determining a configuration interface aiming at the target page according to the page information, wherein the configuration interface comprises an element structure tree diagram constructed by the connection relation and initial style information of each element;
receiving a configuration instruction for any one or more elements in the target page, which is input in the configuration interface, wherein the configuration instruction indicates a style corresponding to each element in the target page;
and updating the target page according to the configuration instruction.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, where the apparatus includes:
the acquisition module is used for acquiring a target page;
the analysis module is used for analyzing the target page to obtain page information corresponding to the target page, wherein the page information comprises at least one element forming the target page and a connection relation between the elements;
a determining module, configured to determine, according to the page information, a configuration interface for the target page, where the configuration interface includes an element structure tree diagram constructed by the connection relationship and initial style information of each element;
a receiving module, configured to receive a configuration instruction for any one or more elements in the target page, where the configuration instruction indicates a style corresponding to each element in the target page, and the configuration instruction is input in the configuration interface;
and the updating module is used for updating the target page according to the configuration instruction.
In a third aspect, an embodiment of the present invention provides a terminal, including a processor, an input interface, an output interface, and a memory, where the processor, the input interface, the output interface, and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program includes program instructions, which, when executed by a processor, cause the processor to execute the method of the first aspect.
In the embodiment of the invention, a terminal acquires a target page, analyzes the target page to obtain page information corresponding to the target page, determines a configuration interface aiming at the target page according to the page information, receives a configuration instruction aiming at any one or more elements in the target page and input in the configuration interface, and updates the target page according to a target preset configuration instruction. By implementing the method, the page can be analyzed to obtain the configuration interface, so that developers can modify data in the configuration interface to update the page, and the updating efficiency of the page is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another data processing method provided by the embodiment of the invention;
FIG. 3 is a flow chart illustrating a further data processing method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention. As shown in fig. 1, the flow of the data processing method in this embodiment may include:
s101, the terminal acquires a target page.
In the embodiment of the present invention, the target page may be any Application page of an Application (APP), or the target page may also be a web page, and the terminal may acquire, after detecting a page acquisition operation input by a user, information carried according to the page acquisition operation to the target page required by the user, where the information carried by the page acquisition operation may specifically be a website, a database address, an image, a text, and the like.
S102, the terminal analyzes the target page to obtain page information corresponding to the target page.
In the embodiment of the invention, after the terminal acquires the target page, the target page is analyzed to obtain the page information corresponding to the target page, wherein the page information comprises at least one element forming the target page and the connection relation among the elements, and the elements can be specifically characters, images, backgrounds and the like in the target page.
In an implementation manner, a specific manner of analyzing, by the terminal, the target page to obtain the page information corresponding to the target page may be that the terminal obtains a source code corresponding to the target page, determines, based on at least one object included in the source code, at least one element constituting the target page, and determines, based on a coding structure of the at least one object, a connection relationship between the elements. The terminal extracts each object included in the source code and determines each object as an element, further, the terminal determines a connection relation between each element based on a coding structure of the code in the source code, and the terminal determines at least one element obtained by analysis and each element connection relation as page information corresponding to the target page.
In an implementation manner, a specific manner of parsing a target page by a terminal to obtain page information corresponding to the target page may be that the terminal parses the target page based on a preset parsing rule to obtain at least one element, and determines a connection relationship between the elements based on a position of each element obtained by parsing in the target page, where the preset parsing rule may be a parsing rule for parsing based on color change and spatial interval, that is, the terminal first separates text and images in the page to obtain text portions and incomplete images lacking the text portions, and the terminal fills the incomplete portions in the incomplete images by using a color of the image closest to the incomplete portions as a background color. Further, for the extracted text part, the terminal detects the spacing distance between the text areas, determines the text area with the spacing distance greater than the preset distance as an element, and for the filled image part, the terminal determines the color change between different image areas, and determines the image area with the color change greater than the preset change as an element. And then, determining the connection relation among the elements according to the position relation among the elements disassembled by the terminal, and determining at least one element obtained by analysis and the connection relation among the elements as page information corresponding to the target page by the terminal.
In an implementation manner, a target page is developed by a developer based on a preset development framework, the development framework indicates each element included in the target page and a connection relationship between the elements, and the specific manner of obtaining page information corresponding to the target page by analyzing the target page by the terminal may be that the terminal obtains the development framework of the target page from background data of the target page and obtains indication information corresponding to the target page from the development framework.
Further, after determining each element constituting the target page, the terminal may further obtain initial style information of each element, where the initial style information of the element includes a size, a format, a color, a position, a transparency, and the like of the element.
S103, the terminal determines a configuration interface aiming at the target page according to the page information.
In the embodiment of the invention, the configuration interface comprises an element structure tree diagram constructed by a connection relation and initial style information of each element, the terminal analyzes the target page to obtain page information corresponding to the target page, and then determines the configuration interface aiming at the target page according to the page information, and a user can input characters in the configuration interface or click options provided by the configuration interface to modify the style of the elements.
In an implementation manner, the specific manner of determining, by the terminal, the configuration interface for the target page according to the page information may be that the terminal determines a root element and a sub-element in at least one element according to a connection relationship between elements in the target page, and correspondingly connects the root element and the sub-element to obtain an element structure tree diagram corresponding to the target page; specifically, the terminal determines an element with the largest range as a root element, then, the terminal obtains other independent elements included in the range of the root element as child elements of the root element, wherein the independent elements are not included in the other elements except the root element, the terminal establishes connection between the root element and the included child elements to obtain a first branch in an element structure tree diagram, further, the terminal takes the child elements in the root element as a second root element again, obtains the other independent elements included in the range of the second root element as second child elements of the second root element, and establishes connection between the second root element and the second child elements to obtain a second branch in the element tree diagram. By repeating the above manner, a complete element structure tree diagram corresponding to the target page can be obtained. For example, the target page includes a top page element, a top area element, a bottom area element, a top advertisement area element, a top content area element, a bottom advertisement area element, and a bottom content area element, wherein the top advertisement area element and the top content area element are included in the top area element, the bottom advertisement area element and the bottom content area element are included in the bottom area element, the top area element and the bottom area element are included in the top page element, the terminal determines the top page element as a root element and the top area element and the bottom area element as sub-elements corresponding to the root element and connects the top page element with the top area element and the bottom area element, respectively, the terminal determines the top area element and the bottom area element as a second root element and the top advertisement area element and the top content area element as a second sub-element corresponding to the top area element, and the terminal respectively connects the top area element with the top advertisement area element and the top content area element, and respectively connects the bottom area element with the bottom advertisement area element and the bottom content area element. Further, the terminal places the initial style information of each element in the target page at a corresponding position in the element structure tree diagram to obtain a configuration interface for the target page.
In an implementation manner, a target page is developed by a developer based on a preset development framework, the development framework indicates elements included in the target page and connection relations among the elements, and an element structure tree diagram is generated based on the elements and the element relations, a specific manner of determining a configuration interface for the target page by a terminal according to page information can be that after the terminal obtains the page information of the target page, the terminal determines the target development framework corresponding to the page information and directly obtains the element structure tree diagram of the target page from the target development framework, and further, the terminal places initial style information of each element in the target page at a corresponding position in the element structure tree diagram to obtain the configuration interface for the target page. Wherein the initial style information of each element includes an initial title, initial content, initial color, initial background, display state, etc. of the element.
And S104, the terminal receives a configuration instruction which is input in the configuration interface and aims at any one or more elements in the target page.
In the embodiment of the invention, after the terminal determines the configuration interface for the target page according to the page information, the terminal can receive the configuration instruction for any one or more elements in the target page, which is input in the configuration interface by a user, wherein the configuration instruction indicates the style corresponding to each element in the target page.
In a specific implementation, a user may set a size, a position, content, a background, a display state, and the like for each element in a configuration interface, and further, the terminal may also provide a recommended configuration option for each element, so as to be selected when the user performs element configuration, for example, for a top advertisement element, a commonly used size configuration is 10 centimeters long and 5 centimeters wide, and the terminal may use the commonly used configuration as a recommended configuration item and display the recommended configuration item in the configuration interface for the user to select, where a specific determination manner of the recommended configuration item may be that the terminal obtains a historical configuration instruction input for each element in a historical record, and the historical configuration instruction includes at least one historical configuration option; and determining the configuration frequency of each historical configuration option in the historical configuration instruction, and determining the historical configuration frequency with the configuration frequency greater than the preset frequency as a recommended configuration item, namely determining the configuration item with more historical use as the recommended configuration item by the terminal based on the result of data statistics. Further, when the terminal detects a display trigger instruction, the terminal recommends a configuration item in a configuration interface display for the target page. The display trigger instruction may be a click operation of a user on a preset area, or the display trigger instruction may also be that a configuration duration for an element is longer than a preset duration, that is, when the terminal detects that the duration for configuring one element by the user is longer than the preset duration, the recommended configuration item is displayed, so as to improve the configuration efficiency of the user for the element.
And S105, the terminal updates the target page according to the configuration instruction.
In the embodiment of the invention, after the terminal receives the configuration instruction in the target page input in the configuration interface, the target page is updated according to the configuration instruction. Specifically, the terminal determines a code corresponding to the configuration instruction according to the configuration instruction input by the user, and applies the code to the target page, so that the target page is updated based on the code. The terminal can acquire a code template corresponding to the configuration instruction from a pre-established code database, wherein at least one code template is stored in the code database, the code template is generated by code and interface data, a one-to-one correspondence exists between each code template and a configuration item in the code template library, further, the specific way for the terminal to acquire the code template corresponding to the configuration instruction can be that the terminal analyzes the configuration instruction to obtain all configuration items contained in the configuration instruction, finds at least one code template corresponding to all configuration items in the configuration instruction according to the correspondence between the configuration items and the code templates, and combines at least one code template corresponding to all configuration items to obtain a code applied to a target page.
In the embodiment of the invention, a terminal acquires a target page, analyzes the target page to obtain page information corresponding to the target page, determines a configuration interface aiming at the target page according to the page information, receives a configuration instruction aiming at any one or more elements in the target page and input in the configuration interface, and updates the target page according to a target preset configuration instruction. By implementing the method, the page can be analyzed to obtain the configuration interface, so that developers can modify data in the configuration interface to update the page, and the updating efficiency of the page is improved.
Fig. 2 is a schematic flow chart of another data processing method according to an embodiment of the present invention. As shown in fig. 2, the flow of the data processing method in this embodiment may include:
s201, the terminal acquires a target page.
In the embodiment of the present invention, the target page may be any application page of an application program, or the target page may also be a web page.
S202, the terminal analyzes the target page to obtain page information corresponding to the target page.
In the embodiment of the invention, after the terminal acquires the target page, the target page is analyzed to obtain the page information corresponding to the target page, wherein the page information comprises at least one element forming the target page and the connection relation among the elements, and the elements can be specifically characters, images, backgrounds and the like in the target page.
S203, the terminal determines a configuration interface aiming at the target page according to the page information.
In the embodiment of the invention, the configuration interface comprises an element structure tree diagram constructed by a connection relation and initial style information of each element, the terminal analyzes the target page to obtain page information corresponding to the target page, and then the configuration interface aiming at the target page is determined according to the page information.
S204, the terminal receives a configuration instruction which is input in the configuration interface and aims at any one or more elements in the target page.
In the embodiment of the invention, after the terminal determines the configuration interface for the target page according to the page information, the terminal can receive the configuration instruction for any one or more elements in the target page, which is input in the configuration interface by a user, wherein the configuration instruction indicates the style corresponding to each element in the target page.
S205, the terminal detects the similarity between the configuration instruction and each configuration instruction in the preset configuration instruction set.
In the embodiment of the present invention, the preset configuration instruction set includes a plurality of preset configuration instructions set by a developer, each preset configuration instruction may be used to generate a preset page, and the preset configuration instructions may be configured in advance by the developer according to user preferences, or the terminal determines a configuration instruction of a history record for a target page as the preset configuration instruction. In the process that the terminal acquires the configuration instruction of the user in the configuration interface, the similarity between the currently received configuration instruction and each configuration instruction in the preset configuration instruction set is detected in real time. The configuration instruction currently received by the terminal comprises at least one configuration item, the preset configuration instruction comprises at least one preset configuration item, and each configuration item is used for configuring one element in the target page.
Specifically, the terminal may detect the similarity between the configuration instruction and the preset configuration instruction in a manner that the terminal obtains a first number corresponding to the configuration instruction and the same configuration items included in the preset configuration instruction, and a second number corresponding to all configuration items included in the preset configuration instruction, and the terminal determines a ratio between the first number and the second number as the similarity between the configuration instruction and the preset configuration instruction.
S206, if a target preset configuration instruction with the similarity larger than the preset similarity exists, the terminal displays a target preset page corresponding to the target preset configuration instruction in a configuration interface in a thumbnail mode.
In the embodiment of the invention, after the terminal detects the similarity between the configuration instruction and each configuration instruction in the preset configuration instruction set, if a target preset configuration instruction with the similarity larger than the preset similarity is detected, the terminal displays a target preset page corresponding to the target preset configuration instruction in a configuration interface in a thumbnail mode. The target preset configuration instruction is any one or more configuration instructions in a preset configuration instruction set, and the preset similarity is specifically determined according to the number of elements included in the target page, for example, the larger the number of elements is, the smaller the preset similarity is, or the preset similarity may also be preset by a user before the configuration instruction is input. After the terminal displays the target preset page corresponding to the target preset configuration instruction in the configuration interface in the form of the thumbnail, the user can select any one of the thumbnails in the configuration interface.
And S207, when a selection instruction for the thumbnail is received, the terminal adjusts the configuration instruction into a target preset configuration instruction, and updates the target page according to the target preset configuration instruction.
In the embodiment of the invention, after the terminal displays the target preset page corresponding to the target preset configuration instruction in the configuration interface in the form of the thumbnail, the terminal can receive the selection operation of a user for any one thumbnail, when the terminal receives the selection instruction for the thumbnail, the terminal adjusts the configuration instruction to the target preset configuration instruction, and updates the target page according to the target preset configuration instruction.
For example, the target page includes a top element, a middle element and a bottom element, the configuration instruction input by the user includes a top element "width 15 cm" and a middle element "width 10 cm", the preset configuration instruction 1 includes a top element "width 15 cm", a middle element "width 10 cm" and a bottom element "width 8 cm", the preset configuration instruction 2 includes a top element "width 15 cm", a middle element "width 10 cm", and a bottom element "width 6 cm", the preset configuration instruction 3 includes a top element "width 15 cm", a middle element "width 8 cm" and a bottom element "width 5 cm", the terminal detects that the similarity between the configuration instruction and the preset configuration instruction 1 is 66.7%, the similarity between the configuration instruction 2 and the preset configuration instruction 3 is 66.7%, the similarity between the configuration instruction 3 and the preset similarity is 50%, the terminal determines that the preset configuration instruction 1 and the preset configuration instruction 2 are the target preset configuration instruction, and displaying pages corresponding to the preset configuration instruction 1 and the preset configuration instruction 2 in a configuration interface in a thumbnail mode, wherein the pages are respectively a target preset configuration interface 1 and a target preset configuration page 2, when the selection operation of a user on the target preset configuration interface 1 is received, the terminal determines the preset configuration instruction 1 as the target preset configuration instruction, and updates the target page according to the target preset configuration instruction.
Through the mode, when the user configures the page, the user can only input the configuration instructions aiming at the partial elements in the page without inputting the complete configuration instructions, the terminal can provide the thumbnail corresponding to the complete configuration instructions aiming at the partial elements in the page, the user can directly select the thumbnail to complete the configuration aiming at the target, the configuration efficiency of the user during the page configuration is improved, and meanwhile, the user can conveniently preview various pages which are likely to appear, so that the user can better select the expected page.
In the embodiment of the invention, a terminal acquires a target page, analyzes the target page to obtain page information corresponding to the target page, determines a configuration interface aiming at the target page according to the page information, receives a configuration instruction aiming at any one or more elements in the target page and input in the configuration interface, detects the similarity between the configuration instruction and each configuration instruction in a preset configuration instruction set, displays a target preset page corresponding to the target preset configuration instruction in the configuration interface in a thumbnail mode if the target preset configuration instruction with the similarity larger than the preset similarity exists, and when a selection instruction aiming at the thumbnail is received, adjusts the configuration instruction into the target preset configuration instruction and updates the target page according to the target preset configuration instruction. By implementing the method, the page can be analyzed to obtain the configuration interface, so that developers can modify data in the configuration interface to update the page, and the updating efficiency of the page is improved. In addition, the user can directly select the thumbnail to complete the configuration aiming at the target, and the configuration efficiency of the user in page configuration is improved.
Fig. 3 is a flow chart of another data processing method according to an embodiment of the present invention. As shown in fig. 3, the flow of the data processing method in this embodiment may include:
s301, the terminal acquires a target page.
In the embodiment of the present invention, the target page may be any application page of an application program, or the target page may also be a web page.
S302, the terminal analyzes the target page to obtain page information corresponding to the target page.
In the embodiment of the invention, after the terminal acquires the target page, the target page is analyzed to obtain the page information corresponding to the target page, wherein the page information comprises at least one element forming the target page and the connection relation among the elements, and the elements can be specifically characters, images, backgrounds and the like in the target page.
S303, the terminal determines a configuration interface aiming at the target page according to the page information.
In the embodiment of the invention, the configuration interface comprises an element structure tree diagram constructed by a connection relation and initial style information of each element, the terminal analyzes the target page to obtain page information corresponding to the target page, and then the configuration interface aiming at the target page is determined according to the page information.
S304, the terminal receives configuration requirements aiming at the target page in the configuration interface.
In the embodiment of the invention, after the terminal determines the configuration interface for the target page according to the page information, the configuration requirement for the target page is received in the configuration interface, wherein the configuration requirement may be a form that the user wants to change the target page, such as theme change, content change, background change and the like, for example, the user may input a "winter theme", a "youth background" and the like in a search frame provided by the configuration interface as the configuration requirement for the target page.
S305, the terminal inquires at least one reference configuration instruction corresponding to the configuration requirement in a preset database according to the configuration requirement.
In the embodiment of the invention, after the terminal receives the configuration requirement aiming at the target page, at least one reference configuration instruction corresponding to the configuration requirement is inquired in the preset database according to the configuration requirement. Each reference configuration instruction can be used for generating a page in a form, the reference configuration instructions can be preset by research personnel or configuration instructions received for terminal history, each configuration requirement can correspond to a plurality of reference configuration instructions, the terminal can determine at least one reference configuration instruction corresponding to the configuration requirement input by a user based on a fuzzy query method, and the found reference configuration instruction is displayed in a configuration interface.
S306, the terminal receives the selection operation aiming at any one reference configuration instruction in the at least one reference configuration instruction.
In the embodiment of the invention, after the terminal queries at least one reference configuration instruction corresponding to the configuration requirement in the preset database according to the configuration requirement, a user inputs a selection operation to select any one reference configuration instruction.
S306, the terminal updates the target page according to the selected reference configuration instruction.
In this embodiment of the present invention, after the terminal receives a selection operation for a reference configuration instruction input by a user, the terminal may update the target page according to the selected reference configuration instruction, and specifically, the terminal changes the style of each element in the target page according to the reference configuration instruction; and displaying each element after the style change in a target page to update the target page.
In an implementation manner, after the user selects the reference configuration instruction, the user can modify the reference configuration instruction to obtain a configuration instruction required by the user, and the terminal receives a modification operation of the user for the reference configuration instruction and updates the target page according to the modified reference configuration instruction. By the method, the user does not need to input a complete configuration instruction every time, the user requirement can be met by directly modifying the subsequent configuration instruction, and the configuration efficiency for the target page is improved.
In the embodiment of the invention, a terminal acquires a target page, analyzes the target page to obtain page information corresponding to the target page, determines a configuration interface aiming at the target page according to the page information, receives a configuration instruction aiming at any one or more elements in the target page and input in the configuration interface, receives a configuration requirement aiming at the target page in the configuration interface, inquires at least one reference configuration instruction corresponding to the configuration requirement in a preset database according to the configuration requirement, receives a selection operation aiming at any one reference configuration instruction in the at least one reference configuration instruction, and updates the target page according to the selected reference configuration instruction. By implementing the method, the page can be analyzed to obtain the configuration interface, so that developers can modify data in the configuration interface to update the page, and the updating efficiency of the page is improved.
A data processing apparatus according to an embodiment of the present invention will be described in detail with reference to fig. 4. It should be noted that the data processing apparatus shown in fig. 4 is used for executing the method according to the embodiment of the present invention shown in fig. 1-3, for convenience of description, only the portion related to the embodiment of the present invention is shown, and details of the specific technology are not disclosed, and reference is made to the embodiment of the present invention shown in fig. 1-3.
Referring to fig. 4, which is a schematic structural diagram of a data processing apparatus according to the present invention, the data processing apparatus 40 may include: the device comprises an acquisition module 401, an analysis module 402, a determination module 403, a receiving module 404 and an updating module 405.
An obtaining module 401, configured to obtain a target page;
an analyzing module 402, configured to analyze the target page to obtain page information corresponding to the target page, where the page information includes at least one element constituting the target page and a connection relationship between the elements;
a determining module 403, configured to determine, according to the page information, a configuration interface for the target page, where the configuration interface includes an element structure tree diagram constructed by the connection relationship and initial style information of each element;
a receiving module 404, configured to receive a configuration instruction for any one or more elements in the target page, where the configuration instruction indicates a style corresponding to each element in the target page, and is input in the configuration interface;
an updating module 405, configured to update the target page according to the configuration instruction.
In an implementation manner, the parsing module 402 is specifically configured to:
acquiring a source code corresponding to the target page;
determining at least one element constituting the target page based on at least one object included in the source code, and,
determining a connection relationship between the respective elements based on the coding structure of the at least one object.
In an implementation manner, the determining module 403 is specifically configured to:
determining a root element and a sub-element in the at least one element according to the connection relation between the elements in the target page, and correspondingly connecting the root element and the sub-element to obtain an element structure tree diagram corresponding to the target page;
and placing the initial style information of each element in the target page at a corresponding position in the element structure tree diagram to obtain a configuration interface aiming at the target page.
In one implementation, the determining module 403 is further configured to:
acquiring a historical configuration instruction input by aiming at each element of a historical record, wherein the historical configuration instruction comprises at least one historical configuration item;
determining the configuration frequency of each historical configuration item in the historical configuration instruction, and determining the historical configuration item with the configuration frequency greater than the preset frequency as a recommended configuration item;
and when a display triggering instruction is detected, displaying the recommended configuration item in a configuration interface aiming at the target page.
In an implementation manner, the update module 405 is specifically configured to:
detecting the similarity between the configuration instruction and each preset configuration instruction in a preset configuration instruction set;
if a target preset configuration instruction with the similarity larger than the preset similarity exists, displaying a target preset page corresponding to the target preset configuration instruction in the configuration interface in a thumbnail mode;
when a selection instruction for the target preset page is received, the configuration instruction is adjusted to be the target preset configuration instruction, and the target page is updated according to the target preset configuration instruction.
In an implementation manner, the update module 405 is specifically configured to:
changing the style of each element in the target page according to the configuration instruction;
and displaying each element after the style change in the target page so as to update the target page.
In one implementation, the update module 405 is further configured to:
receiving configuration requirements aiming at the target page in the configuration interface;
inquiring at least one reference configuration instruction corresponding to the configuration requirement in a preset database;
receiving a selection operation aiming at any one of the at least one reference configuration instruction;
and updating the target page according to the selected reference configuration instruction.
In the embodiment of the present invention, the obtaining module 401 obtains a target page, the analyzing module 402 analyzes the target page to obtain page information corresponding to the target page, the determining module 403 determines a configuration interface for the target page according to the page information, the receiving module 404 receives a configuration instruction for any one or more elements in the target page, which is input in the configuration interface, and the updating module 405 updates the target page according to a target preset configuration instruction. By implementing the method, the page can be analyzed to obtain the configuration interface, so that developers can modify data in the configuration interface to update the page, and the updating efficiency of the page is improved.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 5, the terminal includes: at least one processor 501, an input device 503, an output device 504, a memory 505, at least one communication bus 502. Wherein a communication bus 502 is used to enable connective communication between these components. The input device 503 may be a control panel, a microphone, or the like, and the output device 504 may be a display screen, or the like. The memory 505 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 505 may alternatively be at least one memory device located remotely from the processor 501. Wherein the processor 501 may be combined with the apparatus described in fig. 4, the memory 505 stores a set of program codes, and the processor 501, the input device 503, and the output device 504 call the program codes stored in the memory 505 to perform the following operations:
a processor 501, configured to obtain a target page;
the processor 501 is configured to analyze the target page to obtain page information corresponding to the target page, where the page information includes at least one element constituting the target page and a connection relationship between the elements;
a processor 501, configured to determine, according to the page information, a configuration interface for the target page, where the configuration interface includes an element structure tree diagram constructed by the connection relationship and initial style information of each element;
a processor 501, configured to receive a configuration instruction for any one or more elements in the target page, where the configuration instruction indicates a style corresponding to each element in the target page, and is input in the configuration interface;
and the processor 501 is configured to update the target page according to the configuration instruction.
In one implementation, the processor 501 is specifically configured to:
acquiring a source code corresponding to the target page;
determining at least one element constituting the target page based on at least one object included in the source code, and,
determining a connection relationship between the respective elements based on the coding structure of the at least one object.
In one implementation, the processor 501 is specifically configured to:
determining a root element and a sub-element in the at least one element according to the connection relation between the elements in the target page, and correspondingly connecting the root element and the sub-element to obtain an element structure tree diagram corresponding to the target page;
and placing the initial style information of each element in the target page at a corresponding position in the element structure tree diagram to obtain a configuration interface aiming at the target page.
In one implementation, the processor 501 is specifically configured to:
acquiring a historical configuration instruction input by aiming at each element of a historical record, wherein the historical configuration instruction comprises at least one historical configuration item;
determining the configuration frequency of each historical configuration item in the historical configuration instruction, and determining the historical configuration item with the configuration frequency greater than the preset frequency as a recommended configuration item;
and when a display triggering instruction is detected, displaying the recommended configuration item in a configuration interface aiming at the target page.
In one implementation, the processor 501 is specifically configured to:
detecting the similarity between the configuration instruction and each preset configuration instruction in a preset configuration instruction set;
if a target preset configuration instruction with the similarity larger than the preset similarity exists, displaying a target preset page corresponding to the target preset configuration instruction in the configuration interface in a thumbnail mode;
when a selection instruction for the target preset page is received, the configuration instruction is adjusted to be the target preset configuration instruction, and the target page is updated according to the target preset configuration instruction.
In one implementation, the processor 501 is specifically configured to:
changing the style of each element in the target page according to the configuration instruction;
and displaying each element after the style change in the target page so as to update the target page.
In one implementation, the processor 501 is specifically configured to:
receiving configuration requirements aiming at the target page in the configuration interface;
inquiring at least one reference configuration instruction corresponding to the configuration requirement in a preset database;
receiving a selection operation aiming at any one of the at least one reference configuration instruction;
and updating the target page according to the selected reference configuration instruction.
In the embodiment of the present invention, the processor 501 obtains a target page, the processor 501 analyzes the target page to obtain page information corresponding to the target page, the processor 501 determines a configuration interface for the target page according to the page information, the processor 501 receives a configuration instruction for any one or more elements in the target page, which is input in the configuration interface, and the processor 501 updates the target page according to a target preset configuration instruction. By implementing the method, the page can be analyzed to obtain the configuration interface, so that developers can modify data in the configuration interface to update the page, and the updating efficiency of the page is improved.
The module in the embodiment of the present invention may be implemented by a general-purpose integrated circuit, such as a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC).
It should be understood that, in the embodiment of the present invention, the Processor 501 may be a Central Processing Unit (CPU), and the Processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Bus 402 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like, and bus 502 may be divided into an address bus, a data bus, a control bus, or the like, with fig. 5 being represented by a single bold line for ease of illustration, but not by a single bus or type of bus.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The computer-readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. A method of data processing, the method comprising:
acquiring a target page;
analyzing the target page to obtain page information corresponding to the target page, wherein the page information comprises at least one element forming the target page and a connection relation between the elements;
determining a configuration interface aiming at the target page according to the page information, wherein the configuration interface comprises an element structure tree diagram constructed by the connection relation and initial style information of each element;
receiving a configuration instruction for any one or more elements in the target page, which is input in the configuration interface, wherein the configuration instruction indicates a style corresponding to each element in the target page;
and updating the target page according to the configuration instruction.
2. The method of claim 1, wherein the analyzing the target page to obtain page information corresponding to the target page comprises:
acquiring a source code corresponding to the target page;
determining at least one element constituting the target page based on at least one object included in the source code, and,
determining a connection relationship between the respective elements based on the coding structure of the at least one object.
3. The method of claim 1, wherein determining a configuration interface for the target page according to the page information comprises:
determining a root element and a sub-element in the at least one element according to the connection relation between the elements in the target page, and correspondingly connecting the root element and the sub-element to obtain an element structure tree diagram corresponding to the target page;
and placing the initial style information of each element in the target page at a corresponding position in the element structure tree diagram to obtain a configuration interface aiming at the target page.
4. The method of claim 3, wherein after placing the initial style information of each element in the target page at a corresponding position in the element structure tree, the method further comprises:
acquiring a historical configuration instruction input by aiming at each element of a historical record, wherein the historical configuration instruction comprises at least one historical configuration item;
determining the configuration frequency of each historical configuration item in the historical configuration instruction, and determining the historical configuration item with the configuration frequency greater than the preset frequency as a recommended configuration item;
and when a display triggering instruction is detected, displaying the recommended configuration item in a configuration interface aiming at the target page.
5. The method of claim 1, wherein after receiving the configuration instruction for any one or more elements in the target page input in the configuration interface, the method further comprises:
detecting the similarity between the configuration instruction and each preset configuration instruction in a preset configuration instruction set;
if a target preset configuration instruction with the similarity larger than the preset similarity exists, displaying a target preset page corresponding to the target preset configuration instruction in the configuration interface in a thumbnail mode;
when a selection instruction for the target preset page is received, the configuration instruction is adjusted to be the target preset configuration instruction, and the target page is updated according to the target preset configuration instruction.
6. The method of claim 1, wherein updating the target page according to the configuration instruction comprises:
changing the style of each element in the target page according to the configuration instruction;
and displaying each element after the style change in the target page so as to update the target page.
7. The method of claim 1, wherein after determining a configuration interface for the target page from the page information, the method further comprises:
receiving configuration requirements aiming at the target page in the configuration interface;
inquiring at least one reference configuration instruction corresponding to the configuration requirement in a preset database;
receiving a selection operation aiming at any one of the at least one reference configuration instruction;
and updating the target page according to the selected reference configuration instruction.
8. A data processing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring a target page;
the analysis module is used for analyzing the target page to obtain page information corresponding to the target page, wherein the page information comprises at least one element forming the target page and a connection relation between the elements;
a determining module, configured to determine, according to the page information, a configuration interface for the target page, where the configuration interface includes an element structure tree diagram constructed by the connection relationship and initial style information of each element;
a receiving module, configured to receive a configuration instruction for any one or more elements in the target page, where the configuration instruction indicates a style corresponding to each element in the target page, and the configuration instruction is input in the configuration interface;
and the updating module is used for updating the target page according to the configuration instruction.
9. A terminal, comprising a processor, an input interface, an output interface, and a memory, the processor, the input interface, the output interface, and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.
CN202010348617.8A 2020-04-28 2020-04-28 Data processing method, device, terminal and medium Pending CN111694549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010348617.8A CN111694549A (en) 2020-04-28 2020-04-28 Data processing method, device, terminal and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010348617.8A CN111694549A (en) 2020-04-28 2020-04-28 Data processing method, device, terminal and medium

Publications (1)

Publication Number Publication Date
CN111694549A true CN111694549A (en) 2020-09-22

Family

ID=72476715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010348617.8A Pending CN111694549A (en) 2020-04-28 2020-04-28 Data processing method, device, terminal and medium

Country Status (1)

Country Link
CN (1) CN111694549A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433741A (en) * 2020-11-24 2021-03-02 北京奇艺世纪科技有限公司 Page processing method, device and system, electronic equipment and storage medium
CN112783493A (en) * 2021-01-29 2021-05-11 北京百度网讯科技有限公司 Style configuration method and device for interface theme, electronic equipment and medium
CN113568653A (en) * 2021-06-30 2021-10-29 展讯半导体(成都)有限公司 Configuration method, configuration device, chip and module equipment thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100192097A1 (en) * 2009-01-26 2010-07-29 Thomas Stanton Brugler Methods for showing user interface elements in an application
CN110262788A (en) * 2019-06-24 2019-09-20 北京三快在线科技有限公司 Page configuration information determines method, apparatus, computer equipment and storage medium
CN110457026A (en) * 2019-08-01 2019-11-15 上海麦克风文化传媒有限公司 A kind of configurable method for updating pages
CN110457037A (en) * 2019-08-01 2019-11-15 上海麦克风文化传媒有限公司 A kind of method for updating pages
CN110955428A (en) * 2019-11-27 2020-04-03 北京奇艺世纪科技有限公司 Page display method and device, electronic equipment and medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100192097A1 (en) * 2009-01-26 2010-07-29 Thomas Stanton Brugler Methods for showing user interface elements in an application
CN110262788A (en) * 2019-06-24 2019-09-20 北京三快在线科技有限公司 Page configuration information determines method, apparatus, computer equipment and storage medium
CN110457026A (en) * 2019-08-01 2019-11-15 上海麦克风文化传媒有限公司 A kind of configurable method for updating pages
CN110457037A (en) * 2019-08-01 2019-11-15 上海麦克风文化传媒有限公司 A kind of method for updating pages
CN110955428A (en) * 2019-11-27 2020-04-03 北京奇艺世纪科技有限公司 Page display method and device, electronic equipment and medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433741A (en) * 2020-11-24 2021-03-02 北京奇艺世纪科技有限公司 Page processing method, device and system, electronic equipment and storage medium
CN112433741B (en) * 2020-11-24 2024-05-17 北京奇艺世纪科技有限公司 Page processing method, device and system, electronic equipment and storage medium
CN112783493A (en) * 2021-01-29 2021-05-11 北京百度网讯科技有限公司 Style configuration method and device for interface theme, electronic equipment and medium
CN113568653A (en) * 2021-06-30 2021-10-29 展讯半导体(成都)有限公司 Configuration method, configuration device, chip and module equipment thereof

Similar Documents

Publication Publication Date Title
CN111694549A (en) Data processing method, device, terminal and medium
WO2017000898A1 (en) Software icon display method and apparatus
CN112099684A (en) Search display method and device and electronic equipment
CN113655999A (en) Rendering method, device and equipment of page control and storage medium
CN113391808A (en) Page configuration method and device and electronic equipment
CN112181252B (en) Screen capturing method and device and electronic equipment
CN108287707B (en) JSX file generation method and device, storage medium and computer equipment
CN112306488A (en) Combined icon generation method, device, equipment and computer readable storage medium
CN106776634A (en) A kind of method for network access, device and terminal device
US20210073458A1 (en) Comic data display system, method, and program
CN115309487A (en) Display method, display device, electronic equipment and readable storage medium
CN112433723B (en) Personalized list development method and device
CN112162805B (en) Screenshot method and device and electronic equipment
CN110908570B (en) Image processing method, device, terminal and storage medium
CN113805709A (en) Information input method and device
CN112950167A (en) Design service matching method, device, equipment and storage medium
CN113010815A (en) Display method and electronic device
CN112286613A (en) Interface display method and interface display device
CN113162840B (en) Display method, display device, electronic apparatus, and readable storage medium
CN114237589A (en) Skeleton screen generation method and device, terminal device and storage medium
CN116170626A (en) Video editing method, device, electronic equipment and storage medium
CN115131649A (en) Content identification method and device and electronic equipment
CN117992621A (en) Multimedia object processing method, system, electronic device and readable storage medium
CN116095389A (en) Program production method, program display method and related equipment
CN114385153A (en) Interface editing method, editing terminal and computer readable 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