CN111507074B - Data processing method and device, processor, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN111507074B
CN111507074B CN202010426476.7A CN202010426476A CN111507074B CN 111507074 B CN111507074 B CN 111507074B CN 202010426476 A CN202010426476 A CN 202010426476A CN 111507074 B CN111507074 B CN 111507074B
Authority
CN
China
Prior art keywords
data set
data
converted
displayed
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010426476.7A
Other languages
Chinese (zh)
Other versions
CN111507074A (en
Inventor
李嘉宾
林桢
干刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Sensetime Technology Co Ltd
Original Assignee
Shenzhen Sensetime Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Sensetime Technology Co Ltd filed Critical Shenzhen Sensetime Technology Co Ltd
Priority to CN202010426476.7A priority Critical patent/CN111507074B/en
Publication of CN111507074A publication Critical patent/CN111507074A/en
Priority to PCT/CN2020/110890 priority patent/WO2021232603A1/en
Priority to TW109145471A priority patent/TWI769632B/en
Application granted granted Critical
Publication of CN111507074B publication Critical patent/CN111507074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)
  • Machine Translation (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application discloses a data processing method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a first data set to be displayed; the first set of data to be displayed comprises a first set of data 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 a second character string; intercepting the character string 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; converting the second data set to be converted to obtain a converted data set with a first data type; the first type is a data type that is parsable by the browser.

Description

Data processing method and device, processor, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, a processor, an electronic device, and a storage medium.
Background
Front-end development is a process of creating and presenting front-end pages such as world wide Web (Web) pages or mobile phone software (app) pages to users, so as to realize user page interaction of internet products. In the process of front-end development, a developer can write codes according to the display requirements of the page to obtain a project file. And analyzing and rendering the project file by using a browser to obtain a display page. Because data which cannot be analyzed by the browser exists in the project file, the data which cannot be analyzed by the browser in the project file needs to be converted before the project file is analyzed by the browser, and the conversion accuracy of the traditional method is low.
Disclosure of Invention
The application provides a data processing method and device, a processor, electronic equipment and a storage medium.
In a first aspect, a data processing method is provided, the method including:
acquiring a first data set to be displayed; the first set of data to be displayed comprises a first set of data 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 a second character string;
intercepting the character string 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;
converting the second data set to be converted to obtain a converted data set with a first data type; the first type is a data type interpretable by a browser.
In this aspect, the second character string to be converted is obtained by cutting out the character string included in the content portion from the first data set to be converted. The conversion processing is carried out on the second character string to be converted, so that the conversion accuracy can be improved while the conversion data set with the data type of the first type is obtained.
In combination with any embodiment of the present application, 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 data ending with a third character string in the first data set to be displayed; the conversion directory belongs to the first data set to be displayed.
In combination with any embodiment of the present application, the method further comprises:
and rendering the converted data set and the data in the first data set to be displayed except the first data set to be converted by using the browser to obtain a display page.
With reference to any embodiment of the present application, before the rendering, by using the browser, the data in the converted data set and the first data set to be displayed, except for the first data set to be converted, to obtain a display page, the method further includes:
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;
displaying the compiled compilation information; the compilation information includes at least one of: compiling state, compiling progress and errors occurring in the compiling process;
the rendering, by using the browser, the data in the converted data set and the first data set to be displayed, except for the first data set to be converted, to obtain a display page, including:
and rendering the second data set to be displayed by using the browser to obtain the display page.
With reference to any one of the embodiments of the present application, the first dataset to be displayed includes a first module dataset;
before compiling the data in the first data set to be displayed, except for 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:
acquiring 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 a third data set to be displayed;
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, wherein the compiling comprises:
and establishing a dependency relationship between the second module data set and the first module data set by compiling the data in the third data set to be displayed, except for the first data set to be converted, and the converted data set to obtain the second data set to be displayed.
With reference to any one of the embodiments of the present application, the first dataset to be displayed includes a third module dataset and a fourth module dataset; 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;
before 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 a second data set to be displayed, the method further comprises:
under the condition that an instruction for deleting the third module data set is received, deleting the third module data set from the first data set to be displayed to obtain a fourth data set to be displayed;
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, wherein the compiling comprises:
and compiling data in the fourth data set to be displayed except the first data set to be converted and the converted data set, and deleting the dependency relationship between the third module data set and the fourth module data set to obtain the second data set to be displayed.
In combination with any embodiment of the present application, the method further comprises:
under the condition that the compiling information comprises errors occurring in the compiling process, translating the first errors occurring in the compiling process to obtain second errors;
and displaying the second error.
In combination with any embodiment of the present application, the method further includes:
and displaying the content indicated by the first data set to be displayed when a preview instruction for the first data set to be displayed is received.
In combination with any embodiment of the present application, the first to-be-displayed data set includes at least one of: the system comprises a retrieval module, a control module, a file module and a technical and tactical method module; the retrieval module is used for retrieving the data in the database according to the retrieval conditions; the control module is used for displaying the acquired video stream and/or image; the file module is used for storing character information and/or vehicle information; the technical and tactical module is used for displaying at least one first image detective technical and tactical and receiving at least one second image detective technical selected by a user from the at least one first image detective technical.
In a second aspect, there is provided a data processing apparatus, the apparatus comprising:
an acquisition unit configured to acquire a first data set to be displayed; the first set of data to be displayed comprises a first set of data to be converted; the head of the first data set to be converted is a first character string, and the tail of the first data set to be converted is a second character string;
the intercepting unit is used for intercepting the character string 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 used for carrying out conversion processing on the second data set to be converted to obtain a converted data set with a first data type; the first type is a data type interpretable by a browser.
With reference to any embodiment of the present application, the first data set to be converted includes data under a conversion directory and/or a third data set to be converted; the third data set to be converted is data ending with a third character string in the first data set to be displayed; the conversion directory belongs to the first data set to be displayed.
In combination with any embodiment of the present application, the apparatus further includes:
and the rendering unit is used for rendering the converted data set and the data in the first data set to be displayed except the first data set to be converted by using the browser to obtain a display page.
In combination with any embodiment of the present application, the apparatus further includes:
a compiling unit, configured to compile the data in the first data set to be displayed, which is other than the first data set to be converted, and the converted data set to obtain a second data set to be displayed, before the browser is used to render the data in the converted data set and the first data set to be displayed, which is other than the first data set to be converted, and obtain a display page;
a first display unit for displaying the compiled compilation information; the compilation information includes at least one of: compiling state, compiling progress and errors occurring in the compiling process;
the rendering unit is configured to:
and rendering the second data set to be displayed by using the browser to obtain the display page.
With reference to any one of the embodiments of the present application, the first dataset to be displayed includes a first module dataset;
the obtaining unit is further configured to: acquiring a second module data set before 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 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 device further comprises: the adding unit is used for 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 unit is configured to:
and establishing a dependency relationship between the second module data set and the first module data set by compiling the data in the third data set to be displayed except the first data set to be converted and the converted data set to obtain the second data set to be displayed.
With reference to any one of the embodiments of the present application, the first dataset to be displayed includes a third module dataset and a fourth module dataset; 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;
the device further comprises:
a deleting unit, configured to delete the third module data set from the first data set to be displayed to obtain a fourth data set to be displayed when an instruction to delete the third module data set is received before compiling data in the first data set to be displayed, the data being other than the first data set to be converted, and the converted data set to obtain a second data set to be displayed;
the compiling unit is configured to:
and compiling data in the fourth data set to be displayed except the first data set to be converted and the converted data set, and deleting the dependency relationship between the third module data set and the fourth module data set to obtain the second data set to be displayed.
With reference to any embodiment of the present application, the first display unit is further configured to:
under the condition that the compiling information comprises errors occurring in the compiling process, translating the first errors occurring in the compiling process to obtain second errors;
and displaying the second error.
In combination with any embodiment of the present application, the apparatus further includes:
and the second display unit is used for displaying the content indicated by the first data set to be displayed when a preview instruction for the first data set to be displayed is received.
In combination with any embodiment of the present application, the first to-be-displayed data set includes at least one of: the system comprises a retrieval module, a control module, a file module and a technical and tactical method module; the retrieval module is used for retrieving the data in the database according to the retrieval conditions; the control module is used for displaying the acquired video stream and/or image; the file module is used for storing character information and/or vehicle information; the technical and tactical method module is used for displaying at least one first image detection and tactical method and receiving at least one second image detection and tactical method selected by a user from the at least one first image detection and tactical method.
In a third aspect, a processor is provided, which is configured to perform the method according to the first aspect and any one of the possible implementations of the first aspect.
In a fourth aspect, an electronic device is provided, comprising: a processor, a transmitting device, an input device, an output device, and a memory for storing computer program code comprising computer instructions, which when executed by the processor, the electronic apparatus resolves the method as described above in the first aspect and any one of its possible implementations.
In a fifth aspect, there is provided a computer readable storage medium having stored therein a computer program comprising program instructions which, when executed by a processor, cause the processor to perform a method as described in the first aspect and any one of its possible implementations.
A sixth aspect provides a computer program product comprising a computer program or instructions which, when interpreted on a computer, causes the computer to interpret the front-end framework of the first aspect and any possible implementation thereof.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 2 is an architecture diagram of a front end frame according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 4 is a schematic hardware structure diagram of a data processing apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Front-end development is a process of creating a front-end page such as a Web page or app and presenting the front-end page to a user so as to realize user page interaction of internet products. In the process of front-end development, a developer can write codes according to the display requirements of the page to obtain a project file. The running device (which may be one of a computer, a server, and a tablet computer) uses a browser to parse the project file, and obtains data to be displayed from the background device (which may be a server). And the operating equipment uses the browser to render the project file and the data required to be displayed to obtain a display page.
Since the browser has a requirement for the parsed data type (hereinafter, the data type that can be parsed by the browser is referred to as a target type), in order to make the project file capable of being parsed by the browser and displaying a page satisfying the expectation, before the project file is parsed by the browser, data in the project file whose data type is not the target data type needs to be converted so that the project file can be parsed by the browser.
For example, assume that the data type interpretable by the browser is javascript (js) data, and at this time, the target data type is js. The project file contains cascading style sheets (css) data, which cannot be parsed by the browser, and therefore the css data needs to be converted into js data before the project file is parsed by the browser.
For another example, assume that the data type interpretable by the browser is js data, and in this case, the target data type is js. Since the project file contains a picture that cannot be parsed by the browser, the picture needs to be converted into js data before the project file is parsed by the browser.
In the conventional method, each character in the project file is analyzed and converted to obtain data which can be analyzed by a browser, and then page display can be performed through the browser. However, in the process of converting each character in the project file, the conversion accuracy is low because a part of the character string cannot be analyzed. For example (example 1), the project file includes a character string a, where the character string a is: # "" read ""/n. And converting the character string A to obtain a character string B. In the process of converting each character in the character string a, the content indicated by the character string B is different from the content indicated by the character string a because the read in the character string a cannot be correctly resolved.
Based on this, the embodiment of the present application provides a front-end framework, and a browser is used to analyze a project file obtained by performing front-end development based on the front-end framework, so that conversion accuracy can be improved. The execution subject of the embodiment of the application is a data processing device. Optionally, the data processing device may be one of the following: computer, server. The embodiments of the present application are described below with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a data processing method according to an embodiment of the present disclosure.
101. Acquiring a first data set to be displayed, wherein the first data set to be displayed comprises 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 a second character string.
In the embodiment of the application, the first data set to be displayed is data which needs to be displayed through a page in the front-end development process. The first data set to be displayed comprises project files obtained based on front-end framework development and data required to be displayed. The first data set to be converted is a data set 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 set of data to be converted may contain at least one line of code. For example, displaying a popup on a page is implemented by a popup module in a first set of data to be displayed, wherein the popup module includes at least one line of code. The first dataset to be converted may be a popup module. For another example, a search function can be implemented by a page, which is implemented by a search module in the first data set to be displayed, wherein the search module comprises at least one line of code. The first dataset to be converted may be a search module.
In the framework of the front end provided by the present application, the format of the first dataset to be converted is determined. Since each character string in the first data set to be converted includes three parts, namely a beginning part, an ending part and a content part, when the format of the first data set to be converted is determined, the character string included in the beginning part (i.e. the first character string) and the character string included in the ending part (i.e. the second character string) are both determined, and the content indicated by each character string in the first data set to be converted is the character string included in the content part.
For example, assume that the beginning portion in the first set of data to be converted includes% &, the end portion in the first set of data to be converted includes # and the first set of data to be converted includes a character string a, where the character string a is% & eat lunch #. The beginning part of the character string A is% &, the end part of the character string A is #, the content part of the character string A is eat lunch, and the content indicated by the character string A is eat lunch. It should be understood that the specific content included in the first character string and the specific content included in the second character string may be adjusted according to the needs of the user, which is not limited in this application.
In the embodiment of the present application, the first character string and the second character string may be the same or different. For example, the first string is "abc" and the second string is also "abc". For another example, the first string is "abc" and the second string is "def".
As an alternative embodiment, in the process that a developer enters a development project file through a development device (e.g., a computer) based on a front-end framework provided by the present application, the development device displays a development rule when the front-end framework receives a front-end development instruction (e.g., a development command). The development rules are used to guide the developer to develop the project file with the development rules of the front-end framework, for example, to place the data set to be converted between the first string and the second string.
In one implementation of obtaining the first set of data to be displayed, the data processing apparatus receives the first set of data to be displayed input by the user through the input component. The above-mentioned input assembly includes: keyboard, mouse, touch screen, touch pad, audio input device, etc. For example, the data processing device is a computer (computer) with a communication link between the computer and a keyboard. A user may write code through a keyboard, which may transmit the user-written code to a computer. In the case that the data type of the user-written code is not the target data type, the computer takes the user-written code as the first set of data 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: cell-phone, computer, panel computer, server, wearable equipment.
102. And intercepting character strings 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.
Since the content indicated by the converted data set needs to be the same as the content indicated by the first to-be-converted data set while obtaining the data of the target type by performing the conversion processing on the first to-be-converted data set, and the conversion accuracy is low in the case of separately converting each character in the first to-be-converted data set (as in example 1), the embodiment of the present application adopts the character string included in the content part intercepted from the first to-be-converted data set as the second to-be-converted data set. By converting the second data set to be converted, the conversion accuracy can be improved while the data of the target type is obtained.
In an implementation manner of obtaining the second data set to be converted by intercepting from the first data set to be converted, a first character string and a second character string are determined from the first data set to be converted, and a character string between the first character string and the second character string is intercepted to obtain the second data set to be converted. For example, the first set of data to be converted includes a string a, where string a is:
# a & bclck/n. Assume that the first string is: a & b, the second character string is: and/n, the character string between the first character string and the second character string is a click (which will be referred to as a fourth character string hereinafter), and therefore, the second data set to be converted, which is cut out from the first data set to be converted, includes the fourth character string. For another example (example 2), the first set of data to be converted includes a string a, where the string a is: # a & bclicks/n # a & book/n. Assume that the first string is: a & b, the second character string is: and/n, the character strings between the first character string and the second character string are clicks (which will be referred to as a fifth character string hereinafter) and book (which will be referred to as a sixth character string hereinafter), and therefore, the second data set to be converted, which is obtained by cutting from the first data set to be converted, includes the fifth character string and the sixth character string.
In another implementation manner of obtaining the second data set to be converted by intercepting from the first data set to be converted, a character string with the first character string as a beginning and the second character string as an end is intercepted from the first data set to be converted, so as to obtain a seventh character string. And removing the beginning and the end of the seventh character string to obtain a second data set to be converted. For example (example 3), the first set of data to be converted includes a character string a and a character string B, where the character string a is: a & bclck/n, character string B: a & bbook/n. Assume that the first string is: a & b, the second character string is: and/n, namely the character string a and the character string B are both character strings with the first character string as the beginning and the second character string as the end, so that the seventh character string intercepted from the first data set to be converted comprises the character string a and the character string B. Removing the beginning and the end of the character string A to obtain a character string: click (hereinafter, referred to as a character string C) removes the beginning and end of the character string B, and the obtained character string is: book (hereinafter, this will be referred to as character string D). The second data set to be converted, which is obtained by intercepting the first data set to be converted, comprises a character string C and a character string D.
103. And converting the second data set to be converted to obtain a converted data set with a data type of a first type, wherein the first type is a data type which can be analyzed by a browser.
In this embodiment, the first type is a data type that can be resolved by the browser, that is, the data type that can be resolved by the browser is the first type of data.
In the embodiment of the application, the conversion processing includes format conversion and semantic analysis, and by performing conversion processing on the second data set to be converted, semantic analysis can be performed on the second data set to be converted so as to analyze the content indicated by the second data set to be converted, and format conversion and packaging processing are performed on the second data set to be converted so as 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, i.e. the converted data set can be parsed by the browser.
According to the embodiment of the application, the character strings contained in the content part are intercepted from the first data set to be converted, and the second character string to be converted is obtained. The conversion processing is carried out on the second character string to be converted, so that the conversion accuracy can be improved while the conversion data set with the data type of the first type is obtained.
As an alternative, in the case that the first type is js, the second data set to be converted is converted by using a converter (loader), and a converted data set can be obtained.
In order to reduce the data processing amount of the data device and increase the processing speed of the data processing device, as an optional implementation manner, during the process of writing the project file, the developer may store the first to-be-converted data set in the project file under the conversion directory of the project file (i.e., the conversion directory in the first to-be-displayed data set). In this way, the data processing apparatus can determine the conversion directory from the first data set to be displayed and use the data stored in the conversion directory as the first data set to be converted, thereby reducing the data processing amount and increasing the processing speed. For example, assume that the name of the conversion directory is transformation. The data processing apparatus may determine a directory named transformation from the first data set to be displayed, and take the data stored under the directory as the first data set to be converted.
As another alternative, in the process of writing the project file by the developer, the data processing apparatus may output a prompt to the developer: a first set of data to be converted is written in a first format. In this way, the data processing apparatus can determine the data having the first format from the first data set to be displayed and use the data having the first format as the first data set to be converted to reduce the data processing amount and improve the processing speed. For example, assume that the first format is data ending with a reference string, where the reference string is.md. The data processing means determines the data ending with.md from the first set of data to be displayed as the first set of data to be converted.
As another alternative, in the process of writing the project file, the developer may store the first to-be-converted data set in the conversion directory of the project file (i.e., the conversion directory in the first to-be-displayed data set), or write the first to-be-converted data set in the first format. In this way, the data processing apparatus can determine data having the first format as the first data set to be converted from the data stored in the conversion directory and the first data set to be displayed.
In an embodiment of the present application, the data format includes at least one of: grammar, meaning of operator. For example, the syntax in the data format may be: a project file at least comprises a self-defined class, and the self-defined class needs to use a keyword class declaration. For example, the meaning of an operator in a data format may be: the' l ═ represents division and then assignment is carried out, for example, a/3 represents a ═ a/3; the meaning of the operator in the first format may also be: and the + indicates that the value is assigned after addition, for example, a + ═ 3 indicates that a + 3. The first format may be formulated as desired, and is not limited in this application.
As an alternative embodiment, after obtaining the transformed data set, the data processing apparatus performs the following steps:
1. and rendering the converted data set and the data in the first data set to be displayed except the first data set to be converted by using the browser 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 data whose data type is a browser-parsable data type. Therefore, after the second data set to be converted is converted to obtain the converted data set, the contents indicated by the first data set to be displayed can be displayed through the display page by rendering the converted data set and the data in the first data set to be displayed except the first data set to be converted.
According to the embodiment of the application, the character strings contained in the content part are intercepted from the first data set to be converted, and the second character string to be converted is obtained. The conversion processing is carried out on the second character string to be converted, so that the conversion accuracy can be improved while the conversion data set with the data type of the first type is obtained, and the page display accuracy is further improved.
In the process of displaying the first data set to be displayed by packaging the first data set to be displayed, not only the first data set to be converted needs to be converted, but also files in the first data set to be displayed, except the first data set to be converted, need to be converted. Since the first data set to be displayed contains a large number of character strings, it is obvious that determining the first data set to be converted from the first data set to be displayed will bring a large data processing amount to the data processing apparatus, thereby reducing the speed of the data processing apparatus.
As described above, since the browser cannot directly render the data and the converted data set in the first data set to be displayed, the data and the converted data set in the first data set to be displayed are compiled to obtain the second data set to be displayed, which can be rendered by the browser. And rendering the data except the first data set to be converted and the converted data set in the first data set to be displayed by rendering the second data set to be displayed.
As an alternative embodiment, 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 apparatus, compilation information of the compilation process may be displayed, wherein the compilation information includes at least one of: compiling state, compiling progress and errors occurring in the compiling process.
The compiling state includes a compiling success or a compiling failure, and specifically, in a case where the data other than the first data set to be converted in the first data set to be displayed and the converted data set are successfully compiled by the data processing apparatus, the compiling state includes a compiling success, and in a case where the data other than the first data set to be converted in the first data set to be displayed and the converted data set are not successfully compiled by the data processing apparatus, the compiling state includes a compiling failure.
The compilation schedule includes a ratio of the compiled data amount to the data amount of the data other than the first to-be-converted data set and the converted data set in the first to-be-displayed data set, for example, the data amount of the data other than the first to-be-converted data set in the first to-be-displayed data set is 3 Megabytes (MB), and the data amount of the converted data set is 1 Megabyte (MB), the data amount of the compiled file is 1 Byte (Byte), and the compilation schedule is 25%.
The compiling information is displayed through the data processing device, and developers can timely know the data in the first data set to be displayed, except the first data set to be converted, and the compiling information of the converted data set through the data device, so that the developers can arrange corresponding work, and the development efficiency of the developers is improved.
As an alternative embodiment, the data processing apparatus may display the compiling information through a plug-in (plugin). For example, the data processing apparatus is equipped with a display, and a popup window is popped up in a display page of the display by the plugin, and the popup window contains the above-mentioned compiled information. For another example, the data processing apparatus is loaded with a display, and at least one plug-in is displayed in a display page of the display through the plugin, wherein the at least one plug-in contains the compiling information. Optionally, in a case where the compiling information is displayed by at least one plug-in, contents displayed by any two plug-ins are different. For example, the compiling information includes a compiling progress and an error occurring in the compiling process, and the at least one plug-in includes a first plug-in and a second plug-in. The compiling progress can be displayed through the first plug-in, and errors occurring in the compiling process can be displayed through the second plug-in.
As an alternative embodiment, the error occurring in the compiling process is referred to as a first error. Before displaying the first error, the data processing device may translate the first error to obtain a second error, where the second error may be any kind of text except english. For example, the second error may be Chinese. As another example, the second error may be Japanese. As another example, the second error may be Latin.
The second error is obtained by translating the first error and displayed, so that the development efficiency of developers can be improved.
Since the developer may need to update the first to-be-displayed data set according to the expected requirement in the process of writing the first to-be-displayed data set. For example, in the process of compiling the first data set to be displayed, the first data set to be displayed cannot be compiled successfully due to the occurrence of a compiling error. At this time, it is expected that the need is such that the first to-be-displayed data set can be successfully compiled, and the developer needs to update the first to-be-displayed data set so that the updated first to-be-displayed data set can be successfully compiled by the data processing apparatus. For another example, the developer wants to add a search function to the first data set to be displayed by updating the first data set to be displayed, and at this time, it is expected that a search function is newly required.
Optionally, the updating of the first data set to be displayed may be implemented by adjusting the first data set to be displayed, where adjusting the first data set to be displayed includes at least one of: modifying data in the first data set to be displayed, deleting data in the first data set to be displayed, and adding data to the first data set to be displayed.
If a developer needs to compile the updated first to-be-displayed data set and analyze the compiled first to-be-displayed data set, it is required to switch between at least two pages, even between at least two devices, to know whether the function implemented by the updated first to-be-displayed data set meets an expected requirement, which will reduce the development efficiency of the developer. For example, the page for writing or updating the first set of data to be displayed is page a, and the page displayed by the browser is page B. When a developer wants to check the effect of any function in the first data set to be displayed, the developer needs to compile the first data set to be displayed in the page a or update the first data set to be displayed, and the developer analyzes the display effect of the compiled first data set to be displayed in the page B by checking the browser 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 in the embodiment of the present application, in the process of updating the first data set to be displayed, the data processing apparatus may display the content indicated by the first data set to be displayed without performing page switching when receiving the content indicated by the first data set to be displayed.
As an alternative embodiment, the data processing apparatus displays the content indicated by the first set of data to be displayed, in case of receiving the live preview instruction. For example, a developer wants to view document a in the first dataset to be displayed, assuming the live preview instruction is check. The data processing apparatus reads the document a and displays the document a through the data processing apparatus, upon receiving a real-time preview instruction (i.e., check) input by a developer. Alternatively, displaying document a and writing the first document may be performed through different windows. For example, the display page of the data processing apparatus includes a window a for displaying the first document, receiving an update instruction for the first document (i.e., the developer may update the first document by inputting the update instruction to the window a), and a window b for displaying the document a.
For another example, assume that the live preview instruction is a save instruction. The method comprises the steps that after a first data set to be displayed is updated through a data processing device, a developer inputs an instruction for storing the updated first data set to be displayed to the data processing device, the data processing device compiles the updated first data set to be displayed under the condition that the data processing device receives the instruction for storing the updated first data set to be displayed to obtain the compiled first data set to be displayed, and the content indicated by the updated first data set to be displayed is displayed by analyzing the compiled first data set to be displayed.
By inputting the real-time 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 document in the first data set to be displayed and viewing the function realized by the first data set to be displayed), without switching pages or replacing equipment, thereby improving the development efficiency of the developer.
Because the workload of developing the first data set to be displayed is large, at least two developers can complete the development of the first data set to be displayed in a mode of division of labor and cooperation in order to improve the development efficiency. Specifically, the functions to be implemented by the first data set to be displayed may be distributed to at least two developers, so that the functions for development by each developer are different. 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, where the implementation of function a is responsible for developer a, the implementation of function B is responsible for developer B, and the implementation of function C is responsible for developer C.
And under the condition that each developer completes the development of the responsible function respectively by writing the codes, storing the codes written by each developer in the same directory to obtain a first data set to be displayed. Taking example 3 as an example (example 4), assume that a code D written by a developer a can implement function a, a code E written by a developer B can implement function B, and a code F written by a developer C can implement function C. And storing the code D, the code E and the code F in a directory D to obtain a first data set to be displayed.
For convenience of description, the code implementing a function is referred to as a module data set hereinafter, and for example, the code D, the code E, and the code F in fig. 4 are all module data sets. Because there may be a dependency relationship between different module data sets, and each module data set is independent, before the first data set to be displayed is parsed, the dependency relationship between the module data sets needs to be established.
For example (example 5), assume that module data set a is used to implement function a and module data set B is used to implement function B, and during the process of implementing function a by module data set a, data C obtained by module data set B is needed. That is, there is a dependency relationship between module data set a and module data set B. By establishing a dependency relationship between the module data set a and the module data set B, the module data set B can transmit the data C to the module data set a in the process of analyzing the first data set to be displayed, so that the module data set a can realize the function a.
For another example (example 6), assume that module data set a is used to implement function a and module data set B is used to implement function B, and in the process of implementing function a by module data set a, module data set B is used to implement function B. That is, there is a dependency relationship between module data set a and module data set B. By establishing a dependency relationship between the module data set a and the module data set B, the module data set a can call the module data set B during the process of analyzing the first data set to be displayed, thereby implementing the function a.
In the conventional method, developers need to consider the dependency relationship between the module data sets in the process of writing the module data sets, and write corresponding codes in the module data sets according to the dependency relationship to establish the dependency relationship between the module data sets. Taking example 5 as an example, assume that module data set B is developed by Zhang III. Zhang III needs to write corresponding codes in the process of writing the module data set B so as to transmit the data C obtained by analyzing the module data set B to the module data set A. Taking example 6 again as an example, assume that module data set a is developed by lie four. Li IV, in the process of writing the module data set A, corresponding codes need to be written in, so that the module data set A calls the module data set B in the process of analyzing the module data set A.
The dependency relationship between the module data sets is established by the traditional method, and extra labor needs to be paid by developers, so that the development efficiency of the developers is reduced.
In a possible implementation manner, the first data set to be displayed includes a first module data set, and the module data set added by the developer to the catalog where the first data set to be displayed is located is referred to as a second module data set, where a data format of the second module data set is the same as a data format of the first module data set, and a catalog structure of the second module data set is the same as a catalog structure of the first module data set. And the data processing device adds the second module data set to the first data set to be displayed under the condition of the instruction of acquiring the second module data set and adding the second module data set to the first data set to be displayed, so as to obtain a third data set to be displayed. At this time, the data processing apparatus may obtain the second data set to be displayed by compiling data other than the first data set to be converted and the converted data set in the third data set to be displayed.
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 data in the first module data set can be analyzed according to the data format of the first module data set. Because 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 search the data in the second module data set in a mode of searching the data in the first module data set in the compiling process, and analyze the data in the second module data set in a mode of analyzing the data in the first module data set, so that the dependency relationship between the first module data set and the second module data set can be established.
Optionally, in a case where an instruction to compile data in the first data set to be displayed, except the first data set to be converted, and the converted data set is received, the dependency relationship between the second module data set and the first module data set is established by compiling data in the third data set to be displayed, except the first data set to be converted, and the converted data set.
In this implementation manner, the data processing apparatus may establish a dependency relationship between the first module data set and the second module data set by compiling the third data set to be displayed, which is beneficial to improving the development efficiency of developers.
Based on the implementation mode, a developer only needs to make the directory structure of the second module data set the same as the directory structure of the first module data set, make the data format of the second module data set the same as the data format of the first module data set, and add the second module data set to the directory of the first data set to be displayed in the process of compiling the second module data set. That is, the data processing apparatus may compile the data in the third data set to be displayed, except for the first data set to be converted, and the converted data set, and establish the dependency relationship between the compiled module data set and the module data set in the first data set to be displayed. The dependency relationship between the second module data set and the first module data set does not need to be compiled in the process of compiling the second module data set, and therefore the development efficiency of developers is improved.
In addition to adding a module data set to the first data set to be displayed, the module data set in the first data set to be displayed may also need to be deleted during the development of the first data set to be displayed by the developer. For example, assuming that the module data set a in the first data set to be displayed is used to implement function a, it is now not necessary to implement function a, and thus module data set a in the first data set to be displayed needs to be deleted.
In one possible implementation, the first set of data to be displayed includes a third set of module data and a fourth set of module data. 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.
In a case where the data processing apparatus receives the instruction to delete the third module data set, the data processing apparatus may delete the third module data set from the first data set to be displayed to obtain a fourth data set to be displayed before the data processing apparatus performs an operation of compiling data of the first data set to be displayed, the data being other than the first data set to be converted, and the converted data set.
In the process of compiling the fourth data set to be displayed, the data processing device can search the data in the fourth module data set according to the directory structure of the fourth module data set, analyze the data in the fourth module data set according to the data format of the fourth module data set, and further determine the storage path of the dependency relationship under the fourth module data set. And deleting the dependency relationship between the fourth module data set and the third module data set according to the storage path.
Optionally, when an instruction for compiling data in the first data set to be displayed, except for the first data set to be converted, and the converted data set is received, the data in the fourth data set to be displayed, except for the first data set to be converted, and the converted data set are compiled, and the dependency relationship between the third module data set and the fourth module data set is deleted, so as to obtain a second data set to be displayed.
In this implementation manner, the data processing apparatus may delete the dependency relationship between the third module data set and the fourth module data set by compiling the fourth to-be-displayed data set, which is beneficial to improving the development efficiency of developers.
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, the module data set in the first data set to be displayed may need to be modified during the development of the first data set to be displayed by the developer. For example, assuming that the module data set a in the first data set to be displayed is used to implement the function a, the function a needs to be optimized, and the effect of optimizing the 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 may also result in a change in the dependency relationship between the module data set and the module data set. For example (example 7), the first set of data to be displayed includes a module data set a and a module data set B, wherein 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 a module data set C under the condition that a modification instruction aiming at the module data set A is received, wherein a dependency relationship exists 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 a 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 scheme provided by the embodiment of the application, 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 by compiling the modified first data set to be displayed, and the dependency relationship between the modified module data set and the module data set in the first data set to be displayed can be established.
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 dataset to be displayed, the dependency relationship between the module dataset a and the module dataset B can be deleted, and the dependency relationship between the module dataset B and the module dataset C can be established.
Based on the technical scheme provided by the embodiment of the application, the embodiment of the application also provides a possible application scenario.
With the development of the mobile internet, the front-end development is rapidly developed, and the front-end development is greatly enriched in content, form and function. Based on the development of the front-end technology, the front-end business requirements can be well met through the front-end development, but the workload required by the front-end development is large, so that how to effectively improve the front-end development efficiency becomes very significant.
The front-end framework provided by the embodiment of the application is used for front-end development, so that the development efficiency can be improved.
Alternatively, the architecture of the front end frame can be seen in fig. 2. As shown in fig. 2, the front-end framework includes a business layer, a component layer, an intermediate service layer, and a data exchange layer.
The device running the resulting project file developed based on the front-end framework (which will be referred to as a running device hereinafter. Optionally, the background device includes a server. The intermediate service layer is used for storing the data acquired by the data exchange layer from the background equipment and providing the data required by the completion of the service requirement for the service layer. The business layer comprises the module data set. The operating equipment uses the browser to render the module data set in the business layer and the data (namely the first data set to be displayed) of the intermediate service layer, so that front-end display can be realized, and a display page can be obtained.
Optionally, the service layer includes a loader, and the running device performs conversion processing on the first data set to be displayed by using the loader in the service layer in the process of compiling the first data set to be displayed, so as to obtain a converted data set with a data type of the first type.
The component layer includes various plug-ins required for page display. Optionally, during the process of compiling the first data set to be displayed by the running device, the service layer may display the compilation information by using a plug-in (e.g., plugin) in the component layer. For example, an error occurring in the compilation process is displayed; displaying a compiling state; and displaying the compiling progress. For example, the compiled information of the first dataset to be displayed may be displayed in the form of a popup, and the component layer includes files that implement the popup function.
Optionally, in the process of rendering, by using the browser, the data in the converted data set and the first data set to be displayed, except for the first data set to be converted, the running device may further use a plug-in the component layer to display, in the display page, the content corresponding to the module data set in the service layer.
For example, the business layer at least one of: the system comprises a retrieval module, a control module, a file module and a technical and tactical method module. The retrieval module is used for retrieving the data in the database according to the retrieval conditions. The content in the display page corresponding to the retrieval module may be a retrieval bar. And the control module is used for displaying the acquired video stream and/or image. The archive module is used for storing the person information and/or the vehicle information. The content corresponding to the control module in the display page can be the character information and/or the vehicle information display area.
And the technical and tactical module is used for displaying at least one first image detective technical and tactical and receiving at least one second image detective technical selected by a user from the at least one first image detective technical. The content corresponding to the tactical module in the display page can be at least one first image tactical reconnaissance. The first image forensic tactic is an image forensic tactic selectable by a user. The method comprises the steps that when the running equipment receives at least one second image detection technique selected by a user from at least one first image detection technique, based on the at least one second image detection technique, the image detection result is obtained by using a video stream and/or an image acquired by a control module, and character information and/or vehicle information in a storage archive module, and the image detection result is displayed in the content corresponding to the technique and technique module.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
The method of the embodiments of the present application is explained in detail above, and the apparatus of the embodiments of the present application is provided below.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure. The data processing apparatus 1 includes: the system comprises an acquisition unit 11, a cutting unit 12, a conversion unit 13, a rendering unit 14, a compiling unit 15, a first display unit 16, an adding unit 17, a deleting unit 18 and a second display unit 19. Wherein:
an acquisition unit configured to acquire a first data set to be displayed; the first data set to be displayed comprises 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 a second character string;
the intercepting unit is used for intercepting the character string 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 used for carrying out conversion processing on the second data set to be converted to obtain a converted data set with a first data type; the first type is a data type that is parsable by a browser.
With reference to any embodiment of the present application, the first data set to be converted includes data under a conversion directory and/or a third data set to be converted; the third data set to be converted is data ending with a third character string in the first data set to be displayed; the conversion directory belongs to the first data set to be displayed.
In combination with any embodiment of the present application, the apparatus further includes:
and the rendering unit is used for rendering the converted data set and the data in the first data set to be displayed except the first data set to be converted by using the browser to obtain a display page.
In combination with any embodiment of the present application, the apparatus further includes:
a compiling unit, configured to compile the data in the first data set to be displayed, which is other than the first data set to be converted, and the converted data set to obtain a second data set to be displayed, before the browser is used to render the data in the converted data set and the first data set to be displayed, which is other than the first data set to be converted, and a page display is obtained;
a first display unit for displaying the compiled compilation information; the compilation information includes at least one of: compiling state, compiling progress and errors occurring in the compiling process;
the rendering unit is configured to:
and rendering the second data set to be displayed by using the browser to obtain the display page.
With reference to any one of the embodiments of the present application, the first dataset to be displayed includes a first module dataset;
the obtaining unit is further configured to: acquiring a second module data set before 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 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 device further comprises: the adding unit is used for 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 unit is configured to:
and establishing a dependency relationship between the second module data set and the first module data set by compiling the data in the third data set to be displayed, except for the first data set to be converted, and the converted data set to obtain the second data set to be displayed.
With reference to any one of the embodiments of the present application, the first dataset to be displayed includes a third module dataset and a fourth module dataset; 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;
the device further comprises:
a deleting unit, configured to delete the third module data set from the first data set to be displayed to obtain a fourth data set to be displayed when an instruction to delete the third module data set is received before compiling data in the first data set to be displayed, the data being other than the first data set to be converted, and the converted data set to obtain a second data set to be displayed;
the compiling unit is configured to:
and compiling data in the fourth data set to be displayed except the first data set to be converted and the converted data set, and deleting the dependency relationship between the third module data set and the fourth module data set to obtain the second data set to be displayed.
With reference to any embodiment of the present application, the first display unit is further configured to:
under the condition that the compiling information comprises errors occurring in the compiling process, translating the first errors occurring in the compiling process to obtain second errors;
and displaying the second error.
In combination with any embodiment of the present application, the apparatus further includes:
and the second display unit is used for displaying the content indicated by the first data set to be displayed when a preview instruction for the first data set to be displayed is received.
In combination with any embodiment of the present application, the first to-be-displayed data set includes at least one of: the system comprises a retrieval module, a control module, a file module and a technical and tactical method module; the retrieval module is used for retrieving the data in the database according to the retrieval conditions; the control module is used for displaying the acquired video stream and/or image; the archive module is used for storing character information and/or vehicle information; the technical and tactical module is used for displaying at least one first image detective technical and tactical and receiving at least one second image detective technical selected by a user from the at least one first image detective technical.
According to the embodiment of the application, the character strings contained in the content part are intercepted from the first data set to be converted, and the second character string to be converted is obtained. The second character string to be converted is converted, so that the conversion accuracy can be improved while the conversion data set with the data type of the first type is obtained.
In some embodiments, functions of or modules included in the apparatus provided in the embodiments of the present application may be used to execute the method described in the above method embodiments, and specific implementation thereof may refer to the description of the above method embodiments, and for brevity, will not be described again here.
Fig. 4 is a schematic hardware structure diagram of a data processing apparatus according to an embodiment of the present disclosure. The data processing device 2 comprises a processor 21, a memory 22, an input device 23, an output device 24. The processor 21, the memory 22, the input device 23 and the output device 24 are coupled by a connector, which includes various interfaces, transmission lines or buses, etc., and the embodiment of the present application is not limited thereto. It should be understood that in various embodiments of the present application, coupling refers to interconnection through a specific manner, including direct connection or indirect connection through other devices, such as various interfaces, transmission lines, buses, and the like.
The processor may include one or more processors, for example, one or more Central Processing Units (CPUs), and in the case of one CPU, the CPU may be a single-core CPU or a multi-core CPU. Alternatively, the processor 21 may be a processor group composed of a plurality of GPUs, and the plurality of processors are coupled to each other through one or more buses. Alternatively, the processor may be other types of processors, and the like, and the embodiments of the present application are not limited.
Memory 22 may be used to store computer program instructions, as well as various types of computer program code for executing the program code of aspects of the present application. Alternatively, the memory includes, but is not limited to, Random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or compact disc read-only memory (CD-ROM), which is used for associated instructions and data.
The input means 23 are for inputting data and/or signals and the output means 24 are for outputting data and/or signals. The input device 23 and the output device 24 may be separate devices or may be an integral device.
It is understood that, in the embodiment of the present application, the memory 22 may be used to store not only the related instructions, but also the related data, for example, the memory 22 may be used to store the first data set to be displayed acquired through the input device 23, or the memory 22 may also be used to store the converted data set obtained through the processor 21, and the like, and the embodiment of the present application is not limited to the data specifically stored in the memory.
It will be appreciated that fig. 4 only shows a simplified design of a data processing device. In practical applications, the data processing apparatus may further include other necessary components, including but not limited to any number of input/output devices, processors, memories, etc., and all data processing apparatuses that can implement the embodiments of the present application are within the protection scope of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It is also clear to those skilled in the art that the descriptions of the embodiments in this application are focused on, and for convenience and simplicity of description, the same or similar parts may not be described in detail in different embodiments, so that the descriptions of other embodiments may be referred to for parts that are not described or not described in detail in a certain embodiment.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., Digital Versatile Disk (DVD)), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media that can store program codes, such as a read-only memory (ROM) or a Random Access Memory (RAM), a magnetic disk, or an optical disk.

Claims (12)

1. A method of data processing, the method comprising:
acquiring a first data set to be displayed; the first set of data to be displayed comprises a first set of data to be converted; the head of the first data set to be converted is a first character string, and the tail of the first data set to be converted is a second character string;
intercepting character strings 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;
converting the second data set to be converted to obtain a converted data set with a first data type; the first type is a data type interpretable by a browser.
2. The method according to claim 1, wherein the first set of data to be converted comprises data under a conversion catalog and/or a third set of data to be converted; the third data set to be converted is data ending with a third character string in the first data set to be displayed; the conversion directory belongs to the first data set to be displayed.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and rendering the converted data set and the data in the first data set to be displayed except the first data set to be converted by using the browser to obtain a display page.
4. The method of claim 3, wherein before said rendering, using the browser, data in the converted data set and the first data set to be displayed other than the first data set to be converted results in a display page, the method further comprises:
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;
displaying the compiled compilation information; the compilation information includes at least one of: compiling state, compiling progress and errors occurring in the compiling process;
the rendering, by using the browser, the data in the converted data set and the first data set to be displayed, except for the first data set to be converted, to obtain a display page, including:
and rendering the second data set to be displayed by using the browser to obtain the display page.
5. The method of claim 4, wherein the first dataset to be displayed comprises a first module dataset;
before compiling the data in the first data set to be displayed, except for 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:
acquiring 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 a third data set to be displayed;
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, wherein the compiling comprises:
and establishing a dependency relationship between the second module data set and the first module data set by compiling the data in the third data set to be displayed, except for the first data set to be converted, and the converted data set to obtain the second data set to be displayed.
6. The method of claim 4, wherein the first dataset to be displayed comprises a third modular dataset and a fourth modular dataset; 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;
before compiling the data in the first data set to be displayed, except for 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:
under the condition that an instruction for deleting the third module data set is received, deleting the third module data set from the first data set to be displayed to obtain a fourth data set to be displayed;
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, wherein the compiling comprises the following steps:
and compiling data in the fourth data set to be displayed except the first data set to be converted and the converted data set, and deleting the dependency relationship between the third module data set and the fourth module data set to obtain the second data set to be displayed.
7. The method according to any one of claims 4 to 6, further comprising:
under the condition that the compiling information comprises errors occurring in the compiling process, translating the first errors occurring in the compiling process to obtain second errors;
and displaying the second error.
8. The method according to claim 1 or 2, characterized in that the method further comprises:
and displaying the content indicated by the first data set to be displayed when a preview instruction for the first data set to be displayed is received.
9. Method according to claim 1 or 2, wherein the first dataset to be displayed comprises at least one of: the system comprises a retrieval module, a control module, a file module and a technical and tactical method module; the retrieval module is used for retrieving the data in the database according to the retrieval conditions; the control module is used for displaying the acquired video stream and/or image; the file module is used for storing character information and/or vehicle information; the technical and tactical method module is used for displaying at least one first image detection and tactical method and receiving at least one second image detection and tactical method selected by a user from the at least one first image detection and tactical method.
10. A data processing apparatus, characterized in that the apparatus comprises:
an acquisition unit configured to acquire a first data set to be displayed; the first data set to be displayed comprises 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 a second character string;
an intercepting unit, configured to intercept a character string located between the first character string and the second character string from the first to-be-converted data set to obtain a second to-be-converted data set;
the conversion unit is used for carrying out conversion processing on the second data set to be converted to obtain a converted data set with a first data type; the first type is a data type interpretable by a browser.
11. An electronic device, comprising: a processor and a memory for storing computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1 to 9.
12. A computer-readable storage medium, in which a computer program is stored, which computer program comprises program instructions which, if executed by a processor, cause the processor to carry out the method of any one of claims 1 to 9.
CN202010426476.7A 2020-05-19 2020-05-19 Data processing method and device, processor, electronic equipment and storage medium Active CN111507074B (en)

Priority Applications (3)

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
PCT/CN2020/110890 WO2021232603A1 (en) 2020-05-19 2020-08-24 Data processing method and apparatus, processor, electronic device, and storage medium
TW109145471A TWI769632B (en) 2020-05-19 2020-12-22 Data segmentation method processor electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN111507074A CN111507074A (en) 2020-08-07
CN111507074B true CN111507074B (en) 2022-08-26

Family

ID=71868619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010426476.7A Active CN111507074B (en) 2020-05-19 2020-05-19 Data processing method and device, processor, electronic equipment 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104715054A (en) * 2015-03-30 2015-06-17 江苏汇知网络科技有限公司 Method for converting Silverlight content into HTML webpage content
CN110007906A (en) * 2018-12-27 2019-07-12 阿里巴巴集团控股有限公司 Processing method, device and the server of script file
CN110209982A (en) * 2019-05-28 2019-09-06 北京金堤科技有限公司 Page data processing and device

Family Cites Families (9)

* 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
CN106294459A (en) * 2015-05-29 2017-01-04 阿里巴巴集团控股有限公司 Method for page jump based on text hidden and relevant apparatus
CN106354792B (en) * 2016-08-24 2020-03-17 北京小米移动软件有限公司 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
CN111507074B (en) * 2020-05-19 2022-08-26 深圳市商汤科技有限公司 Data processing method and device, processor, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104715054A (en) * 2015-03-30 2015-06-17 江苏汇知网络科技有限公司 Method for converting Silverlight content into HTML webpage content
CN110007906A (en) * 2018-12-27 2019-07-12 阿里巴巴集团控股有限公司 Processing method, device and the server of script file
CN110209982A (en) * 2019-05-28 2019-09-06 北京金堤科技有限公司 Page data processing and device

Also Published As

Publication number Publication date
TWI769632B (en) 2022-07-01
CN111507074A (en) 2020-08-07
WO2021232603A1 (en) 2021-11-25
TW202144996A (en) 2021-12-01

Similar Documents

Publication Publication Date Title
CN111507074B (en) Data processing method and device, processor, electronic equipment and storage medium
CN1257473C (en) Active ALT tag in HTML documents to increase the accessibility to users with visual, audio impairment
KR100265548B1 (en) Automatic translating method and machine
US9009664B2 (en) Structural search of source code
US20210216701A1 (en) Method, apparatus, device and storage medium for determining page theme
US10191832B2 (en) Multi-language playback framework
CN111736840A (en) Compiling method and running method of applet, storage medium and electronic equipment
US20120072885A1 (en) Integrating user interface components
US9182947B2 (en) Program source code navigation
US20210209526A1 (en) Landing page processing method, device and medium
CN110580189A (en) method and device for generating front-end page, computer equipment and storage medium
CN106202066A (en) The interpretation method of website and device
US20150278190A1 (en) Web server system, dictionary system, dictionary call method, screen control display method, and demonstration application generation method
JP2023541186A (en) Visualization page rendering method, device, equipment and storage medium
US20180089314A1 (en) Messaging digest
CN113051514A (en) Element positioning method and device, electronic equipment and storage medium
CN111078228A (en) Method and device for converting webpage into small program, server and storage medium
US20030054806A1 (en) System and method for defining, creating and deploying wireless applications
CN113419711A (en) Page guiding method and device, electronic equipment 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
CN113761871A (en) Rich text rendering method and device, electronic equipment and storage medium
CN109408057B (en) Method, device, medium and computing equipment for automatically generating codes
CN110717134A (en) Product description issuing method and device, storage medium and electronic equipment
CN115640279A (en) Method and device for constructing data blood relationship

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40025752

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant