WO2021232603A1 - Data processing method and apparatus, processor, electronic device, and storage medium - Google Patents

Data processing method and apparatus, processor, electronic device, and storage medium Download PDF

Info

Publication number
WO2021232603A1
WO2021232603A1 PCT/CN2020/110890 CN2020110890W WO2021232603A1 WO 2021232603 A1 WO2021232603 A1 WO 2021232603A1 CN 2020110890 W CN2020110890 W CN 2020110890W WO 2021232603 A1 WO2021232603 A1 WO 2021232603A1
Authority
WO
WIPO (PCT)
Prior art keywords
data set
displayed
converted
data
module
Prior art date
Application number
PCT/CN2020/110890
Other languages
French (fr)
Chinese (zh)
Inventor
李嘉宾
林桢
干刚
Original Assignee
深圳市商汤科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市商汤科技有限公司 filed Critical 深圳市商汤科技有限公司
Publication of WO2021232603A1 publication Critical patent/WO2021232603A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/43Checking; Contextual analysis
    • G06F8/433Dependency analysis; Data or control flow analysis

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to a data processing method and device, a processor, electronic equipment, and a storage medium.
  • Front-end development is the process of creating front-end pages such as World Wide Web (Web) pages or mobile phone software (Application, App) pages and presenting them to users to realize user page interaction of Internet products.
  • developers can write code according to the display requirements of the page to obtain project files.
  • Use the browser to parse and render the project file to get the display page. Since there are data in the project file that cannot be parsed by the browser, before using the browser to parse the project file, the data in the project file that cannot be parsed by the browser needs to be converted.
  • the embodiments of the present disclosure provide a data processing method and device, a processor, an electronic device, and a storage medium.
  • an embodiment of the present disclosure provides a data processing method, the method includes: acquiring a first data set to be displayed; the first data set to be displayed includes a first data set to be converted; The beginning of the converted data set is a first character string, and the end of the first to-be-converted data set is a second character string; and the first character string and the first character string are intercepted from the first to-be-converted data set.
  • the second character string to be converted is obtained by intercepting the character string contained in the content part from the first to-be-converted data set. Performing conversion processing on the second character string to be converted can improve conversion accuracy while obtaining a conversion data set whose data type is the first type.
  • the first data set to be converted includes data in a conversion directory and/or a third data set to be converted; the third data set to be converted is the first data set to be displayed Data at the end of the third character string; the conversion directory belongs to the first data set to be displayed.
  • the method further includes: using the browser to render the converted data set and the data in the first to-be-displayed data set other than the first to-be-converted data set to obtain Display the page.
  • the method further includes: compiling data in the first to-be-displayed data set excluding the first to-be-converted data set and the converted data set to obtain a second to-be-displayed data set; and displaying the compiled Compilation information; the compilation information includes at least one of the following: compilation status, compilation progress, and errors in the compilation process; the use of the browser to render the converted data set and the first to-be-displayed data set Obtaining the display page with data outside the first data set to be converted includes: using the browser to render the second data set to be displayed to obtain the display page.
  • the first data set to be displayed includes a first module data set; in the compilation of the first data set to be displayed, data other than the first data set to be converted and all data In the converted data set, before obtaining the second data set to be displayed, the method further includes: obtaining a second module data set; the data format of the second module data set is the same as the data format of the first module data set , And the directory structure of the second module data set is the same as the directory structure of the first module data set; adding the second module data set to the first data set to be displayed, to obtain third data to be displayed
  • the compiling of the data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set to obtain a second to-be-displayed data set includes: compiling the third The data in the data set to be displayed except the first data set to be converted and the converted data set are established, and the dependency relationship between the second module data set and the first module data set is established to
  • the first data set to be displayed includes a third module data set and a fourth module data set; the data format of the third module data set and the data format of the fourth module data set The same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set; Data and the converted data set, before the second to-be-displayed data set is obtained, the method further includes: in the case of receiving an instruction to delete the third module data set, from the first to-be-displayed data set The third module data set is deleted to obtain a fourth data set to be displayed; the data in the first data set to be displayed except for the first data set to be converted and the converted data set are obtained by compiling
  • the second to-be-displayed data set includes: deleting the third module data set and the converted data set by compiling the data in the fourth to-be-displayed data set except for the first to-be-converted data set and the converted data set.
  • the dependency relationship between the data sets of the fourth module is described to
  • the method further includes: in the case that the compilation information includes an error occurred during the compilation process, translating the first error occurred during the compilation process to obtain the second error; and displaying The second error.
  • the method further includes: in a case where a preview instruction for the first data set to be displayed is received, displaying the content indicated by the first data set to be displayed.
  • the first data set to be displayed includes at least one of the following: a retrieval module, a deployment control module, an archive module, and a technique module; the retrieval module is used to perform data in the database according to retrieval conditions. Retrieval; the deployment control module is used to display the acquired video stream and/or image; the archive module is used to store character information and/or vehicle information; the technique module is used to display at least one first image Reconnaissance technique tactics, and receiving at least one second picture reconnaissance technique tactics selected by the user from the at least one first picture reconnaissance technique tactics.
  • embodiments of the present disclosure also provide a data processing device, the device including:
  • the obtaining unit is configured to obtain a first data set to be displayed; the first data set to be displayed includes a first data set to be converted; the beginning of the first data set to be converted is a first character string, and the first data set to be converted The end of the converted data set is the second string;
  • An interception unit configured to intercept the character string located between the first character string and the second character string from the first data set to be converted to obtain a second data set to be converted;
  • the conversion unit is configured to perform conversion processing on the second data set to be converted to obtain a converted data set whose data type is a first type; the first type is a data type that can be parsed by a browser.
  • the first data set to be converted includes data in a conversion directory and/or a third data set to be converted; the third data set to be converted is the first data set to be displayed Data at the end of the third character string; the conversion directory belongs to the first data set to be displayed.
  • the device further includes:
  • the rendering unit is configured to use the browser to render the converted data set and the data in the first to-be-displayed data set except for the first to-be-converted data set to obtain a display page.
  • the device further includes:
  • the compiling unit is configured to compile the converted data set and the data in the first to-be-displayed data set excluding the first to-be-converted data set by using the browser to obtain a display page. Data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed;
  • the first display unit is configured to display the compilation information of the compilation; the compilation information includes at least one of the following: compilation status, compilation progress, and errors in the compilation process;
  • the rendering unit is configured to use the browser to render the second data set to be displayed to obtain the display page.
  • the first data set to be displayed includes a first module data set
  • the acquiring unit is further configured to compile data other than the first to-be-converted data set and the converted data set in the first to-be-displayed data set to obtain a second to-be-displayed data set, Obtain a second module data set; the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as that of the first module data set The directory structure is the same;
  • the device further includes: an adding unit configured to add the second module data set to the first data set to be displayed to obtain a third data set to be displayed;
  • the compiling unit is configured to compile data in the third to-be-displayed data set excluding the first to-be-converted data set and the converted data set to establish the second module data set and the first data set
  • the dependency relationship between a module data set is obtained to obtain the second to-be-displayed data set.
  • the first data set to be displayed includes a third module data set and a fourth module data set; the data format of the third module data set and the data format of the fourth module data set The same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set;
  • the device further includes a deleting unit configured to compile data other than the first to-be-converted data set and the converted data set in the first to-be-displayed data set to obtain second to-be-displayed data Before the collection, in the case of receiving an instruction to delete the third module data set, delete the third module data set from the first to-be-displayed data set to obtain a fourth to-be-displayed data set;
  • the compiling unit is configured to delete the third module data set and the first data set by compiling data in the fourth data set to be displayed except for the first data set to be converted and the converted data set.
  • the dependency relationship among the four module data sets is obtained to obtain the second data set to be displayed.
  • the first display unit is further configured to translate the first error that occurs during the compilation process when the compilation information includes errors that occur during the compilation process to obtain the first error Second error; the second error is displayed.
  • the device further includes: a second display unit configured to display the data set of the first data set to be displayed when a preview instruction for the first data set to be displayed is received The content of the instructions.
  • the first data set to be displayed includes at least one of the following: a retrieval module, a deployment control module, an archive module, and a technique module; the retrieval module is used to perform data in the database according to retrieval conditions. Retrieval; the deployment control module is used to display the acquired video stream and/or image; the archive module is used to store character information and/or vehicle information; the technique module is used to display at least one first image Reconnaissance technique tactics, and receiving at least one second picture reconnaissance technique tactics selected by the user from the at least one first picture reconnaissance technique tactics.
  • the embodiments of the present disclosure also provide a processor, which is used to analyze the above-mentioned first aspect and any one of the possible implementation methods thereof.
  • embodiments of the present disclosure also provide an electronic device, including: a processor, a sending device, an input device, an output device, and a memory, the memory is used to store computer program code, and the computer program code includes computer instructions
  • the electronic device analyzes the method such as the above-mentioned first aspect and any one of its possible implementation manners.
  • the embodiments of the present disclosure also provide a computer-readable storage medium in which a computer program is stored, the computer program includes program instructions, and the program instructions are executed by a processor.
  • the processor is caused to analyze the method of the above-mentioned first aspect and any one of its possible implementation modes.
  • the embodiments of the present disclosure also provide a computer program product.
  • the computer program product includes a computer program or instruction.
  • the computer program or instruction is parsed on a computer, the computer is caused to parse the above-mentioned first On the one hand and any possible implementation methods.
  • FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the disclosure
  • FIG. 2 is an architecture diagram of a front-end framework provided by an embodiment of the disclosure
  • FIG. 3 is a schematic structural diagram of a data processing device provided by an embodiment of the disclosure.
  • FIG. 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the disclosure.
  • Front-end development is the process of creating front-end pages such as Web pages or App and presenting them to users in order to realize the user page interaction of Internet products.
  • developers can write code according to the display requirements of the page to obtain project files.
  • the running device (which can be one of the following: computer, server, tablet) uses the browser to parse the project file, and obtains the data that needs to be displayed from the background device (which can be a server).
  • the running device uses the browser to render the project file and the data to be displayed to get the display page.
  • the browser has requirements for the type of data to be parsed (the data type that can be parsed by the browser is referred to as the target type below), in order to make the project file parsed by the browser and display the page that meets the expectations, use the browser to parse the project Before the file, it is necessary to transform the data in the project file whose data type is not the target data type, so that the project file can be parsed by the browser.
  • the target type the data type that can be parsed by the browser.
  • the target data type is js.
  • the project file contains Cascading Style Sheets (CSS) data, and the CSS data cannot be parsed by the browser. Therefore, before using the browser to parse the project file, the CSS data needs to be converted into js data.
  • CSS Cascading Style Sheets
  • the data type that the browser can parse is js data
  • the target data type is js.
  • the project file contains pictures, and the pictures cannot be parsed by the browser. Therefore, before using the browser to parse the project files, the pictures need to be converted into js data.
  • each character in the project file is parsed and converted to obtain data that can be parsed by the browser, and then the page can be displayed through the browser.
  • the conversion accuracy is low due to the inability to parse part of the character string.
  • the project file includes the string A, where the string A is: **#""read""/n. Convert the string A to get the string B.
  • the content indicated by the string B is different from the content indicated by the string A because the read in the string A cannot be parsed correctly.
  • the embodiments of the present disclosure provide a front-end framework that uses a browser to parse the project files obtained by front-end development based on the front-end framework, which can improve the conversion accuracy.
  • the execution subject of the embodiments of the present disclosure is a data processing device.
  • the data processing device may be one of the following: a computer and a server.
  • FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the present disclosure.
  • the first data set to be displayed includes a first data set to be converted, the beginning of the first data set to be converted is a first character string, and the data set of the first data set to be converted The end is the second string.
  • the first data set to be displayed is data that needs to be displayed on the page during the front-end development process.
  • the first data set to be displayed includes project files developed based on the front-end framework and data to be displayed.
  • the first data set to be converted is the data set that needs to be converted in the first data set to be displayed, that is, the data type of the first data set to be converted is not the target type.
  • the first data set to be converted may include at least one line of code.
  • displaying a pop-up window on the page can be implemented by a pop-up window module in the first data set to be displayed, where the pop-up window module includes at least one line of code.
  • the first data set to be converted may be a pop-up module.
  • a search function can be realized through a page, and the search function is realized by a search module in the first data set to be displayed, wherein the search module includes at least one line of code.
  • the first data set to be converted may be a search module.
  • the format of the first data set to be converted is determined. Since each character string in the first to-be-converted data set includes three parts: beginning, end, and content, if the format of the first to-be-converted data set is determined, the character string contained in the beginning part (that is, the first character string) The character strings (ie, the second character strings) contained in the and end parts are determined, and the content indicated by each character string in the first to-be-converted data set is the character string contained in the content part.
  • the first data set to be converted includes %&
  • the end part of the first data set to be converted includes *#
  • the first data set to be converted includes character string A, where character string A is %&eat lunch* #.
  • the beginning part of the string A is %&
  • the end part of the string A is *#
  • the content part of the string A is eat lunch
  • the content indicated by the string A is eat lunch.
  • the specific content contained in the first character string and the specific content contained in the second character string can be adjusted according to the needs of the user, which is not limited in the embodiment of the present disclosure.
  • the first character string and the second character string may be the same or different.
  • the first character string is "abc”
  • the second character string is also “abc”.
  • the first character string is "abc”
  • the second character string is "def”.
  • the front-end framework receives front-end development instructions (such as development commands).
  • the development device displays the development rules.
  • the development rules are used to guide developers to develop project files based on the development rules of the front-end framework. For example, place the data set to be converted between the first character string and the second character string.
  • the data processing device receives the first data set to be displayed input by the user through the input component.
  • the above-mentioned input components include: at least one of input components such as a keyboard, a mouse, a touch screen, a touch pad, and an audio input device.
  • the data processing device is a computer, and there is a communication connection between the computer and the keyboard. The user can write code through the keyboard, and the keyboard can transmit the code written by the user to the computer. In the case where the data type of the code written by the user is not the target data type, the computer uses the code written by the user as the first data set to be displayed.
  • the data processing apparatus receives the first data set to be displayed sent by the first terminal.
  • the first terminal may be any one of the following: a mobile phone, a computer, a tablet computer, a server, and a wearable device.
  • the data of the target type is obtained by transforming the first data set to be converted, it is also necessary to make the content indicated by the converted data set the same as the content indicated by the first data set to be converted.
  • the conversion accuracy is low (as in Example 1).
  • the embodiment of the present disclosure adopts the character string contained in the content part to be truncated from the first data set to be converted as the first Second, the data set to be converted. By converting the second data set to be converted, the accuracy of the conversion can be improved while obtaining data of the target type.
  • the first character string and the second character string are determined from the first to-be-converted data set, and the first character string and the second character string are intercepted.
  • the character string between the two character strings obtains the second data set to be converted.
  • the first data set to be converted includes a character string A, where the character string A is: #a&bclick/n**.
  • the first string is: a&b
  • the second string is: /n
  • the string between the first string and the second string is click (hereinafter referred to as the fourth string), therefore, from the first string
  • the second to-be-converted data set intercepted and obtained in a to-be-converted data set includes a fourth character string.
  • the first data set to be converted includes a character string A, where the character string A is: #a&bclicks/n**#a&book/n**.
  • the second to-be-converted data set intercepted from the first to-be-converted data set includes the fifth character string and the sixth character string.
  • the first data set to be converted includes a string A and a string B, where the string A is: a&bclick/n, and the string B is: a&bbook/n. Assuming that the first string is: a&b, and the second string is: /n, that is, both string A and string B are strings starting with the first string and ending with the second string.
  • the seventh character string intercepted in a data set to be converted includes character string A and character string B. Remove the beginning and end of string A, the resulting string is: click (hereinafter referred to as string C), remove the beginning and end of string B, and the resulting string is: book (hereinafter referred to as character String D).
  • the second to-be-converted data set intercepted from the first to-be-converted data set includes a character string C and a character string D.
  • the first type is a data type that can be parsed by the browser, that is, the data that can be parsed by the browser is the first type of data.
  • the conversion processing includes format conversion and semantic analysis.
  • semantic analysis can be performed on the second data set to be converted to parse the data indicated by the second data set to be converted.
  • Content and perform format conversion and packaging processing on the second data set to be converted to obtain the converted data set.
  • the content indicated by the converted data set is the same as the content indicated by the second data set to be converted, and the data type of the converted data set is the first type, that is, the converted data set can be parsed by the browser.
  • the embodiment of the present disclosure obtains the second character string to be converted by intercepting the character string contained in the content part from the first to-be-converted data set. Performing conversion processing on the second character string to be converted can improve conversion accuracy while obtaining a converted data set whose data type is the first type.
  • a converter is used to perform conversion processing on the second data set to be converted to obtain the converted data set.
  • the developer can store the first data set to be converted in the project file during the process of writing the project file Under the conversion directory of the project file (that is, the conversion directory in the first data set to be displayed).
  • the data processing device can determine the conversion directory from the first to-be-displayed data set, and use the data stored in the conversion directory as the first to-be-converted data set, so as to reduce the amount of data processing and increase the processing speed.
  • the name of the transformation directory is "transformation”.
  • the data processing device may determine a directory named "transformation" from the first to-be-displayed data set, and use the data stored in the directory as the first to-be-transformed data set.
  • the data processing device may output a prompt to the developer: writing the first data set to be converted in the first format.
  • the data processing device can determine the data in the first format from the first data set to be displayed, and use the data in the first format as the first data set to be converted, so as to reduce the amount of data processing and increase the processing speed. For example, suppose the first format is data ending with a reference character string, where the reference character string is .md. The data processing device determines data ending in .md from the first data set to be displayed as the first data set to be converted.
  • the developer in the process of writing the project file, can store the first data set to be converted in the conversion directory of the project file (that is, the conversion directory in the first data set to be displayed), It is also possible to write the first data set to be converted in the first format.
  • the data processing device can set the data stored in the conversion directory and the first data to be displayed to determine the data having the first format as the first data set to be converted.
  • the first data set to be converted includes the data in the conversion directory and/or the third data set to be converted; the third data set to be converted is the first data set to be displayed that ends with a third character string Data; the conversion catalog belongs to the first to-be-displayed data set.
  • the data format includes at least one of the following: syntax and meaning of operators.
  • the grammar in the data format may mean: a project file includes at least one custom class, and the custom class needs to be declared with the keyword class.
  • the above-mentioned first format can be formulated according to requirements, which is not limited in the embodiment of the present disclosure.
  • the data processing device After obtaining the converted data set, the data processing device performs the following steps:
  • the display page displays the content indicated by the first data set to be displayed.
  • the embodiment of the present disclosure obtains the second character string to be converted by intercepting the character string contained in the content part from the first to-be-converted data set. Performing the conversion processing on the second character string to be converted can improve the accuracy of the conversion while obtaining the conversion data set of the first type of data type, thereby improving the accuracy of page display.
  • the method further includes: compiling the data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain the browser Renderable second data set to be displayed; then use the browser to render the converted data set and the data in the first data set to be displayed except for the first data set to be converted to obtain the display page, including: using the browser to render The second to-be-displayed data set obtains a display page, and the data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set are rendered.
  • the compilation information of the compilation process may be displayed, wherein, The compilation information includes at least one of the following: compilation status, compilation progress, and errors during compilation.
  • the above-mentioned compilation status includes compilation success or compilation failure. Specifically, in the case that the data in the first to-be-displayed data set other than the first to-be-converted data set and the converted data set are successfully compiled by the data processing device, the compilation status includes the compilation Success, if the data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set are not successfully compiled by the data processing device, the compilation status includes compilation failure.
  • the foregoing compilation progress includes the ratio of the amount of compiled data to the data in the first to-be-displayed data set excluding the first to-be-converted data set and the data amount of the converted data set.
  • the data volume of the data in the first data set to be displayed except the first data set to be converted is 3 megabytes (Mbyte, MB)
  • the data volume of the converted data set is 1 megabyte (Mbyte, MB)
  • compiled The data volume of the file is 1 byte (Byte)
  • the compilation progress is 25%.
  • the developer can obtain the data in the first to-be-displayed data set except the first to-be-converted data set and the compiled information of the converted data set in time through the data device, so that the developer can arrange the corresponding work. Thereby improving the development efficiency of developers.
  • the data processing apparatus may realize the display of the above-mentioned compilation information through a plug-in.
  • the data processing device is equipped with a display, and a pop-up window pops up in the display page of the display through a plugin, and the pop-up window contains the above-mentioned compilation information.
  • the data processing device is equipped with a display, and at least one plug-in is displayed in a display page in the display through a plugin, and the at least one plug-in contains the above-mentioned compilation information.
  • the above-mentioned compilation information is displayed through at least one plug-in, the contents displayed by any two plug-ins are different.
  • the above-mentioned compilation information includes compilation progress and errors occurred during compilation
  • the at least one plug-in includes a first plug-in and a second plug-in.
  • the compilation progress can be displayed through the first plug-in, and errors in the compilation process can be displayed through the second plug-in.
  • Errors that occur during the compilation process are usually embodied in English text.
  • the errors that occur during the compilation process are referred to as the first error.
  • the data processing device can translate the first error to obtain a second error, where the second error can be any type of text except English.
  • the second error may be manifested in Chinese characters.
  • the second error may be reflected in Japanese text.
  • the second error may be manifested in Latin characters.
  • the method further includes: in the case that the compilation information includes errors that occur during the compilation process, translating the first error that occurs during the compilation process to obtain the second error, and display the second error. Errors can improve the development efficiency of developers.
  • the developer Since the developer is in the process of compiling the first data set to be displayed, it may be necessary to update the first data set to be displayed according to the expected demand. For example, in the process of compiling the first data set to be displayed, due to a compilation error, the first data set to be displayed cannot be successfully compiled. At this time, the expected requirement is that the first data set to be displayed can be successfully compiled, and the developer needs to update the first data set to be displayed so that the updated first data set to be displayed can be successfully compiled by the data processing device. For another example, a developer wants to add a search function to the first data set to be displayed by updating the first data set to be displayed. At this time, the expected demand is to add a search function.
  • the method of updating the first data set to be displayed can be realized by adjusting the first data set to be displayed, wherein adjusting the first data set to be displayed includes at least one of the following: modifying data in the first data set to be displayed, deleting Add the data in the first data set to be displayed and add data to the first data set to be displayed.
  • the developer needs to compile the updated first to-be-displayed data set and analyze the compiled first to-be-displayed data set to know whether the functions implemented by the updated first to-be-displayed data set meet the expected requirements, need Switching between at least two pages, or even between at least two devices, will reduce the development efficiency of developers.
  • the page for writing the first data set to be displayed or updating the first data set to be displayed is page A
  • the page displayed by the browser is page B.
  • Developers who want to view the effect of any function in the first to-be-displayed data set need to write the first to-be-displayed data set or update the first to-be-displayed data set in page A, and analyze and compile by viewing the browser in page B
  • the subsequent display effect of the first data set to be displayed is used to determine the effect of the function in the first data set to be displayed.
  • the data processing device may receive the display of the content indicated by the first to-be-displayed data set.
  • the content indicated by the first data set to be displayed is displayed without page switching.
  • the method further includes: when the data processing device receives the preview instruction of the first to-be-displayed data set, displaying the content indicated by the first to-be-displayed data set.
  • the data processing device receives the preview instruction (ie check) input by the developer, it reads the document A, and displays the document A through the data processing device.
  • displaying document A and writing the first document can be implemented through different windows.
  • the display page of the data processing device includes a window a and a window b, wherein the window a is used to display the first document and receive an update instruction for the first document (that is, the developer can update the first document by inputting the update instruction into the window a).
  • Document a pop-up window b, where window b is used to display document A.
  • the preview instruction is a save instruction.
  • the developer inputs to the data processing device an instruction to save the updated first data set to be displayed, and the data processing device receives the saved and updated first data set to be displayed
  • execute the compiled and updated first data set to be displayed to obtain the compiled first data set to be displayed, and display the updated first data set to be displayed by parsing the compiled first data set to be displayed The content indicated by the data set.
  • the developer can view the content indicated by the first data set to be displayed in real time (including viewing the documents in the first data set to be displayed, and viewing the functions realized by the first data set to be displayed). Switch pages or change equipment to improve the development efficiency of developers.
  • the functions required to be implemented by the first data set to be displayed can be allocated to at least two developers, so that each developer is responsible for different functions.
  • the functions to be implemented by the first data set to be displayed include function A, function B, and function C.
  • the realization of function A is in charge of developer a
  • the realization of function B is in charge of developer b
  • the function The realization of C is the responsibility of the developer c.
  • Example 3 suppose that the code D written by developer a can realize function A, the code E written by developer b can realize function B, and the code F written by developer c can realize function C. Store code D, code E, and code F in directory d to obtain the first data set to be displayed.
  • code D, code E, and code F in Example 4 are all module data sets. Since there may be a dependency relationship between different module data sets, and each module data set is independent, it is necessary to establish a dependency relationship between the module data set and the module data set before analyzing the first data set to be displayed.
  • Example 5 suppose that module data set A is used to implement function a, and module data set B is used to implement function b. In the process of module data set A to implement function a, data C obtained from module data set B is required . In other words, there is a dependency relationship between the module data set A and the module data set B. By establishing a dependency relationship between the module data set A and the module data set B, in the process of parsing the first data set to be displayed, the module data set B can be made to transmit the data C to the module data set A, so that the module data set A can realize function a.
  • module data set A is used to implement function a
  • module data set B is used to implement function b.
  • module data set B needs to be used to implement function b.
  • the developer needs to consider the dependency relationship between the module data set and the module data set in the process of writing the module data set, and write the corresponding code in the module data set according to the dependency relationship to establish the module data set and the module data Dependencies between sets.
  • Example 5 suppose that the module data set B is developed by Zhang San. In the process of writing module data set B, Zhang San needs to write corresponding code to transfer data C obtained by analyzing module data set B to module data set A.
  • the module data set A is developed by Li Si. In the process of writing module data set A, Li Si needs to write the corresponding code to make module data set A call module data set B in the process of parsing module data set A.
  • the first data set to be displayed includes the first module data set, and the module data set added by the developer to the directory where the first data set to be displayed is located is called the second module data set, where ,
  • the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as the directory structure of the first module data set.
  • the method further includes: the data processing device obtains the second module data set and In the case of an instruction to add the second module data set to the first data set to be displayed, the second module data set is added to the first data set to be displayed to obtain a third data set to be displayed.
  • compiling the data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set to obtain the second to-be-displayed data set includes: the data processing device compiles the third to-be-displayed data set except for the first A data set other than the data set to be converted and the converted data set are established, and the dependency relationship between the second module data set and the first module data set is established, and the second data set to be displayed can be obtained.
  • the data in the first module data set can be searched according to the directory structure of the first module data set, and the first module data can be parsed according to the data format of the first module data set Centralized data. Since the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as the directory structure of the first module data set, the data processing device can use Find the data in the data set of the first module to find the data in the data set of the second module, and analyze the data in the data set of the second module by analyzing the data in the data set of the first module, and then establish the data set of the first module and the data set of the second module. The dependency between the data sets of the two modules.
  • compile the third to-be-displayed data set except for the first to-be-converted data The data outside the set and the converted data set establish a dependency relationship between the second module data set and the first module data set.
  • the data processing device may compile the third to-be-displayed data set to establish a dependency relationship between the first module data set and the second module data set, which is beneficial to improve the development efficiency of developers.
  • developers only need to make the directory structure of the second module data set the same as the directory structure of the first module data set in the process of writing the second module data set, and make the data of the second module data set the same.
  • the format is the same as the data format of the first module data set, and the second module data set is added to the directory of the first data set to be displayed. That is, the data processing device can compile the data in the third data set to be displayed except the first data set to be converted and the converted data set to establish the compiled module data set and the module data in the first data set to be displayed Dependencies between sets. There is no need to write the dependency relationship between the second module data set and the first module data set in the process of writing the second module data set, thereby improving the development efficiency of developers.
  • the module data set A in the first data set to be displayed is used to implement function a, and function a does not need to be implemented now. Therefore, the module data set A in the first data set to be displayed needs to be deleted.
  • the first data set to be displayed includes a third module data set and a fourth module data set.
  • the data format of the third module data set is the same as the data format of the fourth module data set
  • the directory structure of the third module data set is the same as the directory structure of the fourth module data set.
  • the method further includes: when the data processing device receives the instruction to delete the third module data set, the data processing device executes the compilation of the first data set to be displayed except for the first data set to be converted. Before the operation of the data outside the data set and the converted data set, the second data set to be displayed is obtained, the third module data set is deleted from the first data set to be displayed, and the fourth data set to be displayed is obtained.
  • the data processing device can search for data in the fourth module data set according to the directory structure of the fourth module data set, and parse the fourth module data according to the data format of the fourth module data set Collect the data, and then determine the storage path of the dependency relationship under the fourth module data set. According to the storage path, the dependency relationship between the fourth module data set and the third module data set is deleted.
  • delete the third module data set by compiling the data in the fourth data set to be displayed except the first data set to be converted and the converted data set
  • the dependency relationship with the fourth module data set is used to obtain the second data set to be displayed.
  • the data processing device can delete the dependency between the third module data set and the fourth module data set by compiling the fourth data set to be displayed, which is beneficial to improve the development efficiency of developers.
  • the module data set in the data set For example, suppose that the module data set A in the first data set to be displayed is used to implement function a, and the function a needs to be optimized. The effect of the optimization function a can be achieved by modifying the module data set A in the first data set to be displayed.
  • Modifying the module data set in the first data set to be displayed will also cause the dependency relationship between the module data set and the module data set to change.
  • the first data set to be displayed includes a module data set A and a module data set B, where there is a dependency relationship between the module data set A and the module data set B.
  • the data processing device modifies the module data set A to obtain the module data set C, wherein there is a dependency relationship between the module data set C and the module data set B.
  • the data set obtained by modifying the modified module data set is called the modified module data set.
  • the data set obtained by modifying the first data set to be displayed is referred to as the modified first data set to be displayed.
  • the dependency relationship between the modified module data set and the module data set in the first data set to be displayed can be deleted, and the modification can be established The dependency relationship between the subsequent module data set and the module data set in the first data set to be displayed.
  • the modified module data set is module data set A
  • the modified module data set is module data set C
  • the modified first data set to be displayed includes module data set B and module data set C.
  • the embodiments of the present disclosure also provide a possible application scenario.
  • front-end development has developed rapidly, and front-end development has greatly enriched in content, form, and function.
  • front-end business needs can be well met through front-end development, but the workload required for front-end development is large. Therefore, how to effectively improve front-end development efficiency becomes very meaningful.
  • the front-end development based on the front-end framework provided by the embodiments of the present disclosure can improve development efficiency.
  • the architecture diagram of the front-end framework can be seen in Figure 2.
  • the front-end framework includes a business layer, a component layer, an intermediate service layer, and a data exchange layer.
  • the device that runs the project file developed based on the front-end framework (hereinafter referred to as the running device.
  • the running device includes a computer) can obtain data from the back-end device through the data exchange layer.
  • the background device includes a server.
  • the middle service layer is used to store the data obtained by the data exchange layer from the back-end devices and provide the business layer with the data needed to complete the business requirements.
  • the business layer includes the above-mentioned module data set.
  • the running device uses the browser to render the module data set in the business layer and the data of the middle service layer (that is, the first data set to be displayed), which can realize front-end display and obtain a display page.
  • the business layer includes a loader.
  • the operating device uses the loader in the business layer to convert the first data set to be displayed to obtain the converted data type of the first type. data set.
  • the component layer includes various plug-ins needed for page display.
  • the business layer may use a plug-in (for example, plugin) in the component layer to display the compilation information.
  • a plug-in for example, plugin
  • display errors in the compilation process For example, display errors in the compilation process; display compilation status; display compilation progress.
  • the compiled information of the first data set to be displayed can be displayed in the form of a pop-up window, and the component layer includes files that implement the pop-up window function.
  • the running device can also use the plug-in in the component layer to display the data in the page Display the content corresponding to the module data set in the business layer.
  • the business layer (that is, the first data set to be displayed) includes at least one of the following: a retrieval module, a deployment control module, an archive module, and a technique module.
  • the retrieval module is used to retrieve data in the database according to retrieval conditions.
  • the content corresponding to the retrieval module in the display page may be a retrieval column.
  • the deployment control module is used to display the acquired video stream and/or image.
  • the archive module is used to store character information and/or vehicle information.
  • the content corresponding to the deployment control module on the display page may be a display area of character information and/or vehicle information.
  • the technical warfare module is used to display at least one first graphical detection technical warfare and receive at least one second graphical detection technical warfare selected by the user from the at least one first graphical detection technical warfare.
  • the content on the display page corresponding to the technical warfare module may be at least one first-picture reconnaissance technical warfare.
  • the first picture reconnaissance technique is a picture reconnaissance technique that can be selected by the user.
  • the deployment control module is used to obtain The received video stream and/or image, the character information and/or vehicle information in the storage archive module, obtain the image detection result, and display the image detection result in the content corresponding to the technique module.
  • the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process.
  • the specific execution order of each step should be based on its function and possibility.
  • the inner logic is determined.
  • FIG. 3 is a schematic structural diagram of a data processing device provided by an embodiment of the present disclosure.
  • the data processing device 1 includes: an acquisition unit 11, an intercepting unit 12, and a conversion unit 13; among them:
  • the acquiring unit 11 is configured to acquire a first to-be-displayed data set; the first to-be-displayed data set includes a first to-be-converted data set; the beginning of the first to-be-converted data set is a first character string, and the first The end of the data set to be converted is the second character string;
  • the intercepting unit 12 is configured to intercept the character string located between the first character string and the second character string from the first data set to be converted to obtain a second data set to be converted;
  • the conversion unit 13 is configured to perform conversion processing on the second data set to be converted to obtain a converted data set whose data type is a first type; the first type is a data type that can be parsed by a browser.
  • the first data set to be converted includes data in a conversion directory and/or a third data set to be converted; the third data set to be converted is the first data set to be displayed Data at the end of the third character string; the conversion directory belongs to the first data set to be displayed.
  • the device further includes:
  • the rendering unit is configured to use the browser to render the converted data set and the data in the first to-be-displayed data set except for the first to-be-converted data set to obtain a display page.
  • the device further includes: a compiling unit configured to remove the first to-be-converted data set and the first to-be-displayed data set in the rendering of the converted data set and the first to-be-displayed data set using the browser For data other than the data set, before the page is displayed, compile the data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed;
  • a compiling unit configured to remove the first to-be-converted data set and the first to-be-displayed data set in the rendering of the converted data set and the first to-be-displayed data set using the browser For data other than the data set, before the page is displayed, compile the data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed;
  • the first display unit is configured to display the compilation information of the compilation; the compilation information includes at least one of the following: compilation status, compilation progress, and errors in the compilation process;
  • the rendering unit is configured to use the browser to render the second data set to be displayed to obtain the display page.
  • the first data set to be displayed includes a first module data set
  • the acquiring unit is further configured to compile data other than the first to-be-converted data set and the converted data set in the first to-be-displayed data set to obtain a second to-be-displayed data set, Obtain a second module data set; the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as that of the first module data set The directory structure is the same;
  • the device further includes: an adding unit configured to add the second module data set to the first data set to be displayed to obtain a third data set to be displayed;
  • the compiling unit is configured to compile data in the third to-be-displayed data set excluding the first to-be-converted data set and the converted data set to establish the second module data set and the first data set
  • the dependency relationship between a module data set is obtained to obtain the second to-be-displayed data set.
  • the first data set to be displayed includes a third module data set and a fourth module data set; the data format of the third module data set and the data format of the fourth module data set The same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set;
  • the device further includes a deleting unit configured to compile data other than the first to-be-converted data set and the converted data set in the first to-be-displayed data set to obtain second to-be-displayed data Before the collection, in the case of receiving an instruction to delete the third module data set, delete the third module data set from the first to-be-displayed data set to obtain a fourth to-be-displayed data set;
  • the compiling unit is configured to delete the third module data set and the first data set by compiling data in the fourth data set to be displayed except for the first data set to be converted and the converted data set.
  • the dependency relationship among the four module data sets is obtained to obtain the second data set to be displayed.
  • the first display unit is further configured to translate the first error that occurs during the compilation process when the compilation information includes errors that occur during the compilation process to obtain the first error Second error; the second error is displayed.
  • the device further includes: a second display unit configured to display the data set of the first data set to be displayed when a preview instruction for the first data set to be displayed is received The content of the instructions.
  • the first data set to be displayed includes at least one of the following: a retrieval module, a deployment control module, an archive module, and a technique module; the retrieval module is used to perform data in the database according to retrieval conditions. Retrieval; the deployment control module is used to display the acquired video stream and/or image; the archive module is used to store character information and/or vehicle information; the technique module is used to display at least one first image Reconnaissance technique tactics, and receiving at least one second picture reconnaissance technique tactics selected by the user from the at least one first picture reconnaissance technique tactics.
  • the embodiment of the present disclosure obtains the second character string to be converted by intercepting the character string contained in the content part from the first to-be-converted data set. Performing conversion processing on the second character string to be converted can improve conversion accuracy while obtaining a conversion data set whose data type is the first type.
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments.
  • FIG. 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the disclosure.
  • the electronic device 2 includes a processor 21, a memory 22, an input device 23, and an output device 24.
  • the processor 21, the memory 22, the input device 23, and the output device 24 are coupled through a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiment of the present disclosure.
  • coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, can be connected through various interfaces, transmission lines, buses, and the like.
  • the processor may include one or more processors, such as one or more central processing units (CPU).
  • CPU central processing units
  • the CPU may be a single-core CPU or Multi-core CPU.
  • the processor 21 may be a processor group composed of multiple GPUs, and the multiple processors are coupled to each other through one or more buses.
  • the processor may also be other types of processors, etc., which is not limited in the embodiment of the present disclosure.
  • the memory 22 may be used to store computer program instructions and various computer program codes including program codes used to execute the solutions of the present disclosure.
  • the memory includes, but is not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory, EPROM ), or portable read-only memory (Compact Disc Read-Only Memory, CD-ROM), which is used for related instructions and data.
  • the input device 23 is used to input data and/or signals
  • the output device 24 is used to output data and/or signals.
  • the input device 23 and the output device 24 may be independent devices or a whole device.
  • the memory 22 can be used not only to store related instructions, but also to store related data.
  • the memory 22 can be used to store the first to-be-displayed data set acquired through the input device 23, or the memory 22 It can also be used to store the converted data set obtained by the processor 21, etc.
  • the embodiment of the present disclosure does not limit the specific data stored in the memory.
  • FIG. 4 only shows a simplified design of a data processing device.
  • the data processing device may also include other necessary components, including but not limited to any number of input/output devices, processors, memories, etc., and all data processing devices that can implement the embodiments of the present disclosure are in this Within the scope of public protection.
  • the memory is used to store computer program code, and the computer program code includes computer instructions.
  • the processor executes the computer instructions, the electronic device analyzes the methods of the above possible implementation manners of the embodiments of the present disclosure.
  • the embodiment of the present disclosure also provides a processor, and the processor is used to analyze the method of the foregoing possible implementation manners of the embodiment of the present disclosure.
  • the embodiment of the present disclosure also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, when the program instructions are executed by a processor, The processor analyzes the method of the foregoing possible implementation manners of the embodiments of the present disclosure.
  • the embodiment of the present disclosure further provides a computer program product, the computer program product includes a computer program or instruction, in the case that the computer program or instruction is parsed on a computer, the computer is caused to analyze the above-mentioned possibility of the embodiment of the present disclosure. Way of realization.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above embodiments it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof.
  • software it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • the computer instructions can be sent from a website, computer, server, or data center through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) Another website site, computer, server or data center for transmission.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a Digital Versatile Disc (DVD)), or a semiconductor medium (for example, a Solid State Disk (SSD)) )Wait.
  • the process can be completed by a computer program instructing relevant hardware.
  • the program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments.
  • the aforementioned storage media include: ROM or RAM, magnetic disks or optical disks and other media that can store program codes.

Abstract

A data processing method and apparatus, an electronic device, and a storage medium. The method comprises: obtaining a first data set to be displayed, wherein said first data set comprises a first data set to be converted; the beginning of the first data set to be converted is a first character string; the end of said first data set is a second character string (101); truncating a character string located between the first character string and the second character string from said first data set to obtain a second data set to be converted (102); and converting said second data set to obtain a converted data set of which the data type is a first type, the first type being a data type which can be parsed by the browser (103).

Description

数据处理方法及装置、处理器、电子设备及存储介质Data processing method and device, processor, electronic equipment and storage medium
相关申请的交叉引用Cross-references to related applications
本公开基于申请号为202010426476.7、申请日为2020年05月19日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本公开。The present disclosure is filed based on a Chinese patent application with an application number of 202010426476.7 and an application date of May 19, 2020, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into the present disclosure by way of introduction.
技术领域Technical field
本公开涉及计算机技术领域,尤其涉及一种数据处理方法及装置、处理器、电子设备及存储介质。The present disclosure relates to the field of computer technology, and in particular to a data processing method and device, a processor, electronic equipment, and a storage medium.
背景技术Background technique
前端开发是创建万维网(World Wide Web,Web)页面或手机软件(Application,App)页面等前端页面呈现给用户的过程,以实现互联网产品的用户页面交互。在前端开发的过程中,开发人员可依据页面的展示需求编写代码,得到项目文件。使用浏览器对项目文件进行解析并渲染,得到显示页面。由于项目文件中存在不能被浏览器解析的数据,在使用浏览器解析项目文件之前,需要对项目文件中不能被浏览器解析的数据进行转换。Front-end development is the process of creating front-end pages such as World Wide Web (Web) pages or mobile phone software (Application, App) pages and presenting them to users to realize user page interaction of Internet products. In the process of front-end development, developers can write code according to the display requirements of the page to obtain project files. Use the browser to parse and render the project file to get the display page. Since there are data in the project file that cannot be parsed by the browser, before using the browser to parse the project file, the data in the project file that cannot be parsed by the browser needs to be converted.
发明内容Summary of the invention
本公开实施例提供一种数据处理方法及装置、处理器、电子设备及存储介质。The embodiments of the present disclosure provide a data processing method and device, a processor, an electronic device, and a storage medium.
第一方面,本公开实施例提供了一种数据处理方法,所述方法包括:获取第一待显示数据集;所述第一待显示数据集包括第一待转换数据集;所述第一待转换数据集的开头为第一字符串,所述第一待转换数据集的结尾为第二字符串;从所述第一待转换数据集中截取所述位于所述第一字符串与所述第二字符串之间的字符串,得到第二待转换数据集;对所述第二待转换数据集进行转换处理,得到数据类型为第一类型的已转换数据集;所述第一类型为浏览器可解析的数据类型。In a first aspect, an embodiment of the present disclosure provides a data processing method, the method includes: acquiring a first data set to be displayed; the first data set to be displayed includes a first data set to be converted; The beginning of the converted data set is a first character string, and the end of the first to-be-converted data set is a second character string; and the first character string and the first character string are intercepted from the first to-be-converted data set. A character string between two character strings to obtain a second data set to be converted; conversion processing is performed on the second data set to be converted to obtain a converted data set whose data type is the first type; the first type is browse The data type that can be parsed by the processor.
在本实施例中,通过从第一待转换数据集中截取出内容部分所包含的字符串,得到第二待转换字符串。对第二待转换字符串进行转换处理,可在得到数据类型为第一类型的转换数据集的同时,提高转换准确度。In this embodiment, the second character string to be converted is obtained by intercepting the character string contained in the content part from the first to-be-converted data set. Performing conversion processing on the second character string to be converted can improve conversion accuracy while obtaining a conversion data set whose data type is the first type.
结合本公开任一实施方式,所述第一待转换数据集包括转换目录下的数据和/或第三待转换数据集;所述第三待转换数据集为所述第一待显示数据集中以第三字符串结尾的数据;所述转换目录属于所述第一待显示数据集。With reference to any one of the embodiments of the present disclosure, the first data set to be converted includes data in a conversion directory and/or a third data set to be converted; the third data set to be converted is the first data set to be displayed Data at the end of the third character string; the conversion directory belongs to the first data set to be displayed.
结合本公开任一实施方式,所述方法还包括:使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面。With reference to any one of the embodiments of the present disclosure, the method further includes: using the browser to render the converted data set and the data in the first to-be-displayed data set other than the first to-be-converted data set to obtain Display the page.
结合本公开任一实施方式,在所述使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面之前,所述方法还包括:编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集;显示所述编译的编译信息;所述编译信息包括以下至少一种:编译状态、编译进度、编译过程中出现的错误;所述使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面,包括:使用所述浏览器渲染所述第二待显示数据集,得到所述显示页面。With reference to any one of the embodiments of the present disclosure, before the browser is used to render the converted data set and the data in the first to-be-displayed data set other than the first to-be-converted data set to obtain a display page , The method further includes: compiling data in the first to-be-displayed data set excluding the first to-be-converted data set and the converted data set to obtain a second to-be-displayed data set; and displaying the compiled Compilation information; the compilation information includes at least one of the following: compilation status, compilation progress, and errors in the compilation process; the use of the browser to render the converted data set and the first to-be-displayed data set Obtaining the display page with data outside the first data set to be converted includes: using the browser to render the second data set to be displayed to obtain the display page.
结合本公开任一实施方式,所述第一待显示数据集包括第一模块数据集;在所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集之前,所述方法还包括:获取第二模块数据集;所述第二模块数据集的数据格式与所述第一模块数据集的数据格式相同,且所述第二模块数据集的目录结构与所述第一模块数据集的目录结构相同;将所述第二模块数据集添加至所述第一待显示数据集,得到第三待显示数据集;所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集,包括:通过编译所述第三待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,建立所述第二模块数据集与所述第一模块数据集之间的依赖关系,得到所述第二待显示数据集。With reference to any one of the embodiments of the present disclosure, the first data set to be displayed includes a first module data set; in the compilation of the first data set to be displayed, data other than the first data set to be converted and all data In the converted data set, before obtaining the second data set to be displayed, the method further includes: obtaining a second module data set; the data format of the second module data set is the same as the data format of the first module data set , And the directory structure of the second module data set is the same as the directory structure of the first module data set; adding the second module data set to the first data set to be displayed, to obtain third data to be displayed The compiling of the data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set to obtain a second to-be-displayed data set includes: compiling the third The data in the data set to be displayed except the first data set to be converted and the converted data set are established, and the dependency relationship between the second module data set and the first module data set is established to obtain the The second data set to be displayed.
结合本公开任一实施方式,所述第一待显示数据集包括第三模块数据集和第四模块数据集;所述第三模块数据集的数据格式与所述第四模块数据集的数据格式相同,且所述第三模块数据集的目录结构与所述第四模块数据集的目录结构相同;在所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集之前,所述方法还包括:在接收到删除所述第三模块数据集的指令的情况下,从所述第一待显示数据集中删除所述第三模块数据集,得到第四待显示数据集;所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集,包括:通过编译所述第四待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,删除所述第三模块数据集与所述第四模块数据集之间的依赖关系,得到所述第二待显示数据集。With reference to any embodiment of the present disclosure, the first data set to be displayed includes a third module data set and a fourth module data set; the data format of the third module data set and the data format of the fourth module data set The same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set; Data and the converted data set, before the second to-be-displayed data set is obtained, the method further includes: in the case of receiving an instruction to delete the third module data set, from the first to-be-displayed data set The third module data set is deleted to obtain a fourth data set to be displayed; the data in the first data set to be displayed except for the first data set to be converted and the converted data set are obtained by compiling The second to-be-displayed data set includes: deleting the third module data set and the converted data set by compiling the data in the fourth to-be-displayed data set except for the first to-be-converted data set and the converted data set. The dependency relationship between the data sets of the fourth module is described to obtain the second data set to be displayed.
结合本公开任一实施方式,所述方法还包括:在所述编译信息包括编译过程中出现的错误的情况下,对所述编译过程中出现的第一错误进行翻译,得到第二错误;显示所述第二错误。With reference to any one of the embodiments of the present disclosure, the method further includes: in the case that the compilation information includes an error occurred during the compilation process, translating the first error occurred during the compilation process to obtain the second error; and displaying The second error.
结合本公开任一实施方式,所述方法还包括:在接收到针对所述第一待显示数据集的预览指令的情况下,显示所述第一待显示数据集所指示的内容。With reference to any one of the embodiments of the present disclosure, the method further includes: in a case where a preview instruction for the first data set to be displayed is received, displaying the content indicated by the first data set to be displayed.
结合本公开任一实施方式,所述第一待显示数据集包括以下至少一个:检索模块、布控模块、档案模块、技战法模块;所述检索模块用于依据检索条件对数据库中的数据进行检索;所述布控模块用于显示获取到的视频流和/或图像;所述档案模块用于存储人 物信息和/或车辆信息;所述技战法模块,用于展示至少一种第一图侦技战法,以及接收用户从所述至少一种第一图侦技战法中选择的至少一种第二图侦技战法。With reference to any one of the embodiments of the present disclosure, the first data set to be displayed includes at least one of the following: a retrieval module, a deployment control module, an archive module, and a technique module; the retrieval module is used to perform data in the database according to retrieval conditions. Retrieval; the deployment control module is used to display the acquired video stream and/or image; the archive module is used to store character information and/or vehicle information; the technique module is used to display at least one first image Reconnaissance technique tactics, and receiving at least one second picture reconnaissance technique tactics selected by the user from the at least one first picture reconnaissance technique tactics.
第二方面,本公开实施例还提供了一种数据处理装置,所述装置包括:In a second aspect, embodiments of the present disclosure also provide a data processing device, the device including:
获取单元,配置为获取第一待显示数据集;所述第一待显示数据集包括第一待转换数据集;所述第一待转换数据集的开头为第一字符串,所述第一待转换数据集的结尾为第二字符串;The obtaining unit is configured to obtain a first data set to be displayed; the first data set to be displayed includes a first data set to be converted; the beginning of the first data set to be converted is a first character string, and the first data set to be converted The end of the converted data set is the second string;
截取单元,配置为从所述第一待转换数据集中截取所述位于所述第一字符串与所述第二字符串之间的字符串,得到第二待转换数据集;An interception unit configured to intercept the character string located between the first character string and the second character string from the first data set to be converted to obtain a second data set to be converted;
转换单元,配置为对所述第二待转换数据集进行转换处理,得到数据类型为第一类型的已转换数据集;所述第一类型为浏览器可解析的数据类型。The conversion unit is configured to perform conversion processing on the second data set to be converted to obtain a converted data set whose data type is a first type; the first type is a data type that can be parsed by a browser.
结合本公开任一实施方式,所述第一待转换数据集包括转换目录下的数据和/或第三待转换数据集;所述第三待转换数据集为所述第一待显示数据集中以第三字符串结尾的数据;所述转换目录属于所述第一待显示数据集。With reference to any one of the embodiments of the present disclosure, the first data set to be converted includes data in a conversion directory and/or a third data set to be converted; the third data set to be converted is the first data set to be displayed Data at the end of the third character string; the conversion directory belongs to the first data set to be displayed.
结合本公开任一实施方式,所述装置还包括:With reference to any embodiment of the present disclosure, the device further includes:
渲染单元,配置为使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面。The rendering unit is configured to use the browser to render the converted data set and the data in the first to-be-displayed data set except for the first to-be-converted data set to obtain a display page.
结合本公开任一实施方式,所述装置还包括:With reference to any embodiment of the present disclosure, the device further includes:
编译单元,配置为在所述使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面之前,编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集;The compiling unit is configured to compile the converted data set and the data in the first to-be-displayed data set excluding the first to-be-converted data set by using the browser to obtain a display page. Data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed;
第一显示单元,配置为显示所述编译的编译信息;所述编译信息包括以下至少一种:编译状态、编译进度、编译过程中出现的错误;The first display unit is configured to display the compilation information of the compilation; the compilation information includes at least one of the following: compilation status, compilation progress, and errors in the compilation process;
所述渲染单元,配置为使用所述浏览器渲染所述第二待显示数据集,得到所述显示页面。The rendering unit is configured to use the browser to render the second data set to be displayed to obtain the display page.
结合本公开任一实施方式,所述第一待显示数据集包括第一模块数据集;With reference to any one of the embodiments of the present disclosure, the first data set to be displayed includes a first module data set;
所述获取单元,还配置为在所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集之前,获取第二模块数据集;所述第二模块数据集的数据格式与所述第一模块数据集的数据格式相同,且所述第二模块数据集的目录结构与所述第一模块数据集的目录结构相同;The acquiring unit is further configured to compile data other than the first to-be-converted data set and the converted data set in the first to-be-displayed data set to obtain a second to-be-displayed data set, Obtain a second module data set; the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as that of the first module data set The directory structure is the same;
所述装置还包括:添加单元,配置为将所述第二模块数据集添加至所述第一待显示数据集,得到第三待显示数据集;The device further includes: an adding unit configured to add the second module data set to the first data set to be displayed to obtain a third data set to be displayed;
所述编译单元,配置为通过编译所述第三待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,建立所述第二模块数据集与所述第一模块数据集之间的依赖关系,得到所述第二待显示数据集。The compiling unit is configured to compile data in the third to-be-displayed data set excluding the first to-be-converted data set and the converted data set to establish the second module data set and the first data set The dependency relationship between a module data set is obtained to obtain the second to-be-displayed data set.
结合本公开任一实施方式,所述第一待显示数据集包括第三模块数据集和第四模块数据集;所述第三模块数据集的数据格式与所述第四模块数据集的数据格式相同,且所 述第三模块数据集的目录结构与所述第四模块数据集的目录结构相同;With reference to any embodiment of the present disclosure, the first data set to be displayed includes a third module data set and a fourth module data set; the data format of the third module data set and the data format of the fourth module data set The same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set;
所述装置还包括:删除单元,配置为在所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集之前,在接收到删除所述第三模块数据集的指令的情况下,从所述第一待显示数据集中删除所述第三模块数据集,得到第四待显示数据集;The device further includes a deleting unit configured to compile data other than the first to-be-converted data set and the converted data set in the first to-be-displayed data set to obtain second to-be-displayed data Before the collection, in the case of receiving an instruction to delete the third module data set, delete the third module data set from the first to-be-displayed data set to obtain a fourth to-be-displayed data set;
所述编译单元,配置为通过编译所述第四待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,删除所述第三模块数据集与所述第四模块数据集之间的依赖关系,得到所述第二待显示数据集。The compiling unit is configured to delete the third module data set and the first data set by compiling data in the fourth data set to be displayed except for the first data set to be converted and the converted data set. The dependency relationship among the four module data sets is obtained to obtain the second data set to be displayed.
结合本公开任一实施方式,所述第一显示单元,还配置为在所述编译信息包括编译过程中出现的错误的情况下,对所述编译过程中出现的第一错误进行翻译,得到第二错误;显示所述第二错误。With reference to any one of the embodiments of the present disclosure, the first display unit is further configured to translate the first error that occurs during the compilation process when the compilation information includes errors that occur during the compilation process to obtain the first error Second error; the second error is displayed.
结合本公开任一实施方式,所述装置还包括:第二显示单元,配置为在接收到针对所述第一待显示数据集的预览指令的情况下,显示所述第一待显示数据集所指示的内容。With reference to any one of the embodiments of the present disclosure, the device further includes: a second display unit configured to display the data set of the first data set to be displayed when a preview instruction for the first data set to be displayed is received The content of the instructions.
结合本公开任一实施方式,所述第一待显示数据集包括以下至少一个:检索模块、布控模块、档案模块、技战法模块;所述检索模块用于依据检索条件对数据库中的数据进行检索;所述布控模块用于显示获取到的视频流和/或图像;所述档案模块用于存储人物信息和/或车辆信息;所述技战法模块,用于展示至少一种第一图侦技战法,以及接收用户从所述至少一种第一图侦技战法中选择的至少一种第二图侦技战法。With reference to any one of the embodiments of the present disclosure, the first data set to be displayed includes at least one of the following: a retrieval module, a deployment control module, an archive module, and a technique module; the retrieval module is used to perform data in the database according to retrieval conditions. Retrieval; the deployment control module is used to display the acquired video stream and/or image; the archive module is used to store character information and/or vehicle information; the technique module is used to display at least one first image Reconnaissance technique tactics, and receiving at least one second picture reconnaissance technique tactics selected by the user from the at least one first picture reconnaissance technique tactics.
第三方面,本公开实施例还提供了一种处理器,所述处理器用于解析如上述第一方面及其任意一种可能实现的方式的方法。In the third aspect, the embodiments of the present disclosure also provide a processor, which is used to analyze the above-mentioned first aspect and any one of the possible implementation methods thereof.
第四方面,本公开实施例还提供了一种电子设备,包括:处理器、发送装置、输入装置、输出装置和存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,在所述处理器执行所述计算机指令的情况下,所述电子设备解析如上述第一方面及其任意一种可能实现的方式的方法。In a fourth aspect, embodiments of the present disclosure also provide an electronic device, including: a processor, a sending device, an input device, an output device, and a memory, the memory is used to store computer program code, and the computer program code includes computer instructions In the case that the processor executes the computer instruction, the electronic device analyzes the method such as the above-mentioned first aspect and any one of its possible implementation manners.
第五方面,本公开实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序包括程序指令,在所述程序指令被处理器执行的情况下,使所述处理器解析如上述第一方面及其任意一种可能实现的方式的方法。In a fifth aspect, the embodiments of the present disclosure also provide a computer-readable storage medium in which a computer program is stored, the computer program includes program instructions, and the program instructions are executed by a processor. In this case, the processor is caused to analyze the method of the above-mentioned first aspect and any one of its possible implementation modes.
第六方面,本公开实施例还提供了一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,在所述计算机程序或指令在计算机上解析的情况下,使得所述计算机解析上述第一方面及其任一种可能的实现方式的方法。In a sixth aspect, the embodiments of the present disclosure also provide a computer program product. The computer program product includes a computer program or instruction. When the computer program or instruction is parsed on a computer, the computer is caused to parse the above-mentioned first On the one hand and any possible implementation methods.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,而非限制本公开实施例。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, rather than limiting the embodiments of the present disclosure.
附图说明Description of the drawings
为了更清楚地说明本公开实施例或背景技术中的技术方案,下面将对本公开实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the background art, the following will describe the drawings that need to be used in the embodiments of the present disclosure or the background art.
此处的附图被并入说明书中并构成本说明书的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments that conform to the present disclosure, and are used together with the specification to explain the technical solutions of the present disclosure.
图1为本公开实施例提供的一种数据处理方法的流程示意图;FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the disclosure;
图2为本公开实施例提供的一种前端框架的架构图;FIG. 2 is an architecture diagram of a front-end framework provided by an embodiment of the disclosure;
图3为本公开实施例提供的一种数据处理装置的结构示意图;FIG. 3 is a schematic structural diagram of a data processing device provided by an embodiment of the disclosure;
图4为本公开实施例提供的一种电子设备的硬件结构示意图。FIG. 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the disclosure.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。In order to enable those skilled in the art to better understand the solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only These are a part of the embodiments of the present disclosure, but not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms “first”, “second”, etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific sequence. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本公开的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present disclosure. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
前端开发是创建Web页面或App等前端页面呈现给用户的过程,以实现互联网产品的用户页面交互。在前端开发的过程中,开发人员可依据页面的展示需求编写代码,得到项目文件。运行设备(可以以下中的一种:电脑、服务器、平板电脑)使用浏览器解析项目文件,从后台设备(可以是服务器)获取所需显示的数据。运行设备使用浏览器渲染项目文件和所需显示的数据,得到显示页面。Front-end development is the process of creating front-end pages such as Web pages or App and presenting them to users in order to realize the user page interaction of Internet products. In the process of front-end development, developers can write code according to the display requirements of the page to obtain project files. The running device (which can be one of the following: computer, server, tablet) uses the browser to parse the project file, and obtains the data that needs to be displayed from the background device (which can be a server). The running device uses the browser to render the project file and the data to be displayed to get the display page.
由于浏览器对解析的数据类型具有要求(下文将浏览器可解析的的数据类型称为目标类型),为使项目文件可通过被浏览器解析,显示满足预期的页面,在使用浏览器解析项目文件之前,需要对项目文件中数据类型不是目标数据类型的数据进行转化,使项目文件可被浏览器解析。Because the browser has requirements for the type of data to be parsed (the data type that can be parsed by the browser is referred to as the target type below), in order to make the project file parsed by the browser and display the page that meets the expectations, use the browser to parse the project Before the file, it is necessary to transform the data in the project file whose data type is not the target data type, so that the project file can be parsed by the browser.
例如,假设浏览器可解析的数据类型为javascript(简称为js,为一种编程语言)数据,此时,目标数据类型为js。项目文件中包含层叠样式表(Cascading Style Sheets,CSS)数据,而CSS数据不能被浏览器解析,因此,在使用浏览器解析项目文件之前,需要将CSS数据转换成js数据。For example, suppose the data type that the browser can parse is javascript (referred to as js for short, which is a programming language) data, at this time, the target data type is js. The project file contains Cascading Style Sheets (CSS) data, and the CSS data cannot be parsed by the browser. Therefore, before using the browser to parse the project file, the CSS data needs to be converted into js data.
又例如,假设浏览器可解析的数据类型为js数据,此时,目标数据类型为js。项目文件中包含图片,而图片不能被浏览器解析,因此,在使用浏览器解析项目文件之前, 需要将图片转换成js数据。For another example, suppose that the data type that the browser can parse is js data, at this time, the target data type is js. The project file contains pictures, and the pictures cannot be parsed by the browser. Therefore, before using the browser to parse the project files, the pictures need to be converted into js data.
传统方法中,通过对项目文件中的每个字符进行解析并转换,得到可被浏览器解析的数据,进而可通过浏览器进行页面显示。但在对项目文件中的每个字符进行转换的过程中,由于无法解析部分字符串,导致转换准确度低。例如(例1),项目文件包括字符串A,其中,字符串A为:**#““read””/n。对字符串A进行转换,得到字符串B。在对字符串A中的每个字符进行转换的过程中,由于无法正确解析字符串A中的read,导致字符串B所指示的内容与字符串A所指示的内容不同。In the traditional method, each character in the project file is parsed and converted to obtain data that can be parsed by the browser, and then the page can be displayed through the browser. However, in the process of converting each character in the project file, the conversion accuracy is low due to the inability to parse part of the character string. For example (Example 1), the project file includes the string A, where the string A is: **#""read""/n. Convert the string A to get the string B. In the process of converting each character in the string A, the content indicated by the string B is different from the content indicated by the string A because the read in the string A cannot be parsed correctly.
基于此,本公开实施例提供了一种前端框架,使用浏览器解析基于该前端框架进行前端开发得到的项目文件,可提高转换准确度。本公开实施例的执行主体为数据处理装置。可选的,数据处理装置可以是以下中的一种:计算机、服务器。下面结合本公开实施例中的附图对本公开实施例进行描述。Based on this, the embodiments of the present disclosure provide a front-end framework that uses a browser to parse the project files obtained by front-end development based on the front-end framework, which can improve the conversion accuracy. The execution subject of the embodiments of the present disclosure is a data processing device. Optionally, the data processing device may be one of the following: a computer and a server. The embodiments of the present disclosure will be described below in conjunction with the drawings in the embodiments of the present disclosure.
请参阅图1,图1是本公开实施例提供的一种数据处理方法的流程示意图。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the present disclosure.
101、获取第一待显示数据集,其中,上述第一待显示数据集包括第一待转换数据集,上述第一待转换数据集的开头为第一字符串,上述第一待转换数据集的结尾为第二字符串。101. Acquire a first data set to be displayed, wherein the first data set to be displayed includes a first data set to be converted, the beginning of the first data set to be converted is a first character string, and the data set of the first data set to be converted The end is the second string.
本公开实施例中,第一待显示数据集为在前端开发的过程中,需要通过页面进行显示的数据。第一待显示数据集包括基于前端框架开发得到的项目文件和所需显示的数据。第一待转换数据集为第一待显示数据集中需要转换的数据集,即第一待转换数据集的数据类型不是目标类型。In the embodiment of the present disclosure, the first data set to be displayed is data that needs to be displayed on the page during the front-end development process. The first data set to be displayed includes project files developed based on the front-end framework and data to be displayed. The first data set to be converted is the data set that needs to be converted in the first data set to be displayed, that is, the data type of the first data set to be converted is not the target type.
第一待转换数据集可包含至少一行代码。例如,在页面上显示弹窗可通过第一待显示数据集中的弹窗模块实现,其中,弹窗模块包括至少一行代码。第一待转换数据集可以是弹窗模块。又例如,通过页面可实现搜索功能,该搜索功能通过第一待显示数据集中的搜索模块实现,其中,搜索模块包括至少一行代码。第一待转换数据集可以是搜索模块。The first data set to be converted may include at least one line of code. For example, displaying a pop-up window on the page can be implemented by a pop-up window module in the first data set to be displayed, where the pop-up window module includes at least one line of code. The first data set to be converted may be a pop-up module. For another example, a search function can be realized through a page, and the search function is realized by a search module in the first data set to be displayed, wherein the search module includes at least one line of code. The first data set to be converted may be a search module.
在本公开实施例提供的前端框架中,第一待转换数据集的格式是确定的。由于第一待转换数据集中的每一个字符串均包括开头、结尾、内容三个部分,在第一待转换数据集的格式确定的情况下,开头部分包含的字符串(即第一字符串)和结尾部分包含的字符串(即第二字符串)均是确定的,第一待转换数据集中的每一个字符串所指示的内容即为内容部分包含的字符串。In the front-end framework provided by the embodiments of the present disclosure, the format of the first data set to be converted is determined. Since each character string in the first to-be-converted data set includes three parts: beginning, end, and content, if the format of the first to-be-converted data set is determined, the character string contained in the beginning part (that is, the first character string) The character strings (ie, the second character strings) contained in the and end parts are determined, and the content indicated by each character string in the first to-be-converted data set is the character string contained in the content part.
例如,假设第一待转换数据集中的开头部分包括%&,第一待转换数据集中的结尾部分包括*#,第一待转换数据集包括字符串A,其中,字符串A为%&eat lunch*#。字符串A的开头部分为%&,字符串A的结尾部分为*#,字符串A的内容部分为eat lunch,字符串A所指示的内容即为eat lunch。需要理解的是,第一字符串包含的具体内容和第二字符串包含的具体内容,可依据用户的需求进行调整,本公开实施例对此不做限定。For example, suppose that the beginning part of the first data set to be converted includes %&, the end part of the first data set to be converted includes *#, and the first data set to be converted includes character string A, where character string A is %&eat lunch* #. The beginning part of the string A is %&, the end part of the string A is *#, the content part of the string A is eat lunch, and the content indicated by the string A is eat lunch. It should be understood that the specific content contained in the first character string and the specific content contained in the second character string can be adjusted according to the needs of the user, which is not limited in the embodiment of the present disclosure.
本公开实施例中,第一字符串与第二字符串可以相同,也可以不同。例如,第一字符串为“abc”,第二字符串也为“abc”。又例如,第一字符串为“abc”,第二字符串为“def”。In the embodiment of the present disclosure, the first character string and the second character string may be the same or different. For example, the first character string is "abc", and the second character string is also "abc". For another example, the first character string is "abc", and the second character string is "def".
作为一种可选的实施方式,在开发人员通过开发设备(如电脑)基于本公开实施例提供的前端框架进行开发项目文件的过程中,前端框架在接收到前端开发指令(如开发命令)的情况下,开发设备显示开发规则。该开发规则用于指导开发人员以前端框架的开发规则开发项目文件。例如,将需要转换的数据集置于第一字符串与第二字符串之间。As an optional implementation manner, in the process of developing project files by developers based on the front-end framework provided by the embodiments of the present disclosure through development equipment (such as a computer), the front-end framework receives front-end development instructions (such as development commands). In this case, the development device displays the development rules. The development rules are used to guide developers to develop project files based on the development rules of the front-end framework. For example, place the data set to be converted between the first character string and the second character string.
在一种获取第一待显示数据集的实现方式中,数据处理装置接收用户通过输入组件输入的第一待显示数据集。上述输入组件包括:键盘、鼠标、触控屏、触控板和音频输入器等输入组件的至少之一。例如,数据处理装置为计算机(computer),计算机与键盘之间具有通信连接。用户可通过键盘编写代码,键盘可将用户编写的代码传输至计算机。在用户编写的代码的数据类型不是目标数据类型的情况下,计算机将用户编写的代码作为第一待显示数据集。In an implementation manner of acquiring the first data set to be displayed, the data processing device receives the first data set to be displayed input by the user through the input component. The above-mentioned input components include: at least one of input components such as a keyboard, a mouse, a touch screen, a touch pad, and an audio input device. For example, the data processing device is a computer, and there is a communication connection between the computer and the keyboard. The user can write code through the keyboard, and the keyboard can transmit the code written by the user to the computer. In the case where the data type of the code written by the user is not the target data type, the computer uses the code written by the user as the first data set to be displayed.
在另一种获取第一待显示数据集的实现方式中,数据处理装置接收第一终端发送的第一待显示数据集。可选的,第一终端可以是以下任意一种:手机、计算机、平板电脑、服务器、可穿戴设备。In another implementation manner of acquiring the first data set to be displayed, the data processing apparatus receives the first data set to be displayed sent by the first terminal. Optionally, the first terminal may be any one of the following: a mobile phone, a computer, a tablet computer, a server, and a wearable device.
102、从上述第一待转换数据集中截取上述第一待转换数据集中位于上述第一字符串与上述第二字符串之间的字符串,得到第二待转换数据集。102. Intercept character strings located between the first character string and the second character string in the first data set to be converted from the first data set to be converted to obtain a second data set to be converted.
由于在通过对第一待转换数据集进行转化处理,得到目标类型的数据的同时,还需使已转换数据集所指示的内容与第一待转换数据集所指示的内容相同,而在分别对第一待转换数据集中的每一个字符进行转换的情况下,转换准确度低(如例1),本公开实施例采用从第一待转换数据集中截取出内容部分所包含的字符串,作为第二待转换数据集。通过对第二待转换数据集进行转换,可在得到目标类型的数据的同时,提高转换准确度。Since the data of the target type is obtained by transforming the first data set to be converted, it is also necessary to make the content indicated by the converted data set the same as the content indicated by the first data set to be converted. When each character in the first data set to be converted is converted, the conversion accuracy is low (as in Example 1). The embodiment of the present disclosure adopts the character string contained in the content part to be truncated from the first data set to be converted as the first Second, the data set to be converted. By converting the second data set to be converted, the accuracy of the conversion can be improved while obtaining data of the target type.
在一种从第一待转换数据集中截取得到第二待转换数据集的实现方式中,从第一待转换数据集中确定第一字符串和第二字符串,并截取位于第一字符串和第二字符串之间的字符串,得到第二待转换数据集。例如,第一待转换数据集包括字符串A,其中,字符串A为:#a&bclick/n**。假设第一字符串为:a&b,第二字符串为:/n,位于第一字符串和第二字符串之间的字符串为click(下文将称为第四字符串),因此,从第一待转换数据集中截取得到的第二待转换数据集包括第四字符串。又例如(例2),第一待转换数据集包括字符串A,其中,字符串A为:#a&bclicks/n**#a&book/n**。假设第一字符串为:a&b,第二字符串为:/n,位于第一字符串和第二字符串之间的字符串为clicks(下文将称为第五字符串)和book(下文将称为第六字符串),因此,从第一待转换数据集中截取得到的第二待转换数据集包括第五字符串和第六字符串。In an implementation manner of intercepting from the first to-be-converted data set to the second to-be-converted data set, the first character string and the second character string are determined from the first to-be-converted data set, and the first character string and the second character string are intercepted. The character string between the two character strings obtains the second data set to be converted. For example, the first data set to be converted includes a character string A, where the character string A is: #a&bclick/n**. Assuming that the first string is: a&b, the second string is: /n, the string between the first string and the second string is click (hereinafter referred to as the fourth string), therefore, from the first string The second to-be-converted data set intercepted and obtained in a to-be-converted data set includes a fourth character string. For another example (Example 2), the first data set to be converted includes a character string A, where the character string A is: #a&bclicks/n**#a&book/n**. Assuming that the first string is: a&b, the second string is: /n, and the string between the first string and the second string is clicks (hereinafter referred to as the fifth string) and book (hereinafter referred to as It is called the sixth character string). Therefore, the second to-be-converted data set intercepted from the first to-be-converted data set includes the fifth character string and the sixth character string.
在另一种从第一待转换数据集中截取得到第二待转换数据集的实现方式中,从第一待转换数据集中截取以第一字符串为开头、第二字符串为结尾的字符串,得到第七字符串。将第七字符串的开头和结尾去除,得到第二待转换数据集。例如(例3),第一待转换数据集包括字符串A和字符串B,其中,字符串A为:a&bclick/n,字符串B为:a&bbook/n。假设第一字符串为:a&b,第二字符串为:/n,即字符串A和字符串B均为以第一字符串为开头、第二字符串为结尾的字符串,因此,从第一待转换数据集中截 取得到的第七字符串包括字符串A和字符串B。将字符串A的开头和结尾去除,得到的字符串为:click(下文将称为字符串C),将字符串B的开头和结尾去除,得到的字符串为:book(下文将称为字符串D)。从第一待转换数据集中截取得到的第二待转换数据集包括字符串C和字符串D。In another implementation manner of intercepting from the first to-be-converted data set to the second to-be-converted data set, from the first to-be-converted data set, a character string that starts with the first character string and ends with the second character string is intercepted, Get the seventh character string. Remove the beginning and end of the seventh character string to obtain the second data set to be converted. For example (Example 3), the first data set to be converted includes a string A and a string B, where the string A is: a&bclick/n, and the string B is: a&bbook/n. Assuming that the first string is: a&b, and the second string is: /n, that is, both string A and string B are strings starting with the first string and ending with the second string. Therefore, from the first string The seventh character string intercepted in a data set to be converted includes character string A and character string B. Remove the beginning and end of string A, the resulting string is: click (hereinafter referred to as string C), remove the beginning and end of string B, and the resulting string is: book (hereinafter referred to as character String D). The second to-be-converted data set intercepted from the first to-be-converted data set includes a character string C and a character string D.
103、对上述第二待转换数据集进行转换处理,得到数据类型为第一类型的已转换数据集,其中,第一类型为浏览器可解析的数据类型。103. Perform conversion processing on the second data set to be converted to obtain a converted data set whose data type is a first type, where the first type is a data type that can be parsed by a browser.
本公开实施例中,第一类型为浏览器可解析的数据类型,即浏览器可解析的数据为第一类型的数据。In the embodiments of the present disclosure, the first type is a data type that can be parsed by the browser, that is, the data that can be parsed by the browser is the first type of data.
本公开实施例中,转换处理包括格式转换和语义分析,通过对第二待转换数据集进行转换处理,可对第二待转换数据集进行语义分析,以解析第二待转换数据集所指示的内容,并对第二待转换数据集进行格式转换以及打包处理,得到已转换数据集。已转换数据集所指示的内容与第二待转换数据集所指示的内容相同,且已转换数据集的数据类型为第一类型,即已转换数据集可被浏览器解析。In the embodiment of the present disclosure, the conversion processing includes format conversion and semantic analysis. By performing the conversion processing on the second data set to be converted, semantic analysis can be performed on the second data set to be converted to parse the data indicated by the second data set to be converted. Content, and perform format conversion and packaging processing on the second data set to be converted to obtain the converted data set. The content indicated by the converted data set is the same as the content indicated by the second data set to be converted, and the data type of the converted data set is the first type, that is, the converted data set can be parsed by the browser.
本公开实施例通过从第一待转换数据集中截取出内容部分所包含的字符串,得到第二待转换字符串。对第二待转换字符串进行转换处理,可在得到数据类型为第一类型的已转换数据集的同时,提高转换准确度。The embodiment of the present disclosure obtains the second character string to be converted by intercepting the character string contained in the content part from the first to-be-converted data set. Performing conversion processing on the second character string to be converted can improve conversion accuracy while obtaining a converted data set whose data type is the first type.
作为一种可选的实施方式,在第一类型为js的情况下,使用转换器(loader)对第二待转换数据集进行转换处理,可得到已转换数据集。As an optional implementation manner, when the first type is js, a converter (loader) is used to perform conversion processing on the second data set to be converted to obtain the converted data set.
为减小数据装置的数据处理量、提高数据处理装置的处理速度,作为一种可选的实施方式,开发人员在编写项目文件的过程中,可将项目文件中的第一待转换数据集存储于项目文件的转换目录(即第一待显示数据集中的转换目录)下。这样,数据处理装置可从第一待显示数据集中确定转换目录,并将存储于转换目录下的数据作为第一待转换数据集,以减小数据处理量、提高处理速度。例如,假设转换目录的名称为“transformation”。数据处理装置可从第一待显示数据集中确定名称为“transformation”的目录,并将存储于该目录下的数据作为第一待转换数据集。In order to reduce the data processing volume of the data device and increase the processing speed of the data processing device, as an optional implementation, the developer can store the first data set to be converted in the project file during the process of writing the project file Under the conversion directory of the project file (that is, the conversion directory in the first data set to be displayed). In this way, the data processing device can determine the conversion directory from the first to-be-displayed data set, and use the data stored in the conversion directory as the first to-be-converted data set, so as to reduce the amount of data processing and increase the processing speed. For example, suppose the name of the transformation directory is "transformation". The data processing device may determine a directory named "transformation" from the first to-be-displayed data set, and use the data stored in the directory as the first to-be-transformed data set.
作为另一种可选的实施方式,在开发人员编写项目文件的过程中,数据处理装置可向开发人员输出提示:以第一格式编写第一待转换数据集。这样,数据处理装置可从第一待显示数据集中确定具有第一格式的数据,并将具有第一格式的数据作为第一待转换数据集,以减小数据处理量、提高处理速度。例如,假设第一格式为以参考字符串结尾的数据,其中,参考字符串为.md。数据处理装置从第一待显示数据集中确定以.md结尾的数据,作为第一待转换数据集。As another optional implementation manner, in the process of the developer writing the project file, the data processing device may output a prompt to the developer: writing the first data set to be converted in the first format. In this way, the data processing device can determine the data in the first format from the first data set to be displayed, and use the data in the first format as the first data set to be converted, so as to reduce the amount of data processing and increase the processing speed. For example, suppose the first format is data ending with a reference character string, where the reference character string is .md. The data processing device determines data ending in .md from the first data set to be displayed as the first data set to be converted.
作为另一种可选的实施方式,开发人员在编写项目文件的过程中,既可将第一待转换数据集存储于项目文件的转换目录(即第一待显示数据集中的转换目录)下,也可以第一格式编写第一待转换数据集。这样,数据处理装置可将存储于转换目录下的数据和第一待显示数据集中确定具有第一格式的数据,作为第一待转换数据集。As another optional implementation manner, in the process of writing the project file, the developer can store the first data set to be converted in the conversion directory of the project file (that is, the conversion directory in the first data set to be displayed), It is also possible to write the first data set to be converted in the first format. In this way, the data processing device can set the data stored in the conversion directory and the first data to be displayed to determine the data having the first format as the first data set to be converted.
在一些可选实施例中,第一待转换数据集包括转换目录下的数据和/或第三待转换数据集;第三待转换数据集为第一待显示数据集中以第三字符串结尾的数据;转换目录属 于所述第一待显示数据集。In some optional embodiments, the first data set to be converted includes the data in the conversion directory and/or the third data set to be converted; the third data set to be converted is the first data set to be displayed that ends with a third character string Data; the conversion catalog belongs to the first to-be-displayed data set.
本公开实施例中,数据格式包括以下至少一种:语法、运算符的含义。例如,数据格式中的语法可以是指:一个项目文件至少包括一个自定义的类,且该自定义的类需使用关键字class声明。例如,数据格式中运算符的含义可以包括:“/=”表示做除法之后再赋值,如a/3表示a=a/3;第一格式中运算符的含义还可以包括:“+=”表示做加法之后再赋值,如a+=3表示a=a+3。上述第一格式可依据需求进行制定,本公开实施例对此不做限定。In the embodiment of the present disclosure, the data format includes at least one of the following: syntax and meaning of operators. For example, the grammar in the data format may mean: a project file includes at least one custom class, and the custom class needs to be declared with the keyword class. For example, the meaning of the operator in the data format can include: "/=" means assigning after division, for example, a/3 means a=a/3; the meaning of the operator in the first format can also include: "+=" It means assigning after addition, such as a+=3 means a=a+3. The above-mentioned first format can be formulated according to requirements, which is not limited in the embodiment of the present disclosure.
作为一种可选的实施方式,在得到已转换数据集后,数据处理装置执行以下步骤:As an optional implementation manner, after obtaining the converted data set, the data processing device performs the following steps:
1、使用上述浏览器渲染上述已转换数据集和上述第一待显示数据集中除上述第一待转换数据集之外的数据,得到显示页面。1. Use the browser to render the converted data set and the data in the first to-be-displayed data set except for the first to-be-converted data set to obtain a display page.
在第一待显示数据集中,除了第一待转换数据集之外,还有数据类型为浏览器可解析的数据类型的数据。因此,在对第二待转换数据集进行转换处理,得到已转换数据集后,通过对已转换数据集和第一待显示数据集中除第一待转换数据集之外的数据进行渲染,可通过显示页面显示第一待显示数据集所指示的内容。In the first data set to be displayed, in addition to the first data set to be converted, there is also data whose data type is a data type that can be parsed by the browser. Therefore, after converting the second data set to be converted to obtain the converted data set, by rendering the data in the converted data set and the first data set to be displayed except the first data set to be converted, The display page displays the content indicated by the first data set to be displayed.
本公开实施例通过从第一待转换数据集中截取出内容部分所包含的字符串,得到第二待转换字符串。对第二待转换字符串进行转换处理,可在得到数据类型为第一类型的转换数据集的同时,提高转换准确度,进而提高页面显示的准确度。The embodiment of the present disclosure obtains the second character string to be converted by intercepting the character string contained in the content part from the first to-be-converted data set. Performing the conversion processing on the second character string to be converted can improve the accuracy of the conversion while obtaining the conversion data set of the first type of data type, thereby improving the accuracy of page display.
在通过对第一待显示数据集进行打包处理,显示第一待显示数据集的过程中,不仅需要对第一待转换数据集进行转换处理,还需对第一待显示数据集中除第一待转换数据集之外的文件进行转换处理。由于第一待显示数据集包含的字符串的数量较多,显然,从第一待显示数据集中确定第一待转换数据集,将给数据处理装置带来较大的数据处理量,从而降低数据处理装置的速度。In the process of packaging the first data set to be displayed and displaying the first data set to be displayed, it is not only necessary to perform conversion processing on the first data set to be converted, but also to remove the first data set from the first data set to be displayed. Convert files outside the data set for conversion processing. Since the first to-be-displayed data set contains a large number of character strings, it is obvious that determining the first to-be-converted data set from the first to-be-displayed data set will bring a larger amount of data processing to the data processing device, thereby reducing data The speed of the processing device.
如上所述,由于浏览器无法直接渲染第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集,则在使用浏览器渲染已转换数据集和第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面之前,方法还包括:编译第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集,得到浏览器可渲染的第二待显示数据集;则使用浏览器渲染已转换数据集和第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面,包括:使用浏览器渲染第二待显示数据集,得到显示页面,实现对第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集的渲染。As mentioned above, because the browser cannot directly render the data in the first to-be-displayed data set and the converted data set except the first to-be-converted data set, when using the browser to render the converted data set and the first to-be-displayed data set Before obtaining the display page with data other than the first data set to be converted, the method further includes: compiling the data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain the browser Renderable second data set to be displayed; then use the browser to render the converted data set and the data in the first data set to be displayed except for the first data set to be converted to obtain the display page, including: using the browser to render The second to-be-displayed data set obtains a display page, and the data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set are rendered.
作为一种可选的实施方式,在数据处理装置编译第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集的过程中,可显示编译过程的编译信息,其中,编译信息包括以下至少一种:编译状态、编译进度、编译过程中出现的错误。As an optional implementation manner, in the process of compiling the data in the first data set to be displayed except the first data set to be converted and the converted data set by the data processing device, the compilation information of the compilation process may be displayed, wherein, The compilation information includes at least one of the following: compilation status, compilation progress, and errors during compilation.
上述编译状态包括编译成功或编译失败,具体的,在第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集被数据处理装置成功编译的情况下,编译状态包括编译成功,在第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集未被数据处理装置成功编译的情况下,编译状态包括编译失败。The above-mentioned compilation status includes compilation success or compilation failure. Specifically, in the case that the data in the first to-be-displayed data set other than the first to-be-converted data set and the converted data set are successfully compiled by the data processing device, the compilation status includes the compilation Success, if the data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set are not successfully compiled by the data processing device, the compilation status includes compilation failure.
上述编译进度包括已编译的数据量与第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集的数据量的比值。例如,第一待显示数据集中除第一待转换数据集之外的数据的数据量为3兆(Mbyte,MB),和已转换数据集的数据量为1兆(Mbyte,MB),已编译的文件的数据量为1字节(Byte),编译进度为25%。The foregoing compilation progress includes the ratio of the amount of compiled data to the data in the first to-be-displayed data set excluding the first to-be-converted data set and the data amount of the converted data set. For example, the data volume of the data in the first data set to be displayed except the first data set to be converted is 3 megabytes (Mbyte, MB), and the data volume of the converted data set is 1 megabyte (Mbyte, MB), compiled The data volume of the file is 1 byte (Byte), and the compilation progress is 25%.
通过数据处理装置显示编译信息,开发人员可通过数据装置及时获知第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集的编译信息,以便开发人员安排相应的工作,从而提高开发人员的开发效率。Through the data processing device to display the compiled information, the developer can obtain the data in the first to-be-displayed data set except the first to-be-converted data set and the compiled information of the converted data set in time through the data device, so that the developer can arrange the corresponding work. Thereby improving the development efficiency of developers.
作为一种可选的实施方式,数据处理装置可通过插件(plugin)实现显示上述编译信息。例如,数据处理装置装载有显示器,通过plugin在该显示器中的显示页面内弹出弹窗,弹窗内包含上述编译信息。又例如,数据处理装置装载有显示器,通过plugin在该显示器中的显示页面内显示至少一个插件,至少一个插件内包含上述编译信息。可选的,在通过至少一个插件显示上述编译信息的情况下,任意两个插件显示的内容均不同。例如,上述编译信息包括编译进度、编译过程中出现的错误,至少一个插件包括第一插件和第二插件。可通过第一插件显示编译进度、通过第二插件显示编译过程中出现的错误。As an optional implementation manner, the data processing apparatus may realize the display of the above-mentioned compilation information through a plug-in. For example, the data processing device is equipped with a display, and a pop-up window pops up in the display page of the display through a plugin, and the pop-up window contains the above-mentioned compilation information. For another example, the data processing device is equipped with a display, and at least one plug-in is displayed in a display page in the display through a plugin, and the at least one plug-in contains the above-mentioned compilation information. Optionally, in the case where the above-mentioned compilation information is displayed through at least one plug-in, the contents displayed by any two plug-ins are different. For example, the above-mentioned compilation information includes compilation progress and errors occurred during compilation, and the at least one plug-in includes a first plug-in and a second plug-in. The compilation progress can be displayed through the first plug-in, and errors in the compilation process can be displayed through the second plug-in.
编译过程中出现的错误通常为英文文字体现,作为一种可选的实施方式,将编译过程中出现的错误称为第一错误。在显示第一错误之前,数据处理装置可对第一错误进行翻译,得到第二错误,其中,第二错误可以为除英文外的任意一种文字。例如,第二错误可以是中文文字体现。又例如,第二错误可以是日文文字体现。再例如,第二错误可以是拉丁文文字体现。Errors that occur during the compilation process are usually embodied in English text. As an optional implementation manner, the errors that occur during the compilation process are referred to as the first error. Before displaying the first error, the data processing device can translate the first error to obtain a second error, where the second error can be any type of text except English. For example, the second error may be manifested in Chinese characters. For another example, the second error may be reflected in Japanese text. For another example, the second error may be manifested in Latin characters.
则在一些可选实施例中,所述方法还包括:在编译信息包括编译过程中出现的错误的情况下,对编译过程中出现的第一错误进行翻译,得到第二错误,并显示第二错误,可提高开发人员的开发效率。Then, in some optional embodiments, the method further includes: in the case that the compilation information includes errors that occur during the compilation process, translating the first error that occurs during the compilation process to obtain the second error, and display the second error. Errors can improve the development efficiency of developers.
由于开发人员在编写第一待显示数据集的过程中,可能需要依据预期需求对第一待显示数据集进行更新。例如,在编译第一待显示数据集的过程中,由于出现了编译错误,导致第一待显示数据集无法成功编译。此时,预期需求为使第一待显示数据集可被成功编译,开发人员需要更新第一待显示数据集,以使更新后的第一待显示数据集可被数据处理装置成功编译。又例如,开发人员想通过对第一待显示数据集进行更新,使第一待显示数据集新增一个搜索的功能,此时预期需求为新增一个搜索的功能。Since the developer is in the process of compiling the first data set to be displayed, it may be necessary to update the first data set to be displayed according to the expected demand. For example, in the process of compiling the first data set to be displayed, due to a compilation error, the first data set to be displayed cannot be successfully compiled. At this time, the expected requirement is that the first data set to be displayed can be successfully compiled, and the developer needs to update the first data set to be displayed so that the updated first data set to be displayed can be successfully compiled by the data processing device. For another example, a developer wants to add a search function to the first data set to be displayed by updating the first data set to be displayed. At this time, the expected demand is to add a search function.
可选的,更新第一待显示数据集的方式可通过调整第一待显示数据集实现,其中,调整第一待显示数据集包括以下至少一种:修改第一待显示数据集中的数据、删除第一待显示数据集中的数据、向第一待显示数据集中添加数据。Optionally, the method of updating the first data set to be displayed can be realized by adjusting the first data set to be displayed, wherein adjusting the first data set to be displayed includes at least one of the following: modifying data in the first data set to be displayed, deleting Add the data in the first data set to be displayed and add data to the first data set to be displayed.
若开发人员需要通过对更新后的第一待显示数据集进行编译,并解析编译后的第一待显示数据集,获知更新后的第一待显示数据集所实现的功能是否符合预期需求,需要在至少两个页面之间切换,甚至需要在至少两台设备之间切换,这将降低开发人员的开发效率。例如,编写第一待显示数据集或更新第一待显示数据集的页面为页面A,浏览器所展示的页面为页面B。开发人员想要查看第一待显示数据集中的任意一个功能的效 果,均需在页面A内编写第一待显示数据集或更新第一待显示数据集,在页面B内通过查看浏览器解析编译后的第一待显示数据集的显示效果,以确定第一待显示数据集中的功能的效果。If the developer needs to compile the updated first to-be-displayed data set and analyze the compiled first to-be-displayed data set to know whether the functions implemented by the updated first to-be-displayed data set meet the expected requirements, need Switching between at least two pages, or even between at least two devices, will reduce the development efficiency of developers. For example, the page for writing the first data set to be displayed or updating the first data set to be displayed is page A, and the page displayed by the browser is page B. Developers who want to view the effect of any function in the first to-be-displayed data set need to write the first to-be-displayed data set or update the first to-be-displayed data set in page A, and analyze and compile by viewing the browser in page B The subsequent display effect of the first data set to be displayed is used to determine the effect of the function in the first data set to be displayed.
为提高开发人员的开发效率,在本公开实施例提供的技术方案中,在更新第一待显示数据集的过程中,数据处理装置可在接收到显示第一待显示数据集所指示的内容的情况下,显示第一待显示数据集所指示的内容,无需进行页面切换。In order to improve the development efficiency of developers, in the technical solution provided by the embodiments of the present disclosure, in the process of updating the first to-be-displayed data set, the data processing device may receive the display of the content indicated by the first to-be-displayed data set. In this case, the content indicated by the first data set to be displayed is displayed without page switching.
作为一种可选的实施方式,方法还包括:数据处理装置在接收到第一待显示数据集的预览指令的情况下,显示第一待显示数据集所指示的内容。例如,开发人员想查看第一待显示数据集中的文档A,假设预览指令为check。数据处理装置在接收到开发人员输入的预览指令(即check)的情况下,读取文档A,并通过数据处理装置显示文档A。可选的,显示文档A与编写第一文档可通过不同窗口实现。例如,数据处理装置的显示页面包括窗口a和窗口b,其中,窗口a用于显示第一文档、接收针对第一文档的更新指令(即开发人员可通过向窗口a输入更新指令,更新第一文档),弹出窗口b,其中,窗口b用于显示文档A。As an optional implementation manner, the method further includes: when the data processing device receives the preview instruction of the first to-be-displayed data set, displaying the content indicated by the first to-be-displayed data set. For example, a developer wants to view document A in the first data set to be displayed, suppose the preview instruction is check. When the data processing device receives the preview instruction (ie check) input by the developer, it reads the document A, and displays the document A through the data processing device. Optionally, displaying document A and writing the first document can be implemented through different windows. For example, the display page of the data processing device includes a window a and a window b, wherein the window a is used to display the first document and receive an update instruction for the first document (that is, the developer can update the first document by inputting the update instruction into the window a). Document), a pop-up window b, where window b is used to display document A.
又例如,假设预览指令为保存指令。开发人员在通过数据处理装置更新完第一待显示数据集后,向数据处理装置输入保存更新后的第一待显示数据集的指令,数据处理装置在接收到保存更新后第一待显示数据集的指令的情况下,执行编译更新后的第一待显示数据集,得到编译后的第一待显示数据集,并通过解析编译后的第一待显示数据集,显示更新后的第一待显示数据集所指示的内容。For another example, suppose the preview instruction is a save instruction. After updating the first data set to be displayed through the data processing device, the developer inputs to the data processing device an instruction to save the updated first data set to be displayed, and the data processing device receives the saved and updated first data set to be displayed In the case of instructions, execute the compiled and updated first data set to be displayed to obtain the compiled first data set to be displayed, and display the updated first data set to be displayed by parsing the compiled first data set to be displayed The content indicated by the data set.
通过向数据处理装置输入预览指令,开发人员可实时查看第一待显示数据集所指示的内容(包括查看第一待显示数据集中的文档、查看第一待显示数据集所实现的功能),无需切换页面或更换设备,从而提高开发人员的开发效率。By inputting the preview instruction to the data processing device, the developer can view the content indicated by the first data set to be displayed in real time (including viewing the documents in the first data set to be displayed, and viewing the functions realized by the first data set to be displayed). Switch pages or change equipment to improve the development efficiency of developers.
由于开发第一待显示数据集的工作量大,为提高开发效率,至少两名开发人员可通过分工合作的方式完成对第一待显示数据集的开发。具体的,可将第一待显示数据集所需实现的功能分配给至少两名开发人员,使每一名开发人员负责开发的功能不同。例如(例3),第一待显示数据集所需实现的功能包括功能A、功能B、功能C,其中,功能A的实现由开发人员a负责,功能B的实现由开发人员b负责,功能C的实现由开发人员c负责。Due to the large workload of developing the first data set to be displayed, in order to improve development efficiency, at least two developers can complete the development of the first data set to be displayed through division of labor and cooperation. Specifically, the functions required to be implemented by the first data set to be displayed can be allocated to at least two developers, so that each developer is responsible for different functions. For example (Example 3), the functions to be implemented by the first data set to be displayed include function A, function B, and function C. Among them, the realization of function A is in charge of developer a, the realization of function B is in charge of developer b, and the function The realization of C is the responsibility of the developer c.
在每一名开发人员通过编写代码,分别完成所负责的功能的开发的情况下,将每一名开发人员编写的代码存储于同一目录下,得到第一待显示数据集。以例3为例(例4),假设开发人员a编写的代码D可实现功能A,开发人员b编写的代码E可实现功能B,开发人员c编写的代码F可实现功能C。将代码D、代码E、代码F存储于目录d下,得到第一待显示数据集。In the case that each developer completes the development of the function they are responsible for separately by writing code, the code written by each developer is stored in the same directory to obtain the first data set to be displayed. Taking Example 3 as an example (Example 4), suppose that the code D written by developer a can realize function A, the code E written by developer b can realize function B, and the code F written by developer c can realize function C. Store code D, code E, and code F in directory d to obtain the first data set to be displayed.
为表述方便,下文将实现一个功能的代码称为模块数据集,如例4中的代码D、代码E、代码F均为模块数据集。由于不同的模块数据集之间可能存在依赖关系,而每一个模块数据集均为独立的,在解析第一待显示数据集之前,需要建立模块数据集与模块数据集之间的依赖关系。For the convenience of expression, the code that implements a function is called a module data set below. For example, code D, code E, and code F in Example 4 are all module data sets. Since there may be a dependency relationship between different module data sets, and each module data set is independent, it is necessary to establish a dependency relationship between the module data set and the module data set before analyzing the first data set to be displayed.
例如(例5),假设模块数据集A用于实现功能a,模块数据集B用于实现功能b,而在模块数据集A实现功能a的过程中,需要使用模块数据集B得到的数据C。也就是说,模块数据集A和模块数据集B之间存在依赖关系。通过在模块数据集A和模块数据集B之间建立依赖关系,在解析第一待显示数据集的过程中,可使模块数据集B将数据C传输至模块数据集A,这样,模块数据集A才能实现功能a。For example (Example 5), suppose that module data set A is used to implement function a, and module data set B is used to implement function b. In the process of module data set A to implement function a, data C obtained from module data set B is required . In other words, there is a dependency relationship between the module data set A and the module data set B. By establishing a dependency relationship between the module data set A and the module data set B, in the process of parsing the first data set to be displayed, the module data set B can be made to transmit the data C to the module data set A, so that the module data set A can realize function a.
又例如(例6),假设模块数据集A用于实现功能a,模块数据集B用于实现功能b,而在模块数据集A实现功能a的过程中,需要使用模块数据集B实现功能b。也就是说,模块数据集A和模块数据集B之间存在依赖关系。通过在模块数据集A和模块数据集B之间建立依赖关系,这样,在解析第一待显示数据集的过程中,模块数据集A可调用模块数据集B,从而实现功能a。For another example (Example 6), suppose that module data set A is used to implement function a, and module data set B is used to implement function b. In the process of module data set A to implement function a, module data set B needs to be used to implement function b. . In other words, there is a dependency relationship between the module data set A and the module data set B. By establishing a dependency relationship between the module data set A and the module data set B, in the process of parsing the first data set to be displayed, the module data set A can call the module data set B, thereby realizing the function a.
传统方法中,开发人员需要在编写模块数据集的过程中考虑模块数据集与模块数据集之间的依赖关系,并依据依赖关系在模块数据集中编写相应的代码,以建立模块数据集与模块数据集之间的依赖关系。以例5为例,假设模块数据集B由张三负责开发。张三在编写模块数据集B的过程中,需要编写相应的代码,以将解析模块数据集B得到的数据C传输至模块数据集A。再以例6为例,假设模块数据集A由李四负责开发。李四在编写模块数据集A的过程中,需要写入相应的代码,以在解析模块数据集A的过程中,使模块数据集A调用模块数据集B。In the traditional method, the developer needs to consider the dependency relationship between the module data set and the module data set in the process of writing the module data set, and write the corresponding code in the module data set according to the dependency relationship to establish the module data set and the module data Dependencies between sets. Take Example 5 as an example, suppose that the module data set B is developed by Zhang San. In the process of writing module data set B, Zhang San needs to write corresponding code to transfer data C obtained by analyzing module data set B to module data set A. Taking Example 6 as an example again, suppose that the module data set A is developed by Li Si. In the process of writing module data set A, Li Si needs to write the corresponding code to make module data set A call module data set B in the process of parsing module data set A.
通过传统方法建立模块数据集与模块数据集之间的依赖关系,需要开发人员付出额外的劳动,进而降低开发人员的开发效率。Establishing the dependency relationship between the module data set and the module data set through the traditional method requires the developer to pay extra labor, thereby reducing the development efficiency of the developer.
在一种可能实现的方式中,第一待显示数据集包括第一模块数据集,将开发人员添加至第一待显示数据集所在的目录下的模块数据集称为第二模块数据集,其中,第二模块数据集的数据格式与第一模块数据集的数据格式相同,且第二模块数据集的目录结构与第一模块数据集的目录结构相同。在编译第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集,得到第二待显示数据集之前,方法还包括:数据处理装置在获取第二模块数据集以及将第二模块数据集添加至第一待显示数据集的指令的情况下,将第二模块数据集添加至第一待显示数据集,得到第三待显示数据集。相应的,编译第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集,得到第二待显示数据集,包括:数据处理装置通过编译第三待显示数据集中除第一待转换数据集之外的数据和已转换数据集,建立第二模块数据集与第一模块数据集之间的依赖关系,可得到第二待显示数据集。In a possible implementation manner, the first data set to be displayed includes the first module data set, and the module data set added by the developer to the directory where the first data set to be displayed is located is called the second module data set, where , The data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as the directory structure of the first module data set. Before compiling the data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set to obtain the second to-be-displayed data set, the method further includes: the data processing device obtains the second module data set and In the case of an instruction to add the second module data set to the first data set to be displayed, the second module data set is added to the first data set to be displayed to obtain a third data set to be displayed. Correspondingly, compiling the data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set to obtain the second to-be-displayed data set includes: the data processing device compiles the third to-be-displayed data set except for the first A data set other than the data set to be converted and the converted data set are established, and the dependency relationship between the second module data set and the first module data set is established, and the second data set to be displayed can be obtained.
在数据处理装置编译第三待显示数据集的过程中,可依据第一模块数据集的目录结构,查找第一模块数据集中的数据,并依据第一模块数据集的数据格式解析第一模块数据集中的数据。由于第二模块数据集的数据格式与第一模块数据集的数据格式相同,且第二模块数据集的目录结构与第一模块数据集的目录结构相同,数据处理装置可在编译过程中,以查找第一模块数据集中的数据的方式查找第二模块数据集中的数据,并以解析第一模块数据集中的数据的方式解析第二模块数据集中的数据,进而可建立第一模块数据集与第二模块数据集之间的依赖关系。In the process of compiling the third data set to be displayed by the data processing device, the data in the first module data set can be searched according to the directory structure of the first module data set, and the first module data can be parsed according to the data format of the first module data set Centralized data. Since the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as the directory structure of the first module data set, the data processing device can use Find the data in the data set of the first module to find the data in the data set of the second module, and analyze the data in the data set of the second module by analyzing the data in the data set of the first module, and then establish the data set of the first module and the data set of the second module. The dependency between the data sets of the two modules.
可选的,在接收到编译第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集的指令的情况下,通过编译第三待显示数据集中除第一待转换数据集之外的数据和已转换数据集,建立第二模块数据集与第一模块数据集之间的依赖关系。Optionally, in the case of receiving an instruction to compile data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set, compile the third to-be-displayed data set except for the first to-be-converted data The data outside the set and the converted data set establish a dependency relationship between the second module data set and the first module data set.
在该种实现方式中,数据处理装置可通过编译第三待显示数据集,建立第一模块数据集与第二模块数据集之间的依赖关系,有利于提高开发人员的开发效率。In this implementation manner, the data processing device may compile the third to-be-displayed data set to establish a dependency relationship between the first module data set and the second module data set, which is beneficial to improve the development efficiency of developers.
基于该种实现方式,开发人员只需在编写第二模块数据集的过程中,使第二模块数据集的目录结构与第一模块数据集的目录结构相同,并使第二模块数据集的数据格式与第一模块数据集的数据格式相同,并将第二模块数据集添加至第一待显示数据集的目录下。即可通过数据处理装置对第三待显示数据集中除第一待转换数据集之外的数据和已转换数据集的编译,建立该编写好的模块数据集与第一待显示数据集中的模块数据集之间的依赖关系。无需在编写第二模块数据集的过程中,编写第二模块数据集与第一模块数据集之间的依赖关系,从而提高开发人员的开发效率。Based on this implementation method, developers only need to make the directory structure of the second module data set the same as the directory structure of the first module data set in the process of writing the second module data set, and make the data of the second module data set the same. The format is the same as the data format of the first module data set, and the second module data set is added to the directory of the first data set to be displayed. That is, the data processing device can compile the data in the third data set to be displayed except the first data set to be converted and the converted data set to establish the compiled module data set and the module data in the first data set to be displayed Dependencies between sets. There is no need to write the dependency relationship between the second module data set and the first module data set in the process of writing the second module data set, thereby improving the development efficiency of developers.
在开发人员开发第一待显示数据集的过程中,除了向第一待显示数据集中添加模块数据集,可能还需删除第一待显示数据集中的模块数据集。例如,假设第一待显示数据集中的模块数据集A用于实现功能a,现不需要实现功能a,因此需要将第一待显示数据集中的模块数据集A删除。In the process of developing the first data set to be displayed by the developer, in addition to adding a module data set to the first data set to be displayed, it may be necessary to delete the module data set in the first data set to be displayed. For example, suppose that the module data set A in the first data set to be displayed is used to implement function a, and function a does not need to be implemented now. Therefore, the module data set A in the first data set to be displayed needs to be deleted.
在一种可能实现的方式中,第一待显示数据集包括第三模块数据集和第四模块数据集。第三模块数据集的数据格式与第四模块数据集的数据格式相同,且第三模块数据集的目录结构与第四模块数据集的目录结构相同。In a possible implementation manner, the first data set to be displayed includes a third module data set and a fourth module data set. The data format of the third module data set is the same as the data format of the fourth module data set, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set.
则在一些可选的实施例中,方法还包括:数据处理装置在接收到删除第三模块数据集的指令的情况下,可在数据处理装置执行编译第一待显示数据集中除第一待转换数据集之外的数据和已转换数据集的操作、得到第二待显示数据集之前,从第一待显示数据集中删除第三模块数据集,得到第四待显示数据集。Then, in some optional embodiments, the method further includes: when the data processing device receives the instruction to delete the third module data set, the data processing device executes the compilation of the first data set to be displayed except for the first data set to be converted. Before the operation of the data outside the data set and the converted data set, the second data set to be displayed is obtained, the third module data set is deleted from the first data set to be displayed, and the fourth data set to be displayed is obtained.
数据处理装置在编译第四待显示数据集的过程中,可依据第四模块数据集的目录结构,查找第四模块数据集中的数据,并依据第四模块数据集的数据格式解析第四模块数据集中的数据,进而确定第四模块数据集下依赖关系的存储路径。依据该存储路径将第四模块数据集与第三模块数据集之间的依赖关系删除。In the process of compiling the fourth data set to be displayed, the data processing device can search for data in the fourth module data set according to the directory structure of the fourth module data set, and parse the fourth module data according to the data format of the fourth module data set Collect the data, and then determine the storage path of the dependency relationship under the fourth module data set. According to the storage path, the dependency relationship between the fourth module data set and the third module data set is deleted.
可选的,在接收到删除第三模块数据集的指令的情况下,通过编译第四待显示数据集中除第一待转换数据集之外的数据和已转换数据集,删除第三模块数据集与第四模块数据集之间的依赖关系,得到第二待显示数据集。Optionally, in the case of receiving an instruction to delete the third module data set, delete the third module data set by compiling the data in the fourth data set to be displayed except the first data set to be converted and the converted data set The dependency relationship with the fourth module data set is used to obtain the second data set to be displayed.
在该种实现方式中,数据处理装置可通过编译第四待显示数据集,删除第三模块数据集与第四模块数据集之间的依赖关系,有利于提高开发人员的开发效率。In this implementation manner, the data processing device can delete the dependency between the third module data set and the fourth module data set by compiling the fourth data set to be displayed, which is beneficial to improve the development efficiency of developers.
在开发人员开发第一待显示数据集的过程中,除了向第一待显示数据集中添加模块数据集,以及删除第一待显示数据集中的模块数据集之外,可能还需修改第一待显示数据集中的模块数据集。例如,假设第一待显示数据集中的模块数据集A用于实现功能a,现需要优化功能a,可通过修改第一待显示数据集中的模块数据集A,达到优化功能a的效果。In the process of developing the first data set to be displayed, in addition to adding a module data set to the first data set to be displayed, and deleting the module data set in the first data set to be displayed, it may be necessary to modify the first data set to be displayed. The module data set in the data set. For example, suppose that the module data set A in the first data set to be displayed is used to implement function a, and the function a needs to be optimized. The effect of the optimization function a can be achieved by modifying the module data set A in the first data set to be displayed.
对第一待显示数据集中的模块数据集进行修改,也会导致模块数据集与模块数据集之间的依赖关系发生改变。例如(例7),第一待显示数据集包括模块数据集A和模块数据集B,其中,模块数据集A与模块数据集B之间存在依赖关系。数据处理装置在接收到针对模块数据集A的修改指令的情况下,对模块数据集A进行修改,得到模块数据集C,其中,模块数据集C与模块数据集B之间存在依赖关系。Modifying the module data set in the first data set to be displayed will also cause the dependency relationship between the module data set and the module data set to change. For example (Example 7), the first data set to be displayed includes a module data set A and a module data set B, where there is a dependency relationship between the module data set A and the module data set B. After receiving the modification instruction for the module data set A, the data processing device modifies the module data set A to obtain the module data set C, wherein there is a dependency relationship between the module data set C and the module data set B.
将对被修改的模块数据集进行修改得到的数据集,称为修改后的模块数据集。将对第一待显示数据集修改得到的数据集,称为修改后的第一待显示数据集。基于本公开实施例提供的技术方案,可通过编译修改后的第一待显示数据集,删除被修改的模块数据集与第一待显示数据集中的模块数据集之间的依赖关系,并建立修改后的模块数据集与第一待显示数据集中的模块数据集之间的依赖关系。The data set obtained by modifying the modified module data set is called the modified module data set. The data set obtained by modifying the first data set to be displayed is referred to as the modified first data set to be displayed. Based on the technical solutions provided by the embodiments of the present disclosure, by compiling the modified first data set to be displayed, the dependency relationship between the modified module data set and the module data set in the first data set to be displayed can be deleted, and the modification can be established The dependency relationship between the subsequent module data set and the module data set in the first data set to be displayed.
以例7为例,被修改的模块数据集为模块数据集A,修改后的模块数据集为模块数据集C,修改后的第一待显示数据集包括模块数据集B和模块数据集C。通过编译修改后的第一待显示数据集,可删除模块数据集A与模块数据集B之间的依赖关系,并建立模块数据集B与模块数据集C之间的依赖关系。Taking Example 7 as an example, the modified module data set is module data set A, the modified module data set is module data set C, and the modified first data set to be displayed includes module data set B and module data set C. By compiling the modified first data set to be displayed, the dependency relationship between the module data set A and the module data set B can be deleted, and the dependency relationship between the module data set B and the module data set C can be established.
基于本公开实施例提供的技术方案,本公开实施例还提供了一种可能实现的应用场景。Based on the technical solutions provided by the embodiments of the present disclosure, the embodiments of the present disclosure also provide a possible application scenario.
随着移动互联网的发展,前端开发得到了快速的发展,前端开发在内容上、形式上、功能上都有了极大的丰富。基于前端技术的发展,通过前端开发可很好的满足前端业务需求,但是前端开发所需的工作量大,因此,如何有效提高前端开发效率就变得非常有意义。With the development of the mobile Internet, front-end development has developed rapidly, and front-end development has greatly enriched in content, form, and function. Based on the development of front-end technology, front-end business needs can be well met through front-end development, but the workload required for front-end development is large. Therefore, how to effectively improve front-end development efficiency becomes very meaningful.
基于本公开实施例提供的前端框架进行前端开发,可提高开发效率。The front-end development based on the front-end framework provided by the embodiments of the present disclosure can improve development efficiency.
可选的,前端框架的架构图可参见图2。如图2所示,前端框架包括业务层、组件层、中间服务层、数据交换层。Optionally, the architecture diagram of the front-end framework can be seen in Figure 2. As shown in Figure 2, the front-end framework includes a business layer, a component layer, an intermediate service layer, and a data exchange layer.
运行基于该前端框架开发的得到的项目文件的设备(下文将称为运行设备。可选的,运行设备包括电脑),可通过数据交换层从后台设备获取数据。可选的,后台设备包括服务器。中间服务层用于存储数据交换层从后台设备获取的数据,并向业务层提供完成业务需求所需的数据。业务层包括上述模块数据集。运行设备使用浏览器渲染业务层中的模块数据集和中间服务层的数据(即第一待显示数据集),可实现前端显示,得到显示页面。The device that runs the project file developed based on the front-end framework (hereinafter referred to as the running device. Optionally, the running device includes a computer) can obtain data from the back-end device through the data exchange layer. Optionally, the background device includes a server. The middle service layer is used to store the data obtained by the data exchange layer from the back-end devices and provide the business layer with the data needed to complete the business requirements. The business layer includes the above-mentioned module data set. The running device uses the browser to render the module data set in the business layer and the data of the middle service layer (that is, the first data set to be displayed), which can realize front-end display and obtain a display page.
可选的,业务层包括loader,运行设备在编译第一待显示数据集的过程中,使用业务层中的loader对第一待显示数据集进行转换处理,得到数据类型为第一类型的已转换数据集。Optionally, the business layer includes a loader. During the process of compiling the first data set to be displayed, the operating device uses the loader in the business layer to convert the first data set to be displayed to obtain the converted data type of the first type. data set.
组件层包括页面显示所需要的各种插件。可选的,在运行设备编译第一待显示数据集的过程中,业务层可使用组件层中的插件(例如plugin)显示编译信息。例如,显示编译过程出现的错误;显示编译状态;显示编译进度。例如,第一待显示数据集的编译信息可通过弹窗的形式进行显示,组件层包括实现弹窗功能的文件。The component layer includes various plug-ins needed for page display. Optionally, in the process of compiling the first data set to be displayed by the operating device, the business layer may use a plug-in (for example, plugin) in the component layer to display the compilation information. For example, display errors in the compilation process; display compilation status; display compilation progress. For example, the compiled information of the first data set to be displayed can be displayed in the form of a pop-up window, and the component layer includes files that implement the pop-up window function.
可选的,在使用浏览器渲染已转换数据集和第一待显示数据集中除第一待转换数据 集之外的数据的过程中,运行设备还可使用组件层中的插件,在显示页面中显示与业务层中的模块数据集对应的内容。Optionally, in the process of using the browser to render the converted data set and the data in the first to-be-displayed data set other than the first to-be-converted data set, the running device can also use the plug-in in the component layer to display the data in the page Display the content corresponding to the module data set in the business layer.
例如,业务层(即第一待显示数据集)包括以下至少一个:检索模块、布控模块、档案模块、技战法模块。检索模块用于依据检索条件对数据库中的数据进行检索。显示页面中与检索模块对应的内容可以是检索栏。布控模块用于显示获取到的视频流和/或图像。档案模块用于存储人物信息和/或车辆信息。显示页面中与布控模块对应的内容可以是人物信息和/或车辆信息展示区域。For example, the business layer (that is, the first data set to be displayed) includes at least one of the following: a retrieval module, a deployment control module, an archive module, and a technique module. The retrieval module is used to retrieve data in the database according to retrieval conditions. The content corresponding to the retrieval module in the display page may be a retrieval column. The deployment control module is used to display the acquired video stream and/or image. The archive module is used to store character information and/or vehicle information. The content corresponding to the deployment control module on the display page may be a display area of character information and/or vehicle information.
技战法模块,用于展示至少一种第一图侦技战法,以及接收用户从所述至少一种第一图侦技战法中选择的至少一种第二图侦技战法。显示页面中与技战法模块对应的内容可以是至少一种第一图侦技战法。第一图侦技战法为可供用户选择的图侦技战法。运行设备在接收到用户从至少一种第一图侦技战法中选择的至少一种第二图侦技战法的情况下,基于至少一种第二图侦技战法,使用布控模块获取到的视频流和/或图像、存储档案模块中的人物信息和/或车辆信息,得到图侦结果,并将图侦结果显示在与技战法模块对应内容中。The technical warfare module is used to display at least one first graphical detection technical warfare and receive at least one second graphical detection technical warfare selected by the user from the at least one first graphical detection technical warfare. The content on the display page corresponding to the technical warfare module may be at least one first-picture reconnaissance technical warfare. The first picture reconnaissance technique is a picture reconnaissance technique that can be selected by the user. When the operating device receives at least one second map reconnaissance strategy selected by the user from at least one first map reconnaissance strategy, based on at least one second map reconnaissance strategy, the deployment control module is used to obtain The received video stream and/or image, the character information and/or vehicle information in the storage archive module, obtain the image detection result, and display the image detection result in the content corresponding to the technique module.
本领域技术人员可以理解,在具体实施方式的上述方法中,各步骤的撰写顺序并不意味着严格的执行顺序而对实施过程构成任何限定,各步骤的具体执行顺序应当以其功能和可能的内在逻辑确定。Those skilled in the art can understand that in the above-mentioned methods of the specific implementation, the writing order of the steps does not mean a strict execution order but constitutes any limitation on the implementation process. The specific execution order of each step should be based on its function and possibility. The inner logic is determined.
上述详细阐述了本公开实施例的方法,下面提供了本公开实施例的装置。The foregoing describes the method of the embodiment of the present disclosure in detail, and the device of the embodiment of the present disclosure is provided below.
请参阅图3,图3为本公开实施例提供的一种数据处理装置的结构示意图。该数据处理装置1包括:获取单元11、截取单元12和转换单元13;其中:Please refer to FIG. 3, which is a schematic structural diagram of a data processing device provided by an embodiment of the present disclosure. The data processing device 1 includes: an acquisition unit 11, an intercepting unit 12, and a conversion unit 13; among them:
获取单元11,配置为获取第一待显示数据集;所述第一待显示数据集包括第一待转换数据集;所述第一待转换数据集的开头为第一字符串,所述第一待转换数据集的结尾为第二字符串;The acquiring unit 11 is configured to acquire a first to-be-displayed data set; the first to-be-displayed data set includes a first to-be-converted data set; the beginning of the first to-be-converted data set is a first character string, and the first The end of the data set to be converted is the second character string;
截取单元12,配置为从所述第一待转换数据集中截取所述位于所述第一字符串与所述第二字符串之间的字符串,得到第二待转换数据集;The intercepting unit 12 is configured to intercept the character string located between the first character string and the second character string from the first data set to be converted to obtain a second data set to be converted;
转换单元13,配置为对所述第二待转换数据集进行转换处理,得到数据类型为第一类型的已转换数据集;所述第一类型为浏览器可解析的数据类型。The conversion unit 13 is configured to perform conversion processing on the second data set to be converted to obtain a converted data set whose data type is a first type; the first type is a data type that can be parsed by a browser.
结合本公开任一实施方式,所述第一待转换数据集包括转换目录下的数据和/或第三待转换数据集;所述第三待转换数据集为所述第一待显示数据集中以第三字符串结尾的数据;所述转换目录属于所述第一待显示数据集。With reference to any one of the embodiments of the present disclosure, the first data set to be converted includes data in a conversion directory and/or a third data set to be converted; the third data set to be converted is the first data set to be displayed Data at the end of the third character string; the conversion directory belongs to the first data set to be displayed.
结合本公开任一实施方式,所述装置还包括:With reference to any embodiment of the present disclosure, the device further includes:
渲染单元,配置为使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面。The rendering unit is configured to use the browser to render the converted data set and the data in the first to-be-displayed data set except for the first to-be-converted data set to obtain a display page.
结合本公开任一实施方式,所述装置还包括:编译单元,配置为在所述使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到页面显示之前,编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集;With reference to any one of the embodiments of the present disclosure, the device further includes: a compiling unit configured to remove the first to-be-converted data set and the first to-be-displayed data set in the rendering of the converted data set and the first to-be-displayed data set using the browser For data other than the data set, before the page is displayed, compile the data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed;
第一显示单元,配置为显示所述编译的编译信息;所述编译信息包括以下至少一种:编译状态、编译进度、编译过程中出现的错误;The first display unit is configured to display the compilation information of the compilation; the compilation information includes at least one of the following: compilation status, compilation progress, and errors in the compilation process;
所述渲染单元,配置为使用所述浏览器渲染所述第二待显示数据集,得到所述显示页面。The rendering unit is configured to use the browser to render the second data set to be displayed to obtain the display page.
结合本公开任一实施方式,所述第一待显示数据集包括第一模块数据集;With reference to any one of the embodiments of the present disclosure, the first data set to be displayed includes a first module data set;
所述获取单元,还配置为在所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集之前,获取第二模块数据集;所述第二模块数据集的数据格式与所述第一模块数据集的数据格式相同,且所述第二模块数据集的目录结构与所述第一模块数据集的目录结构相同;The acquiring unit is further configured to compile data other than the first to-be-converted data set and the converted data set in the first to-be-displayed data set to obtain a second to-be-displayed data set, Obtain a second module data set; the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as that of the first module data set The directory structure is the same;
所述装置还包括:添加单元,配置为将所述第二模块数据集添加至所述第一待显示数据集,得到第三待显示数据集;The device further includes: an adding unit configured to add the second module data set to the first data set to be displayed to obtain a third data set to be displayed;
所述编译单元,配置为通过编译所述第三待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,建立所述第二模块数据集与所述第一模块数据集之间的依赖关系,得到所述第二待显示数据集。The compiling unit is configured to compile data in the third to-be-displayed data set excluding the first to-be-converted data set and the converted data set to establish the second module data set and the first data set The dependency relationship between a module data set is obtained to obtain the second to-be-displayed data set.
结合本公开任一实施方式,所述第一待显示数据集包括第三模块数据集和第四模块数据集;所述第三模块数据集的数据格式与所述第四模块数据集的数据格式相同,且所述第三模块数据集的目录结构与所述第四模块数据集的目录结构相同;With reference to any embodiment of the present disclosure, the first data set to be displayed includes a third module data set and a fourth module data set; the data format of the third module data set and the data format of the fourth module data set The same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set;
所述装置还包括:删除单元,配置为在所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集之前,在接收到删除所述第三模块数据集的指令的情况下,从所述第一待显示数据集中删除所述第三模块数据集,得到第四待显示数据集;The device further includes a deleting unit configured to compile data other than the first to-be-converted data set and the converted data set in the first to-be-displayed data set to obtain second to-be-displayed data Before the collection, in the case of receiving an instruction to delete the third module data set, delete the third module data set from the first to-be-displayed data set to obtain a fourth to-be-displayed data set;
所述编译单元,配置为通过编译所述第四待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,删除所述第三模块数据集与所述第四模块数据集之间的依赖关系,得到所述第二待显示数据集。The compiling unit is configured to delete the third module data set and the first data set by compiling data in the fourth data set to be displayed except for the first data set to be converted and the converted data set. The dependency relationship among the four module data sets is obtained to obtain the second data set to be displayed.
结合本公开任一实施方式,所述第一显示单元,还配置为在所述编译信息包括编译过程中出现的错误的情况下,对所述编译过程中出现的第一错误进行翻译,得到第二错误;显示所述第二错误。With reference to any one of the embodiments of the present disclosure, the first display unit is further configured to translate the first error that occurs during the compilation process when the compilation information includes errors that occur during the compilation process to obtain the first error Second error; the second error is displayed.
结合本公开任一实施方式,所述装置还包括:第二显示单元,配置为在接收到针对所述第一待显示数据集的预览指令的情况下,显示所述第一待显示数据集所指示的内容。With reference to any one of the embodiments of the present disclosure, the device further includes: a second display unit configured to display the data set of the first data set to be displayed when a preview instruction for the first data set to be displayed is received The content of the instructions.
结合本公开任一实施方式,所述第一待显示数据集包括以下至少一个:检索模块、布控模块、档案模块、技战法模块;所述检索模块用于依据检索条件对数据库中的数据进行检索;所述布控模块用于显示获取到的视频流和/或图像;所述档案模块用于存储人物信息和/或车辆信息;所述技战法模块,用于展示至少一种第一图侦技战法,以及接收用户从所述至少一种第一图侦技战法中选择的至少一种第二图侦技战法。With reference to any one of the embodiments of the present disclosure, the first data set to be displayed includes at least one of the following: a retrieval module, a deployment control module, an archive module, and a technique module; the retrieval module is used to perform data in the database according to retrieval conditions. Retrieval; the deployment control module is used to display the acquired video stream and/or image; the archive module is used to store character information and/or vehicle information; the technique module is used to display at least one first image Reconnaissance technique tactics, and receiving at least one second picture reconnaissance technique tactics selected by the user from the at least one first picture reconnaissance technique tactics.
本公开实施例通过从第一待转换数据集中截取出内容部分所包含的字符串,得到第二待转换字符串。对第二待转换字符串进行转换处理,可在得到数据类型为第一类型的 转换数据集的同时,提高转换准确度。The embodiment of the present disclosure obtains the second character string to be converted by intercepting the character string contained in the content part from the first to-be-converted data set. Performing conversion processing on the second character string to be converted can improve conversion accuracy while obtaining a conversion data set whose data type is the first type.
在一些实施例中,本公开实施例提供的装置具有的功能或包含的模块可以用于执行上文方法实施例描述的方法,其具体实现可以参照上文方法实施例的描述,为了简洁,这里不再赘述。In some embodiments, the functions or modules contained in the device provided in the embodiments of the present disclosure can be used to execute the methods described in the above method embodiments. For specific implementation, refer to the description of the above method embodiments. For brevity, here No longer.
图4为本公开实施例提供的一种电子设备的硬件结构示意图。该电子设备2包括处理器21、存储器22、输入装置23和输出装置24。该处理器21、存储器22、输入装置23和输出装置24通过连接器相耦合,该连接器包括各类接口、传输线或总线等等,本公开实施例对此不作限定。应当理解,本公开的各个实施例中,耦合是指通过特定方式的相互联系,包括直接相连或者通过其他设备间接相连,例如可以通过各类接口、传输线、总线等相连。FIG. 4 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the disclosure. The electronic device 2 includes a processor 21, a memory 22, an input device 23, and an output device 24. The processor 21, the memory 22, the input device 23, and the output device 24 are coupled through a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiment of the present disclosure. It should be understood that, in the various embodiments of the present disclosure, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, can be connected through various interfaces, transmission lines, buses, and the like.
处理器可以包括是一个或多个处理器,例如包括一个或多个中央处理器(Central Processing Unit,CPU),在处理器是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。可选的,处理器21可以是多个GPU构成的处理器组,多个处理器之间通过一个或多个总线彼此耦合。可选的,该处理器还可以为其他类型的处理器等等,本公开实施例不作限定。The processor may include one or more processors, such as one or more central processing units (CPU). In the case of a CPU, the CPU may be a single-core CPU or Multi-core CPU. Optionally, the processor 21 may be a processor group composed of multiple GPUs, and the multiple processors are coupled to each other through one or more buses. Optionally, the processor may also be other types of processors, etc., which is not limited in the embodiment of the present disclosure.
存储器22可用于存储计算机程序指令,以及用于执行本公开方案的程序代码在内的各类计算机程序代码。可选地,存储器包括但不限于是随机存储记忆体(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、或便携式只读存储器(Compact Disc Read-Only Memory,CD-ROM),该存储器用于相关指令及数据。The memory 22 may be used to store computer program instructions and various computer program codes including program codes used to execute the solutions of the present disclosure. Optionally, the memory includes, but is not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory, EPROM ), or portable read-only memory (Compact Disc Read-Only Memory, CD-ROM), which is used for related instructions and data.
输入装置23用于输入数据和/或信号,以及输出装置24用于输出数据和/或信号。输入装置23和输出装置24可以是独立的器件,也可以是一个整体的器件。The input device 23 is used to input data and/or signals, and the output device 24 is used to output data and/or signals. The input device 23 and the output device 24 may be independent devices or a whole device.
可理解,本公开实施例中,存储器22不仅可用于存储相关指令,还可用于存储相关数据,如该存储器22可用于存储通过输入装置23获取的第一待显示数据集,又或者该存储器22还可用于存储通过处理器21得到的已转换数据集等等,本公开实施例对于该存储器中具体所存储的数据不作限定。It can be understood that, in the embodiment of the present disclosure, the memory 22 can be used not only to store related instructions, but also to store related data. For example, the memory 22 can be used to store the first to-be-displayed data set acquired through the input device 23, or the memory 22 It can also be used to store the converted data set obtained by the processor 21, etc. The embodiment of the present disclosure does not limit the specific data stored in the memory.
可以理解的是,图4仅仅示出了一种数据处理装置的简化设计。在实际应用中,数据处理装置还可以分别包含必要的其他元件,包含但不限于任意数量的输入/输出装置、处理器、存储器等,而所有可以实现本公开实施例的数据处理装置都在本公开的保护范围之内。It can be understood that FIG. 4 only shows a simplified design of a data processing device. In practical applications, the data processing device may also include other necessary components, including but not limited to any number of input/output devices, processors, memories, etc., and all data processing devices that can implement the embodiments of the present disclosure are in this Within the scope of public protection.
本实施例中,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,在处理器执行所述计算机指令的情况下,电子设备解析本公开实施例上述可能实现的方式的方法。In this embodiment, the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device analyzes the methods of the above possible implementation manners of the embodiments of the present disclosure.
本公开实施例还提供了一种处理器,所述处理器用于解析本公开实施例上述可能实现的方式的方法。The embodiment of the present disclosure also provides a processor, and the processor is used to analyze the method of the foregoing possible implementation manners of the embodiment of the present disclosure.
本公开实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序包括程序指令,在所述程序指令被处理器执行的情况下, 使所述处理器解析本公开实施例上述可能实现的方式的方法。The embodiment of the present disclosure also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, the computer program includes program instructions, when the program instructions are executed by a processor, The processor analyzes the method of the foregoing possible implementation manners of the embodiments of the present disclosure.
本公开实施例还提供了一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,在所述计算机程序或指令在计算机上解析的情况下,使得所述计算机解析本公开实施例上述可能实现的方式的方法。The embodiment of the present disclosure further provides a computer program product, the computer program product includes a computer program or instruction, in the case that the computer program or instruction is parsed on a computer, the computer is caused to analyze the above-mentioned possibility of the embodiment of the present disclosure. Way of realization.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the present disclosure.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。所属领域的技术人员还可以清楚地了解到,本公开各个实施例描述各有侧重,为描述的方便和简洁,相同或类似的部分在不同实施例中可能没有赘述,因此,在某一实施例未描述或未详细描述的部分可以参见其他实施例的记载。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here. Those skilled in the art can also clearly understand that the description of each embodiment of the present disclosure has its own focus. For convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, in a certain embodiment For parts that are not described or described in detail, reference may be made to the records of other embodiments.
在本公开所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本公开实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,数字通 用光盘(Digital Versatile Disc,DVD))、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in the embodiments of the present disclosure are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be sent from a website, computer, server, or data center through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) Another website site, computer, server or data center for transmission. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a Digital Versatile Disc (DVD)), or a semiconductor medium (for example, a Solid State Disk (SSD)) )Wait.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或RAM、磁碟或者光盘等各种可存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the process in the above-mentioned embodiment method can be realized. The process can be completed by a computer program instructing relevant hardware. The program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or RAM, magnetic disks or optical disks and other media that can store program codes.

Claims (22)

  1. 一种数据处理方法,所述方法包括:A data processing method, the method includes:
    获取第一待显示数据集;所述第一待显示数据集包括第一待转换数据集;所述第一待转换数据集的开头为第一字符串,所述第一待转换数据集的结尾为第二字符串;Acquire a first data set to be displayed; the first data set to be displayed includes a first data set to be converted; the beginning of the first data set to be converted is a first character string, and the end of the first data set to be converted Is the second string;
    从所述第一待转换数据集中截取所述位于所述第一字符串与所述第二字符串之间的字符串,得到第二待转换数据集;Intercept the character strings located between the first character string and the second character string from the first data set to be converted to obtain a second data set to be converted;
    对所述第二待转换数据集进行转换处理,得到数据类型为第一类型的已转换数据集;所述第一类型为浏览器可解析的数据类型。Performing conversion processing on the second data set to be converted to obtain a converted data set whose data type is a first type; the first type is a data type that can be parsed by a browser.
  2. 根据权利要求1所述的方法,其中,所述第一待转换数据集包括转换目录下的数据和/或第三待转换数据集;所述第三待转换数据集为所述第一待显示数据集中以第三字符串结尾的数据;所述转换目录属于所述第一待显示数据集。The method according to claim 1, wherein the first data set to be converted includes data in a conversion directory and/or a third data set to be converted; the third data set to be converted is the first data set to be displayed Data in the data set ending with a third character string; the conversion catalog belongs to the first data set to be displayed.
  3. 根据权利要求1或2所述的方法,其中,所述方法还包括:The method according to claim 1 or 2, wherein the method further comprises:
    使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面。Use the browser to render the converted data set and the data in the first to-be-displayed data set excluding the first to-be-converted data set to obtain a display page.
  4. 根据权利要求3所述的方法,其中,在所述使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面之前,所述方法还包括:The method according to claim 3, wherein, in said using the browser to render the converted data set and the first to-be-displayed data set other than the first to-be-converted data set, obtain Before displaying the page, the method further includes:
    编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集;Compiling data in the first to-be-displayed data set excluding the first to-be-converted data set and the converted data set to obtain a second to-be-displayed data set;
    显示所述编译的编译信息;所述编译信息包括以下至少一种:编译状态、编译进度、编译过程中出现的错误;Display the compilation information of the compilation; the compilation information includes at least one of the following: compilation status, compilation progress, and errors that occur during the compilation;
    所述使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面,包括:The rendering the converted data set and the data in the first to-be-displayed data set excluding the first to-be-converted data set using the browser to obtain a display page includes:
    使用所述浏览器渲染所述第二待显示数据集,得到所述显示页面。Render the second data set to be displayed using the browser to obtain the display page.
  5. 根据权利要求4所述的方法,其中,所述第一待显示数据集包括第一模块数据集;The method according to claim 4, wherein the first data set to be displayed includes a first module data set;
    在所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集之前,所述方法还包括:Before the compiling data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed, the method further includes:
    获取第二模块数据集;所述第二模块数据集的数据格式与所述第一模块数据集的数据格式相同,且所述第二模块数据集的目录结构与所述第一模块数据集的目录结构相同;Obtain a second module data set; the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as that of the first module data set The directory structure is the same;
    将所述第二模块数据集添加至所述第一待显示数据集,得到第三待显示数据集;Adding the second module data set to the first data set to be displayed to obtain a third data set to be displayed;
    所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集,包括:The compiling data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed includes:
    通过编译所述第三待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,建立所述第二模块数据集与所述第一模块数据集之间的依赖关系,得到所 述第二待显示数据集。By compiling the data in the third to-be-displayed data set except the first to-be-converted data set and the converted data set, the relationship between the second module data set and the first module data set is established Dependency relationship, the second data set to be displayed is obtained.
  6. 根据权利要求4所述的方法,其中,所述第一待显示数据集包括第三模块数据集和第四模块数据集;所述第三模块数据集的数据格式与所述第四模块数据集的数据格式相同,且所述第三模块数据集的目录结构与所述第四模块数据集的目录结构相同;The method according to claim 4, wherein the first to-be-displayed data set includes a third module data set and a fourth module data set; the data format of the third module data set is the same as the fourth module data set The data format of is the same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set;
    在所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集之前,所述方法还包括:Before the compiling data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed, the method further includes:
    在接收到删除所述第三模块数据集的指令的情况下,从所述第一待显示数据集中删除所述第三模块数据集,得到第四待显示数据集;In the case of receiving an instruction to delete the third module data set, delete the third module data set from the first to-be-displayed data set to obtain a fourth to-be-displayed data set;
    所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集,包括:The compiling data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed includes:
    通过编译所述第四待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,删除所述第三模块数据集与所述第四模块数据集之间的依赖关系,得到所述第二待显示数据集。By compiling the data in the fourth to-be-displayed data set except the first to-be-converted data set and the converted data set, delete the difference between the third module data set and the fourth module data set Dependency relationship, the second data set to be displayed is obtained.
  7. 根据权利要求4至6中任意一项所述的方法,其中,所述方法还包括:The method according to any one of claims 4 to 6, wherein the method further comprises:
    在所述编译信息包括编译过程中出现的错误的情况下,对所述编译过程中出现的第一错误进行翻译,得到第二错误;In the case that the compilation information includes an error that occurred during the compilation process, translating the first error that occurred during the compilation process to obtain a second error;
    显示所述第二错误。The second error is displayed.
  8. 根据权利要求1至7中任意一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further comprises:
    在接收到针对所述第一待显示数据集的预览指令的情况下,显示所述第一待显示数据集所指示的内容。In a case where a preview instruction for the first data set to be displayed is received, the content indicated by the first data set to be displayed is displayed.
  9. 根据权利要求1至8中任意一项所述的方法,其中,所述第一待显示数据集包括以下至少一个:检索模块、布控模块、档案模块、技战法模块;所述检索模块用于依据检索条件对数据库中的数据进行检索;所述布控模块用于显示获取到的视频流和/或图像;所述档案模块用于存储人物信息和/或车辆信息;所述技战法模块,用于展示至少一种第一图侦技战法,以及接收用户从所述至少一种第一图侦技战法中选择的至少一种第二图侦技战法。The method according to any one of claims 1 to 8, wherein the first to-be-displayed data set includes at least one of the following: a retrieval module, a deployment control module, an archive module, and a technique module; the retrieval module is used for The data in the database is retrieved according to the retrieval conditions; the deployment control module is used to display the acquired video streams and/or images; the archive module is used to store character information and/or vehicle information; the technique module, It is used for displaying at least one first image reconnaissance technique tactics, and receiving at least one second graphic reconnaissance technique tactics selected by the user from the at least one first image reconnaissance technique tactics.
  10. 一种数据处理装置,所述装置包括:A data processing device, the device includes:
    获取单元,配置为获取第一待显示数据集;所述第一待显示数据集包括第一待转换数据集;所述第一待转换数据集的开头为第一字符串,所述第一待转换数据集的结尾为第二字符串;The obtaining unit is configured to obtain a first data set to be displayed; the first data set to be displayed includes a first data set to be converted; the beginning of the first data set to be converted is a first character string, and the first data set to be converted The end of the converted data set is the second string;
    截取单元,配置为从所述第一待转换数据集中截取位于所述第一字符串与所述第二字符串之间的字符串,得到第二待转换数据集;An intercepting unit configured to intercept a character string located between the first character string and the second character string from the first data set to be converted to obtain a second data set to be converted;
    转换单元,配置为对所述第二待转换数据集进行转换处理,得到数据类型为第一类型的已转换数据集;所述第一类型为浏览器可解析的数据类型。The conversion unit is configured to perform conversion processing on the second data set to be converted to obtain a converted data set whose data type is a first type; the first type is a data type that can be parsed by a browser.
  11. 根据权利要求10所述的装置,其中,所述第一待转换数据集包括转换目录下的数据和/或第三待转换数据集;所述第三待转换数据集为所述第一待显示数据集中以第三字符串结尾的数据;所述转换目录属于所述第一待显示数据集。The device according to claim 10, wherein the first data set to be converted includes data in a conversion directory and/or a third data set to be converted; the third data set to be converted is the first data set to be displayed Data in the data set ending with a third character string; the conversion catalog belongs to the first data set to be displayed.
  12. 根据权利要求10或11所述的装置,其中,所述装置还包括渲染单元,配置为使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面。The device according to claim 10 or 11, wherein the device further comprises a rendering unit configured to use the browser to render the converted data set and the first to-be-displayed data set except for the first to-be-displayed data set Convert the data outside the data set to get the display page.
  13. 根据权利要求12所述的装置,其中,所述装置还包括:The device according to claim 12, wherein the device further comprises:
    编译单元,配置为在所述使用所述浏览器渲染所述已转换数据集和所述第一待显示数据集中除所述第一待转换数据集之外的数据,得到显示页面之前,编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集;The compiling unit is configured to compile the converted data set and the data in the first to-be-displayed data set excluding the first to-be-converted data set by using the browser to obtain a display page. Data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed;
    第一显示单元,配置为显示所述编译的编译信息;所述编译信息包括以下至少一种:编译状态、编译进度、编译过程中出现的错误;The first display unit is configured to display the compilation information of the compilation; the compilation information includes at least one of the following: compilation status, compilation progress, and errors in the compilation process;
    所述渲染单元,配置为使用所述浏览器渲染所述第二待显示数据集,得到所述显示页面。The rendering unit is configured to use the browser to render the second data set to be displayed to obtain the display page.
  14. 根据权利要求13所述的装置,其中,所述第一待显示数据集包括第一模块数据集;The device according to claim 13, wherein the first data set to be displayed comprises a first module data set;
    所述获取单元,还配置为在所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集之前,获取第二模块数据集;所述第二模块数据集的数据格式与所述第一模块数据集的数据格式相同,且所述第二模块数据集的目录结构与所述第一模块数据集的目录结构相同;The acquiring unit is further configured to compile data other than the first to-be-converted data set and the converted data set in the first to-be-displayed data set to obtain a second to-be-displayed data set, Obtain a second module data set; the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as that of the first module data set The directory structure is the same;
    所述装置还包括:添加单元,配置为将所述第二模块数据集添加至所述第一待显示数据集,得到第三待显示数据集;The device further includes: an adding unit configured to add the second module data set to the first data set to be displayed to obtain a third data set to be displayed;
    所述编译单元,配置为通过编译所述第三待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,建立所述第二模块数据集与所述第一模块数据集之间的依赖关系,得到所述第二待显示数据集。The compiling unit is configured to compile data in the third to-be-displayed data set excluding the first to-be-converted data set and the converted data set to establish the second module data set and the first data set The dependency relationship between a module data set is obtained to obtain the second to-be-displayed data set.
  15. 根据权利要求13所述的装置,其中,所述第一待显示数据集包括第三模块数据集和第四模块数据集;所述第三模块数据集的数据格式与所述第四模块数据集的数据格式相同,且所述第三模块数据集的目录结构与所述第四模块数据集的目录结构相同;The device according to claim 13, wherein the first to-be-displayed data set includes a third module data set and a fourth module data set; the data format of the third module data set is the same as the fourth module data set The data format of is the same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set;
    所述装置还包括:删除单元,配置为在所述编译所述第一待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,得到第二待显示数据集之前,在接收到删除所述第三模块数据集的指令的情况下,从所述第一待显示数据集中删除所述第三模块数据集,得到第四待显示数据集;The device further includes a deleting unit configured to compile data other than the first to-be-converted data set and the converted data set in the first to-be-displayed data set to obtain second to-be-displayed data Before the collection, in the case of receiving an instruction to delete the third module data set, delete the third module data set from the first to-be-displayed data set to obtain a fourth to-be-displayed data set;
    所述编译单元,配置为通过编译所述第四待显示数据集中除所述第一待转换数据集之外的数据和所述已转换数据集,删除所述第三模块数据集与所述第四模块数据集之间的依赖关系,得到所述第二待显示数据集。The compiling unit is configured to delete the third module data set and the first data set by compiling data in the fourth data set to be displayed except for the first data set to be converted and the converted data set. The dependency relationship among the four module data sets is obtained to obtain the second data set to be displayed.
  16. 根据权利要求13至15任一项所述的装置,其中,所述第一显示单元,还配置为在所述编译信息包括编译过程中出现的错误的情况下,对所述编译过程中出现的第一错误进行翻译,得到第二错误;显示所述第二错误。The device according to any one of claims 13 to 15, wherein the first display unit is further configured to: when the compilation information includes errors that occur during the compilation process, The first error is translated, and the second error is obtained; the second error is displayed.
  17. 根据权利要求10至16任一项所述的装置,其中,所述装置还包括:第二显示 单元,配置为在接收到针对所述第一待显示数据集的预览指令的情况下,显示所述第一待显示数据集所指示的内容。The device according to any one of claims 10 to 16, wherein the device further comprises: a second display unit, configured to display the displayed data when a preview instruction for the first data set to be displayed is received Describe the content indicated by the first data set to be displayed.
  18. 根据权利要求10至17任一项所述的装置,其中,所述第一待显示数据集包括以下至少一个:检索模块、布控模块、档案模块、技战法模块;所述检索模块用于依据检索条件对数据库中的数据进行检索;所述布控模块用于显示获取到的视频流和/或图像;所述档案模块用于存储人物信息和/或车辆信息;所述技战法模块,用于展示至少一种第一图侦技战法,以及接收用户从所述至少一种第一图侦技战法中选择的至少一种第二图侦技战法。The device according to any one of claims 10 to 17, wherein the first data set to be displayed includes at least one of the following: a retrieval module, a deployment control module, an archive module, and a technique module; the retrieval module is used for The retrieval conditions are used to retrieve data in the database; the deployment control module is used to display the acquired video streams and/or images; the archive module is used to store character information and/or vehicle information; the technique module is used At least one first image detection technique is displayed, and at least one second image detection technique selected by the user from the at least one first image detection technique is received.
  19. 一种处理器,所述处理器用于解析如权利要求1至9中任意一项所述的方法。A processor for parsing the method according to any one of claims 1-9.
  20. 一种电子设备,包括:处理器和存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,在所述处理器执行所述计算机指令的情况下,所述电子设备解析如权利要求1至9中任一项所述的方法。An electronic device, comprising: a processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor executes the computer instructions, the electronic device analyzes The method according to any one of claims 1 to 9.
  21. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序包括程序指令,在所述程序指令被处理器执行的情况下,使所述处理器解析权利要求1至9中任意一项所述的方法。A computer-readable storage medium in which a computer program is stored, and the computer program includes program instructions that, when the program instructions are executed by a processor, cause the processor to parse the claims The method described in any one of 1 to 9.
  22. 一种计算机程序产品,所述计算机程序产品包括计算机程序或指令,在所述计算机程序或指令在计算机上解析的情况下,使得所述计算机解析权利要求1至9中任意一项所述的方法。A computer program product, the computer program product comprising a computer program or instruction, in the case that the computer program or instruction is parsed on a computer, the computer is caused to parse the method according to any one of claims 1 to 9 .
PCT/CN2020/110890 2020-05-19 2020-08-24 Data processing method and apparatus, processor, electronic device, and storage medium WO2021232603A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010426476.7A CN111507074B (en) 2020-05-19 2020-05-19 Data processing method and device, processor, electronic equipment and storage medium
CN202010426476.7 2020-05-19

Publications (1)

Publication Number Publication Date
WO2021232603A1 true WO2021232603A1 (en) 2021-11-25

Family

ID=71868619

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/110890 WO2021232603A1 (en) 2020-05-19 2020-08-24 Data processing method and apparatus, processor, electronic device, and storage medium

Country Status (3)

Country Link
CN (1) CN111507074B (en)
TW (1) TWI769632B (en)
WO (1) WO2021232603A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507074B (en) * 2020-05-19 2022-08-26 深圳市商汤科技有限公司 Data processing method and device, processor, electronic equipment and storage medium
CN112949172B (en) * 2021-02-24 2023-07-04 重庆中科云从科技有限公司 Data processing method, device, machine-readable medium and equipment
CN112925928A (en) * 2021-03-25 2021-06-08 深圳市商汤科技有限公司 Data processing method and device, electronic equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160350265A1 (en) * 2015-05-29 2016-12-01 Alibaba Group Holding Limited Page jumps based on text hiding
CN106354792A (en) * 2016-08-24 2017-01-25 北京小米移动软件有限公司 Webpage display method and device
CN108597028A (en) * 2018-04-11 2018-09-28 北京邮电大学 A kind of method, apparatus and equipment of continuous load Web AR objects
CN110390031A (en) * 2019-06-28 2019-10-29 深圳市商汤科技有限公司 Information processing method and device, vision facilities and storage medium
CN111125598A (en) * 2019-12-20 2020-05-08 深圳壹账通智能科技有限公司 Intelligent data query method, device, equipment and storage medium
CN111507074A (en) * 2020-05-19 2020-08-07 深圳市商汤科技有限公司 Data processing method and device, processor, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11308227B2 (en) * 2012-01-09 2022-04-19 Visa International Service Association Secure dynamic page content and layouts apparatuses, methods and systems
CN103870487B (en) * 2012-12-13 2017-07-25 腾讯科技(深圳)有限公司 Web page files processing method and mobile terminal
JP6354228B2 (en) * 2014-03-17 2018-07-11 株式会社リコー Information processing apparatus, information processing method, image forming apparatus, information processing system, and program
CN104715054B (en) * 2015-03-30 2018-04-17 江苏云学堂网络科技有限公司 Method by Silverlight Content Transformations into html web page content
CN110007906B (en) * 2018-12-27 2023-03-10 创新先进技术有限公司 Script file processing method and device and server
CN110209982A (en) * 2019-05-28 2019-09-06 北京金堤科技有限公司 Page data processing and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160350265A1 (en) * 2015-05-29 2016-12-01 Alibaba Group Holding Limited Page jumps based on text hiding
CN106354792A (en) * 2016-08-24 2017-01-25 北京小米移动软件有限公司 Webpage display method and device
CN108597028A (en) * 2018-04-11 2018-09-28 北京邮电大学 A kind of method, apparatus and equipment of continuous load Web AR objects
CN110390031A (en) * 2019-06-28 2019-10-29 深圳市商汤科技有限公司 Information processing method and device, vision facilities and storage medium
CN111125598A (en) * 2019-12-20 2020-05-08 深圳壹账通智能科技有限公司 Intelligent data query method, device, equipment and storage medium
CN111507074A (en) * 2020-05-19 2020-08-07 深圳市商汤科技有限公司 Data processing method and device, processor, electronic equipment and storage medium

Also Published As

Publication number Publication date
TW202144996A (en) 2021-12-01
TWI769632B (en) 2022-07-01
CN111507074B (en) 2022-08-26
CN111507074A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
WO2021232603A1 (en) Data processing method and apparatus, processor, electronic device, and storage medium
KR100265548B1 (en) Automatic translating method and machine
WO2020253389A1 (en) Page translation method and apparatus, medium, and electronic device
US8706704B2 (en) Method and system for creating semantic relationships using hyperlinks
CN1257473C (en) Active ALT tag in HTML documents to increase the accessibility to users with visual, audio impairment
US8031943B2 (en) Automatic natural language translation of embedded text regions in images during information transfer
US8122424B2 (en) Automatic natural language translation during information transfer
US8074167B2 (en) Cross domain presence of web user interface and logic
US20120072885A1 (en) Integrating user interface components
CN111736840A (en) Compiling method and running method of applet, storage medium and electronic equipment
US20150278190A1 (en) Web server system, dictionary system, dictionary call method, screen control display method, and demonstration application generation method
CN114153459A (en) Interface document generation method and device
CN111078228A (en) Method and device for converting webpage into small program, server and storage medium
CN111783401B (en) Character string processing method and device, computer storage medium and electronic equipment
US20040205587A1 (en) System and method for enumerating arbitrary hyperlinked structures in which links may be dynamically calculable
US9940320B2 (en) Plugin tool for collecting user generated document segmentation feedback
CN110717134A (en) Product description issuing method and device, storage medium and electronic equipment
US20190095538A1 (en) Method and system for generating content from search results rendered by a search engine
CN115640279A (en) Method and device for constructing data blood relationship
CN113419711A (en) Page guiding method and device, electronic equipment and storage medium
CN113220297A (en) Webpage style dynamic generation method and device, storage medium and electronic equipment
US11934810B2 (en) Translating an edit from a child computer language to a parent computer language while maintaining a semantic meaning of the edit
TWI828490B (en) Online text translation system for page-turning comics
CN112732254B (en) Webpage development method, webpage development device, computer equipment and storage medium
WO2024000917A1 (en) Non-intrusive, pluggable front-end build transfer acceleration method and apparatus

Legal Events

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

Ref document number: 20936921

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.03.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20936921

Country of ref document: EP

Kind code of ref document: A1