TW202144996A - Data segmentation method processor electronic equipment and computer readable storage medium - Google Patents

Data segmentation method processor electronic equipment and computer readable storage medium Download PDF

Info

Publication number
TW202144996A
TW202144996A TW109145471A TW109145471A TW202144996A TW 202144996 A TW202144996 A TW 202144996A TW 109145471 A TW109145471 A TW 109145471A TW 109145471 A TW109145471 A TW 109145471A TW 202144996 A TW202144996 A TW 202144996A
Authority
TW
Taiwan
Prior art keywords
data set
displayed
converted
data
module
Prior art date
Application number
TW109145471A
Other languages
Chinese (zh)
Other versions
TWI769632B (en
Inventor
李嘉賓
林楨
干剛
Original Assignee
中國商深圳市商湯科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中國商深圳市商湯科技有限公司 filed Critical 中國商深圳市商湯科技有限公司
Publication of TW202144996A publication Critical patent/TW202144996A/en
Application granted granted Critical
Publication of TWI769632B publication Critical patent/TWI769632B/en

Links

Images

Classifications

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

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)
  • Document Processing Apparatus (AREA)
  • Machine Translation (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiments of the present disclosure disclose a data processing method, electronic equipment, and storage medium. The method includes: acquiring a first data set to be displayed; the first data set to be displayed includes a first data set to be converted; the beginning of the first data set to be converted is a first character string, and the first data set to be converted. The end of the data set is a second character string; the character string located between the first character string and the second character string is intercepted from the first data set to be converted to obtain a second data set to be converted; Performing conversion processing on the second data set to be converted to obtain a converted data set whose data type is a first type; the first type is a data type that can be parsed by the browser.

Description

資料處理方法及處理器、電子設備及電腦可讀儲存媒體Data processing method and processor, electronic device and computer-readable storage medium

本公開基於申請號為202010426476.7、申請日為2020年05月19日的中國專利申請提出,並要求該中國專利申請的優先權,該中國專利申請的全部內容在此以引入方式併入本公開。本揭露涉及電腦技術領域,尤其涉及一種資料處理方法及處理器、電子設備及電腦可讀儲存媒體。The present disclosure is based on a Chinese patent application with application number 202010426476.7 and an application date of May 19, 2020, and claims the priority of the Chinese patent application, the entire contents of which are hereby incorporated into the present disclosure by way of reference. The present disclosure relates to the field of computer technology, and in particular, to a data processing method and processor, an electronic device, and a computer-readable storage medium.

前端開發是創建全球資訊網(World Wide Web,Web)頁面或手機軟體(Application,App)頁面等前端頁面呈現給使用者的過程,以實現網際網路產品的使用者頁面互動。在前端開發的過程中,開發人員可依據頁面的展示需求編寫程式,得到專案檔案。使用瀏覽器對專案檔案進行解析並渲染,得到顯示頁面。由於專案檔案中存在不能被瀏覽器解析的資料,在使用瀏覽器解析專案檔案之前,需要對專案檔案中不能被瀏覽器解析的資料進行轉換。Front-end development is the process of creating front-end pages such as World Wide Web (Web) pages or mobile software (Application, App) pages and presenting them to users, so as to realize the interaction of user pages of Internet products. In the process of front-end development, developers can write programs according to the display requirements of the page to obtain project files. Use the browser to parse and render the project file to get the display page. Since there are data in the project file that cannot be parsed by the browser, before using the browser to parse the project file, it is necessary to convert the data in the project file that cannot be parsed by the browser.

本揭露實施例提供一種資料處理方法及處理器、電子設備及儲存媒體。Embodiments of the present disclosure provide a data processing method and processor, an electronic device, and a storage medium.

第一方面,本揭露實施例提供了一種資料處理方法,所述方法包括:獲取第一待顯示資料集;所述第一待顯示資料集包括第一待轉換資料集;所述第一待轉換資料集的開頭為第一字串,所述第一待轉換資料集的結尾為第二字串;從所述第一待轉換資料集中截取所述位於所述第一字串與所述第二字串之間的字串,得到第二待轉換資料集;對所述第二待轉換資料集進行轉換處理,得到資料類型為第一類型的已轉換資料集;所述第一類型為瀏覽器可解析的資料類型。In a first aspect, an embodiment of the present disclosure provides a data processing method, the method includes: acquiring a first data set to be displayed; the first data set to be displayed includes a first data set to be converted; the first data set to be converted The beginning of the data set is a first character string, and the end of the first data set to be converted is a second character string; the first character string and the second character string are intercepted from the first data set to be converted character strings between the character strings to obtain a second data set to be converted; perform conversion processing on the second data set to be converted to obtain a converted data set whose data type is the first type; the first type is a browser Resolvable data types.

在本實施例中,透過從第一待轉換資料集中截取出內容部分所包含的字串,得到第二待轉換字串。對第二待轉換字串進行轉換處理,可在得到資料類型為第一類型的轉換資料集的同時,提高轉換準確度。In this embodiment, the second to-be-converted character string is obtained by cutting out the character string included in the content part from the first to-be-converted data set. Converting the second character string to be converted can improve the conversion accuracy while obtaining the conversion data set whose data type is the first type.

結合本揭露任一實施方式,所述第一待轉換資料集包括轉換目錄下的資料和/或第三待轉換資料集;所述第三待轉換資料集為所述第一待顯示資料集中以第三字串結尾的資料;所述轉換目錄屬於所述第一待顯示資料集。With reference to any embodiment of the present disclosure, 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 the first data set to be displayed with The data at the end of the third string; the conversion directory belongs to the first to-be-displayed data set.

結合本揭露任一實施方式,所述方法還包括:使用所述瀏覽器渲染所述已轉換資料集和所述第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到顯示頁面。With reference to any embodiment of the present disclosure, the method further includes: using the browser to render the converted data set and the data in the first to-be-displayed data set except the first to-be-converted data set, to obtain Display the page.

結合本揭露任一實施方式,在所述使用所述瀏覽器渲染所述已轉換資料集和所述第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到顯示頁面之前,所述方法還包括:編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集;顯示所述編譯的編譯資訊;所述編譯資訊包括以下至少一種:編譯狀態、編譯進度、編譯過程中出現的錯誤;所述使用所述瀏覽器渲染所述已轉換資料集和所述第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到顯示頁面,包括:使用所述瀏覽器渲染所述第二待顯示資料集,得到所述顯示頁面。With reference to any embodiment of the present disclosure, before rendering the converted data set and the data in the first to-be-displayed data set except the first to-be-converted data set by using the browser to obtain a display page , the method further includes: compiling the data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed; displaying the compiled data set Compilation information; the compilation information includes at least one of the following: compilation status, compilation progress, and errors in the compilation process; the use of the browser to render the converted data set and the first to-be-displayed data set remove all Obtaining a display page by using data other than the first data set to be converted, and obtaining the display page, includes: using the browser to render the second data set to be displayed, and obtaining the display page.

結合本揭露任一實施方式,所述第一待顯示資料集包括第一模組資料集;在所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集之前,所述方法還包括:獲取第二模組資料集;所述第二模組資料集的資料格式與所述第一模組資料集的資料格式相同,且所述第二模組資料集的目錄結構與所述第一模組資料集的目錄結構相同;將所述第二模組資料集添加至所述第一待顯示資料集,得到第三待顯示資料集;所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集,包括:透過編譯所述第三待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,建立所述第二模組資料集與所述第一模組資料集之間的依賴關係,得到所述第二待顯示資料集。With reference to any embodiment of the present disclosure, the first data set to be displayed includes a first module data set; the data other than the first data set to be converted in the compilation of the first data set to be displayed and Before obtaining the second data set to be displayed from the converted data set, the method further includes: acquiring a second module data set; the data format of the second module data set is the same as that of the first module data set The data format of the second module data set is the same, and the directory structure of the second module data set is the same as that of the first module data set; add the second module data set to the first to-be-displayed data set , to obtain a third data set to be displayed; by 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, including : Create the second module data set and the first module data set by compiling data in the third to-be-displayed data set other than the first to-be-converted data set and the converted data set The dependencies between them are obtained to obtain the second data set to be displayed.

結合本揭露任一實施方式,所述第一待顯示資料集包括第三模組資料集和第四模組資料集;所述第三模組資料集的資料格式與所述第四模組資料集的資料格式相同,且所述第三模組資料集的目錄結構與所述第四模組資料集的目錄結構相同;在所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集之前,所述方法還包括:在接收到刪除所述第三模組資料集的指令的情況下,從所述第一待顯示資料集中刪除所述第三模組資料集,得到第四待顯示資料集;所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集,包括:透過編譯所述第四待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,刪除所述第三模組資料集與所述第四模組資料集之間的依賴關係,得到所述第二待顯示資料集。With reference to any implementation manner of the present disclosure, the first data set to be displayed includes a third module data set and a fourth module data set; the data format of the third module data set is the same as that of the fourth module data set The data format of the data set is the same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set; in the compilation of the first to-be-displayed data set, except for the first to-be-displayed data set Before converting the data other than the data set and the converted data set to obtain the second to-be-displayed data set, the method further includes: in the case of receiving an instruction to delete the third module data set, from the data set Deleting the third module data set from the first data set to be displayed to obtain a fourth data set to be displayed; and compiling the data in the first data set to be displayed except the first data set to be converted and Obtaining the second data set to be displayed from the converted data set includes: by compiling data in the fourth data set to be displayed except the first data set to be converted and the converted data set, deleting all data sets. The dependency relationship between the third module data set and the fourth module data set is obtained to obtain the second to-be-displayed data set.

結合本揭露任一實施方式,所述方法還包括:在所述編譯資訊包括編譯過程中出現的錯誤的情況下,對所述編譯過程中出現的第一錯誤進行翻譯,得到第二錯誤;顯示所述第二錯誤。With reference to any embodiment of the present disclosure, the method further includes: in the case that the compilation information includes errors occurring in the compilation process, translating the first error occurring in the compilation process to obtain the second error; displaying the second error.

結合本揭露任一實施方式,所述方法還包括:在接收到針對所述第一待顯示資料集的預覽指令的情況下,顯示所述第一待顯示資料集所指示的內容。With reference to any embodiment of the present disclosure, the method further includes: in the case of receiving a preview instruction for the first data set to be displayed, displaying the content indicated by the first data set to be displayed.

結合本揭露任一實施方式,所述第一待顯示資料集包括以下至少一個:檢索模組、布控模組、檔案模組、技戰法模組;所述檢索模組用於依據檢索條件對資料庫中的資料進行檢索;所述布控模組用於顯示獲取到的影片串流和/或圖像;所述檔案模組用於儲存人物資訊和/或車輛資訊;所述技戰法模組,用於展示至少一種第一圖偵技戰法,以及接收用戶從所述至少一種第一圖偵技戰法中選擇的至少一種第二圖偵技戰法。With reference to any embodiment of the present disclosure, the first data set to be displayed includes at least one of the following: a retrieval module, a deployment control module, a file module, and a technique and tactics module; the retrieval module is used to The data in the database is retrieved; the deployment control module is used to display the obtained video stream and/or image; the file module is used to store character information and/or vehicle information; The group is used to display at least one first image scout technique and tactics, and to receive at least one second image scout technique and tactics selected by the user from the at least one first image scout technique and tactics.

第二方面,本揭露實施例還提供了一種資料處理裝置,所述裝置包括:In a second aspect, an embodiment of the present disclosure further provides a data processing device, the device comprising:

獲取單元,配置為獲取第一待顯示資料集;所述第一待顯示資料集包括第一待轉換資料集;所述第一待轉換資料集的開頭為第一字串,所述第一待轉換資料集的結尾為第二字串;an acquisition unit, configured to acquire a first data set to be displayed; the first data set to be displayed includes a first data set to be converted; the first data set to be converted starts with a first character string, and the first data set to be converted Convert the end of the data set to the second string;

截取單元,配置為從所述第一待轉換資料集中截取所述位於所述第一字串與所述第二字串之間的字串,得到第二待轉換資料集;an intercepting unit, configured to intercept 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 configured to perform conversion processing on the second to-be-converted data set to obtain a converted data set whose data type is a first type; the first type is a data type that can be parsed by a browser.

結合本揭露任一實施方式,所述第一待轉換資料集包括轉換目錄下的資料和/或第三待轉換資料集;所述第三待轉換資料集為所述第一待顯示資料集中以第三字串結尾的資料;所述轉換目錄屬於所述第一待顯示資料集。With reference to any embodiment of the present disclosure, 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 the first data set to be displayed with The data at the end of the third string; the conversion directory belongs to the first to-be-displayed data set.

結合本揭露任一實施方式,所述裝置還包括:In combination with any embodiment of the present disclosure, the device further includes:

渲染單元,配置為使用所述瀏覽器渲染所述已轉換資料集和所述第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到顯示頁面。A rendering unit configured to use the browser to render the converted data set and the data in the first to-be-displayed data set except the first to-be-converted data set to obtain a display page.

結合本揭露任一實施方式,所述裝置還包括:In combination with any embodiment of the present disclosure, the device further includes:

編譯單元,配置為在所述使用所述瀏覽器渲染所述已轉換資料集和所述第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到顯示頁面之前,編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集;The compiling unit is configured to, before rendering the converted data set and the data in the first to-be-displayed data set except the first to-be-converted data set by using the browser to obtain a display page, compile all data sets to be displayed. the data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed;

第一顯示單元,配置為顯示所述編譯的編譯資訊;所述編譯資訊包括以下至少一種:編譯狀態、編譯進度、編譯過程中出現的錯誤;a first display unit, configured to display the compilation information of the compilation; the compilation information includes at least one of the following: compilation status, compilation progress, and errors occurring in the compilation process;

所述渲染單元,配置為使用所述瀏覽器渲染所述第二待顯示資料集,得到所述顯示頁面。The rendering unit is configured to use the browser to render the second data set to be displayed to obtain the display page.

結合本揭露任一實施方式,所述第一待顯示資料集包括第一模組資料集;With reference to any embodiment of the present disclosure, the first data set to be displayed includes a first module data set;

所述獲取單元,還配置為在所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集之前,獲取第二模組資料集;所述第二模組資料集的資料格式與所述第一模組資料集的資料格式相同,且所述第二模組資料集的目錄結構與所述第一模組資料集的目錄結構相同;The acquiring unit is further configured to, 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 the second data set to be displayed, Obtain a second module data set; the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as that of the first module data set The directory structure of the mod dataset is the same;

所述裝置還包括:添加單元,配置為將所述第二模組資料集添加至所述第一待顯示資料集,得到第三待顯示資料集;The device further includes: an adding unit configured to add the second module data set to the first to-be-displayed data set to obtain a third to-be-displayed data set;

所述編譯單元,配置為透過編譯所述第三待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,建立所述第二模組資料集與所述第一模組資料集之間的依賴關係,得到所述第二待顯示資料集。The compiling unit is configured to create the second module data set and the converted data set by compiling data in the third to-be-displayed data set other than the first to-be-converted data set and the converted data set The dependencies between the first module data sets are obtained to obtain the second to-be-displayed data set.

結合本揭露任一實施方式,所述第一待顯示資料集包括第三模組資料集和第四模組資料集;所述第三模組資料集的資料格式與所述第四模組資料集的資料格式相同,且所述第三模組資料集的目錄結構與所述第四模組資料集的目錄結構相同;With reference to any implementation manner of the present disclosure, the first data set to be displayed includes a third module data set and a fourth module data set; the data format of the third module data set is the same as that of the fourth module data set The data format of the set is the same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set;

所述裝置還包括:刪除單元,配置為在所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集之前,在接收到刪除所述第三模組資料集的指令的情況下,從所述第一待顯示資料集中刪除所述第三模組資料集,得到第四待顯示資料集;The apparatus further includes: a deletion unit configured to obtain a second data to be displayed by compiling data in the first data set to be displayed except the first data set to be converted and the converted data set Before the collection, in the case of receiving an instruction to delete the third module data set, delete the third module data set from the first to-be-displayed data set to obtain a fourth to-be-displayed data set;

所述編譯單元,配置為透過編譯所述第四待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,刪除所述第三模組資料集與所述第四模組資料集之間的依賴關係,得到所述第二待顯示資料集。The compilation unit is configured to delete the third module data set and the The dependencies between the data sets of the fourth module are obtained to obtain the second to-be-displayed data set.

結合本揭露任一實施方式,所述第一顯示單元,還配置為在所述編譯資訊包括編譯過程中出現的錯誤的情況下,對所述編譯過程中出現的第一錯誤進行翻譯,得到第二錯誤;顯示所述第二錯誤。With reference to any embodiment of the present disclosure, the first display unit is further configured to translate the first error that occurs during the compiling process when the compiling information includes an error that occurs during the compiling process to obtain the first error that occurs during the compiling process. Second error; display the second error.

結合本揭露任一實施方式,所述裝置還包括:第二顯示單元,配置為在接收到針對所述第一待顯示資料集的預覽指令的情況下,顯示所述第一待顯示資料集所指示的內容。With reference to any embodiment of the present disclosure, the apparatus further includes: a second display unit, configured to display all the data sets in the first data set to be displayed when a preview instruction for the first data set to be displayed is received. indicated content.

結合本揭露任一實施方式,所述第一待顯示資料集包括以下至少一個:檢索模組、布控模組、檔案模組、技戰法模組;所述檢索模組用於依據檢索條件對資料庫中的資料進行檢索;所述布控模組用於顯示獲取到的影片串流和/或圖像;所述檔案模組用於儲存人物資訊和/或車輛資訊;所述技戰法模組,用於展示至少一種第一圖偵技戰法,以及接收用戶從所述至少一種第一圖偵技戰法中選擇的至少一種第二圖偵技戰法。With reference to any embodiment of the present disclosure, the first data set to be displayed includes at least one of the following: a retrieval module, a deployment control module, a file module, and a technique and tactics module; the retrieval module is used to The data in the database is retrieved; the deployment control module is used to display the obtained video stream and/or image; the file module is used to store character information and/or vehicle information; The group is used to display at least one first image scout technique and tactics, and to receive at least one second image scout technique and tactics selected by the user from the at least one first image scout technique and tactics.

第三方面,本揭露實施例還提供了一種處理器,所述處理器用於解析如上述第一方面及其任意一種可能實現的方式的方法。In a third aspect, an embodiment of the present disclosure further provides a processor, where the processor is configured to parse the method according to the above-mentioned first aspect and any possible implementation manner thereof.

第四方面,本揭露實施例還提供了一種電子設備,包括:處理器、發送裝置、輸入裝置、輸出裝置和記憶體,所述記憶體用於儲存電腦程式代碼,所述電腦程式代碼包括電腦指令,在所述處理器執行所述電腦指令的情況下,所述電子設備解析如上述第一方面及其任意一種可能實現的方式的方法。In a fourth aspect, an embodiment of the present disclosure further provides an electronic device, including: a processor, a sending device, an input device, an output device, and a memory, the memory is used to store computer program code, and the computer program code includes a computer Instructions, under the condition that the processor executes the computer instructions, the electronic device parses the method according to the first aspect and any possible implementation manner thereof.

第五方面,本揭露實施例還提供了一種電腦可讀儲存媒體,所述電腦可讀儲存媒體中儲存有電腦程式,所述電腦程式包括程式指令,在所述程式指令被處理器執行的情況下,使所述處理器解析如上述第一方面及其任意一種可能實現的方式的方法。In a fifth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program includes program instructions, when the program instructions are executed by a processor Next, the processor is made to parse the method as described above in the first aspect and any possible implementation manner thereof.

第六方面,本揭露實施例還提供了一種電腦程式產品,所述電腦程式產品包括電腦程式或指令,在所述電腦程式或指令在電腦上解析的情況下,使得所述電腦解析上述第一方面及其任一種可能的實現方式的方法。In a sixth aspect, an embodiment of the present disclosure further provides a computer program product, the computer program product includes a computer program or an instruction, and when the computer program or instruction is parsed on a computer, the computer is made to parse the above-mentioned first Aspects and methods of any possible implementation thereof.

應當理解的是,以上的一般描述和後文的細節描述僅是示例性和解釋性的,而非限制本揭露實施例。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the disclosed embodiments.

為了使本技術領域的人員更好地理解本揭露方案,下面將結合本揭露實施例中的附圖,對本揭露實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本揭露一部分實施例,而不是全部的實施例。基於本揭露中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本揭露保護的範圍。In order to enable those skilled in the art to better understand the disclosed solutions, the technical solutions in the disclosed embodiments will be clearly and completely described below with reference to the accompanying drawings in the disclosed embodiments. Obviously, the described embodiments are only These are some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present disclosure.

本揭露的說明書和請求項書及上述附圖中的術語「第一」、「第二」等是用於區別不同物件,而不是用於描述特定順序。此外,術語「包括」和「具有」以及它們任何變形,意圖在於覆蓋不排他的包含。例如包含了一系列步驟或單元的過程、方法、系統、產品或設備沒有限定於已列出的步驟或單元,而是可選地還包括沒有列出的步驟或單元,或可選地還包括對於這些過程、方法、產品或設備固有的其他步驟或單元。The terms "first", "second" and the like in the description and claims of the present disclosure and the above-mentioned drawings are used to distinguish different items, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

在本文中提及「實施例」意味著,結合實施例描述的特定特徵、結構或特性可以包含在本揭露的至少一個實施例中。在說明書中的各個位置出現該短語並不一定均是指相同的實施例,也不是與其它實施例互斥的獨立的或備選的實施例。本領域技術人員顯式地和隱式地理解的是,本文所描述的實施例可以與其它實施例相結合。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 present disclosure. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

前端開發是創建Web頁面或App等前端頁面呈現給使用者的過程,以實現網際網路產品的使用者頁面互動。在前端開發的過程中,開發人員可依據頁面的展示需求編寫程式,得到專案檔案。運行設備(可以以下中的一種:電腦、伺服器、平板電腦)使用瀏覽器解析專案檔案,從後臺設備(可以是伺服器)獲取所需顯示的資料。運行設備使用瀏覽器渲染專案檔案和所需顯示的資料,得到顯示頁面。Front-end development is the process of creating front-end pages such as web pages or apps and presenting them to users, so as to realize the interaction of user pages of Internet products. In the process of front-end development, developers can write programs according to the display requirements of the page to obtain project files. The running device (can be one of the following: computer, server, tablet) uses the browser to parse the project file, and obtains the data to be displayed from the background device (can be the server). The running device uses the browser to render the project file and the data to be displayed to obtain the display page.

由於瀏覽器對解析的資料類型具有要求(下文將瀏覽器可解析的的資料類型稱為目標類型),為使專案檔案可透過被瀏覽器解析,顯示滿足預期的頁面,在使用瀏覽器解析專案檔案之前,需要對專案檔案中資料類型不是目標資料類型的資料進行轉化,使專案檔案可被瀏覽器解析。Since the browser has requirements for the type of data to be parsed (the type of data that can be parsed by the browser is referred to as the target type below), in order to make the project file parsed by the browser and display a page that meets the expectations, use the browser to parse the project. Before the file, it is necessary to convert the data in the project file whose data type is not the target data type, so that the project file can be parsed by the browser.

例如,假設瀏覽器可解析的資料類型為javascript(簡稱為js,為一種程式設計語言)資料,此時,目標資料類型為js。專案檔案中包含層疊樣式表(Cascading Style Sheets,CSS)資料,而CSS資料不能被瀏覽器解析,因此,在使用瀏覽器解析專案檔案之前,需要將CSS資料轉換成js資料。For example, assuming that the data type parsed by the browser is javascript (referred to as js, which is a programming language) data, in this case, the target data type is js. The project file contains Cascading Style Sheets (CSS) data, and the CSS data cannot be parsed by the browser. Therefore, before using the browser to parse the project file, the CSS data needs to be converted into js data.

又例如,假設瀏覽器可解析的資料類型為js資料,此時,目標資料類型為js。專案檔案中包含圖片,而圖片不能被瀏覽器解析,因此,在使用瀏覽器解析專案檔案之前,需要將圖片轉換成js資料。For another example, it is assumed that the data type that can be parsed by the browser is js data, and in this case, the target data type is js. The project file contains pictures, and the pictures cannot be parsed by the browser. Therefore, before using the browser to parse the project file, the pictures need to be converted into js data.

傳統方法中,透過對專案檔案中的每個字元進行解析並轉換,得到可被瀏覽器解析的資料,進而可透過瀏覽器進行頁面顯示。但在對專案檔案中的每個字元進行轉換的過程中,由於無法解析部分字串,導致轉換準確度低。例如(例1),專案檔案包括字串A,其中,字串A為:**#““read””/n。對字串A進行轉換,得到字串B。在對字串A中的每個字元進行轉換的過程中,由於無法正確解析字串A中的read,導致字串B所指示的內容與字串A所指示的內容不同。In the traditional method, by parsing and converting each character in the project file, data that can be parsed by the browser is obtained, and then the page can be displayed through the browser. However, in the process of converting each character in the project file, the conversion accuracy is low because some strings cannot be parsed. For example (Example 1), the project file includes the string A, where the string A is: **#""read""/n. Convert the string A to get the string B. In the process of converting each character in the string A, because the read in the string A cannot be correctly parsed, the content indicated by the string B is different from the content indicated by the string A.

基於此,本揭露實施例提供了一種前端框架,使用瀏覽器解析基於該前端框架進行前端開發得到的專案檔案,可提高轉換準確度。本揭露實施例的執行主體為資料處理裝置。可選的,資料處理裝置可以是以下中的一種:電腦、伺服器。下面結合本揭露實施例中的附圖對本揭露實施例進行描述。Based on this, an embodiment of the present disclosure provides a front-end framework, which uses a browser to parse a project file obtained through front-end development based on the front-end framework, which can improve conversion accuracy. The execution body of the embodiment of the present disclosure is a data processing device. Optionally, the data processing device may be one of the following: a computer and a server. The embodiments of the present disclosure will be described below with reference to the accompanying drawings in the embodiments of the present disclosure.

請參閱第1圖,第1圖是本揭露實施例提供的一種資料處理方法的流程示意圖。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the present disclosure.

101、獲取第一待顯示資料集,其中,上述第一待顯示資料集包括第一待轉換資料集,上述第一待轉換資料集的開頭為第一字串,上述第一待轉換資料集的結尾為第二字串。101. Acquire a first data set to be displayed, wherein the first data set to be displayed includes a first data set to be converted, the first data set to be converted is a first character string, and the first data set to be converted is a first character string. ends with the second string.

本揭露實施例中,第一待顯示資料集為在前端開發的過程中,需要透過頁面進行顯示的資料。第一待顯示資料集包括基於前端框架開發得到的專案檔案和所需顯示的資料。第一待轉換資料集為第一待顯示資料集中需要轉換的資料集,即第一待轉換資料集的資料類型不是目標類型。In the disclosed embodiment, the first data set to be displayed is the data that needs to be displayed on the page in the process of front-end development. The first data set to be displayed includes the project file developed based on the front-end framework and the data 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 data set to be converted may include at least one line of programs. For example, displaying the pop-up window on the page can be implemented through the pop-up window module in the first data set to be displayed, wherein the pop-up window module includes at least one line of programs. The first data set to be converted may be a pop-up window module. For another example, a search function can be run through the page, and the search function is implemented by a search module in the first data set to be displayed, wherein the search module includes at least one line of programs. The first data set to be converted may be a search module.

在本揭露實施例提供的前端框架中,第一待轉換資料集的格式是確定的。由於第一待轉換資料集中的每一個字串均包括開頭、結尾、內容三個部分,在第一待轉換資料集的格式確定的情況下,開頭部分包含的字串(即第一字串)和結尾部分包含的字串(即第二字串)均是確定的,第一待轉換資料集中的每一個字串所指示的內容即為內容部分包含的字串。In the front-end framework provided by the embodiment of the present disclosure, the format of the first data set to be converted is determined. Since each character string in the first data set to be converted includes three parts: the beginning, the end, and the content, under the condition that the format of the first data set to be converted is determined, the character string contained in the beginning part (ie, the first character string) The character string (ie the second character string) included in the end part and the end part are all 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.

例如,假設第一待轉換資料集中的開頭部分包括%&,第一待轉換資料集中的結尾部分包括*#,第一待轉換資料集包括字串A,其中,字串A為%&eat lunch*#。字串A的開頭部分為%&,字串A的結尾部分為*#,字串A的內容部分為eat lunch,字串A所指示的內容即為eat lunch。需要理解的是,第一字串包含的具體內容和第二字串包含的具體內容,可依據使用者的需求進行調整,本揭露實施例對此不做限定。For example, it is assumed that the first part of the data set to be converted includes %&, the end part of the first data set to be converted includes *#, and the first part of the data set to be converted includes a string A, where the string A is %&eat lunch* #. The beginning of string A is %&, the ending of string A is *#, the content of string A is eat lunch, and the content indicated by 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 user requirements, which are not limited in the embodiments of the present disclosure.

本揭露實施例中,第一字串與第二字串可以相同,也可以不同。例如,第一字串為“abc”,第二字串也為“abc”。又例如,第一字串為“abc”,第二字串為“def”。In the disclosed embodiment, 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 character string is "abc", and the second character string is "def".

作為一種可選的實施方式,在開發人員透過開發設備(如電腦)基於本揭露實施例提供的前端框架進行開發專案檔案的過程中,前端框架在接收到前端開發指令(如開發命令)的情況下,開發設備顯示開發規則。該開發規則用於指導開發人員以前端框架的開發規則開發專案檔案。例如,將需要轉換的資料集置於第一字串與第二字串之間。As an optional implementation manner, in the process of developing a project file based on the front-end framework provided by the embodiments of the present disclosure by a developer through a development device (such as a computer), when the front-end framework receives a front-end development instruction (such as a development command) Below, the development device displays the development rules. The development rules are used to guide developers to develop project files with the development rules of the front-end framework. For example, place the data set to be converted between the first string and the second string.

在一種獲取第一待顯示資料集的實現方式中,資料處理裝置接收使用者透過輸入元件輸入的第一待顯示資料集。上述輸入元件包括:鍵盤、滑鼠、觸控屏、觸控板和音訊輸入器等輸入元件的至少之一。例如,資料處理裝置為電腦(computer),電腦與鍵盤之間具有通訊連接。使用者可透過鍵盤編寫程式,鍵盤可將使用者編寫的程式傳輸至電腦。在使用者編寫的程式的資料類型不是目標資料類型的情況下,電腦將使用者編寫的程式作為第一待顯示資料集。In an implementation manner of acquiring the first to-be-displayed data set, the data processing apparatus receives the first to-be-displayed data set input by the user through an input element. The above-mentioned input elements include at least one of input elements such as a keyboard, a mouse, a touch screen, a touch pad, and an audio input device. For example, the data processing device is a computer, and there is a communication connection between the computer and the keyboard. The user can write programs through the keyboard, and the keyboard can transmit the programs written by the user to the computer. When the data type of the program written by the user is not the target data type, the computer uses the program written by the user as the first data set to be displayed.

在另一種獲取第一待顯示資料集的實現方式中,資料處理裝置接收第一終端發送的第一待顯示資料集。可選的,第一終端可以是以下任意一種:手機、電腦、平板電腦、伺服器、可穿戴設備。In another implementation manner of acquiring the first data set to be displayed, the data processing apparatus receives the first data set to be displayed sent by the first terminal. Optionally, the first terminal may be any one of the following: a mobile phone, a computer, a tablet computer, a server, and a wearable device.

102、從上述第一待轉換資料集中截取上述第一待轉換資料集中位於上述第一字串與上述第二字串之間的字串,得到第二待轉換資料集。102. Intercept, from the first data set to be converted, a character string located between the first character string and the second character string in the first data set to be converted, to obtain a second data set to be converted.

由於在透過對第一待轉換資料集進行轉化處理,得到目標類型的資料的同時,還須使已轉換資料集所指示的內容與第一待轉換資料集所指示的內容相同,而在分別對第一待轉換資料集中的每一個字元進行轉換的情況下,轉換準確度低(如例1),本揭露實施例採用從第一待轉換資料集中截取出內容部分所包含的字串,作為第二待轉換資料集。透過對第二待轉換資料集進行轉換,可在得到目標類型的資料的同時,提高轉換準確度。Since the data of the target type is obtained by converting the first data set to be converted, the content indicated by the converted data set must be the same as the content indicated by the first data set to be converted. In the case where each character in the first data set to be converted is converted, the conversion accuracy is low (such as Example 1), the embodiment of the present disclosure adopts the string contained in the content part extracted from the first data set to be converted, as The second data set to be converted. By converting the second data set to be converted, the conversion accuracy can be improved while obtaining the target type of data.

在一種從第一待轉換資料集中截取得到第二待轉換資料集的實現方式中,從第一待轉換資料集中確定第一字串和第二字串,並截取位於第一字串和第二字串之間的字串,得到第二待轉換資料集。例如,第一待轉換資料集包括字串A,其中,字串A為:#a&bclick/n**。假設第一字串為:a&b,第二字串為:/n,位於第一字串和第二字串之間的字串為click(下文將稱為第四字串),因此,從第一待轉換資料集中截取得到的第二待轉換資料集包括第四字串。又例如(例2),第一待轉換資料集包括字串A,其中,字串A為:#a&bclicks/n**#a&book/n**。假設第一字串為:a&b,第二字串為:/n,位於第一字串和第二字串之間的字串為clicks(下文將稱為第五字串)和book(下文將稱為第六字串),因此,從第一待轉換資料集中截取得到的第二待轉換資料集包括第五字串和第六字串。In an implementation manner of obtaining the second data set to be converted from the first data set to be converted, the first character string and the second character string are determined from the first data set to be converted, and the first character string and the second character string located in the first character string and the second character string are intercepted. The character string between the character strings is obtained to obtain the second data set to be converted. For example, the first data set to be converted includes a character string A, wherein the character string A is: #a&bclick/n**. Suppose the first string is: a&b, the second string is: /n, the string between the first string and the second string is click (hereinafter referred to as the fourth string), therefore, starting from the The second to-be-converted data set intercepted from a to-be-converted data set includes a fourth character string. For another example (Example 2), the first data set to be converted includes a character string A, where the character string A is: #a&bclicks/n**#a&book/n**. Suppose the first string is: a&b, the second string is: /n, the strings between the first string and the second string are clicks (hereinafter referred to as the fifth string) and book (hereinafter referred to as the fifth string) It is called the sixth character string), therefore, the second data set to be converted obtained from the first data set to be converted includes the fifth character string and the sixth character string.

在另一種從第一待轉換資料集中截取得到第二待轉換資料集的實現方式中,從第一待轉換資料集中截取以第一字串為開頭、第二字串為結尾的字串,得到第七字串。將第七字串的開頭和結尾去除,得到第二待轉換資料集。例如(例3),第一待轉換資料集包括字串A和字串B,其中,字串A為:a&bclick/n,字串B為:a&bbook/n。假設第一字串為:a&b,第二字串為:/n,即字串A和字串B均為以第一字串為開頭、第二字串為結尾的字串,因此,從第一待轉換資料集中截取得到的第七字串包括字串A和字串B。將字串A的開頭和結尾去除,得到的字串為:click(下文將稱為字串C),將字串B的開頭和結尾去除,得到的字串為:book(下文將稱為字串D)。從第一待轉換資料集中截取得到的第二待轉換資料集包括字串C和字串D。In another implementation manner of obtaining the second data set to be converted from the first data set to be converted, a character string starting with the first character string and ending with the second character string is intercepted from the first data set to be converted, to obtain Seventh string. The beginning and end of the seventh character string are removed to obtain the second data set to be converted. For example (Example 3), the first data set to be converted includes a string A and a string B, wherein the string A is: a&bclick/n, and the string B is: a&bbook/n. Suppose the first string is: a&b, and the second string is: /n, that is, string A and string B are both strings starting with the first string and ending with the second string. Therefore, starting from the first string A seventh string captured from the data set to be converted includes a string A and a string B. Remove the beginning and end of string A, the resulting string is: click (hereinafter referred to as string C), and remove the beginning and end of string B, the resulting string is: book (hereinafter referred to as word String D). The second to-be-converted data set intercepted from the first to-be-converted data set includes a character string C and a character string D.

103、對上述第二待轉換資料集進行轉換處理,得到資料類型為第一類型的已轉換資料集,其中,第一類型為瀏覽器可解析的資料類型。103. Perform conversion processing on the second data set to be converted, to obtain a converted data set whose data type is the first type, where the first type is a data type that can be parsed by the browser.

本揭露實施例中,第一類型為瀏覽器可解析的資料類型,即瀏覽器可解析的資料為第一類型的資料。In the disclosed embodiment, the first type is the data type that can be parsed by the browser, that is, the data that can be parsed by the browser is the first type of data.

本揭露實施例中,轉換處理包括格式轉換和語義分析,透過對第二待轉換資料集進行轉換處理,可對第二待轉換資料集進行語義分析,以解析第二待轉換資料集所指示的內容,並對第二待轉換資料集進行格式轉換以及打包處理,得到已轉換資料集。已轉換資料集所指示的內容與第二待轉換資料集所指示的內容相同,且已轉換資料集的資料類型為第一類型,即已轉換資料集可被瀏覽器解析。In the disclosed embodiment, the conversion process includes format conversion and semantic analysis. By performing the conversion process on the second data set to be converted, semantic analysis can be performed on the second data set to be converted, so as to parse the data indicated by the second data set to be converted. content, and perform format conversion and packaging processing on the second data set to be converted to obtain a converted data set. The content indicated by the converted data set is the same as the content indicated by the second to-be-converted data set, and the data type of the converted data set is the first type, that is, the converted data set can be parsed by the browser.

本揭露實施例透過從第一待轉換資料集中截取出內容部分所包含的字串,得到第二待轉換字串。對第二待轉換字串進行轉換處理,可在得到資料類型為第一類型的已轉換資料集的同時,提高轉換準確度。The embodiment of the present disclosure obtains the second to-be-converted character string by extracting the character string included in the content part from the first to-be-converted data set. Converting the second character string to be converted can improve the conversion accuracy while obtaining the converted data set whose data type is the first type.

作為一種可選的實施方式,在第一類型為js的情況下,使用轉換器(loader)對第二待轉換資料集進行轉換處理,可得到已轉換資料集。As an optional implementation manner, when the first type is js, a converter (loader) is used to perform conversion processing on the second data set to be converted, so as to obtain the converted data set.

為減小資料裝置的資料處理量、提高資料處理裝置的處理速度,作為一種可選的實施方式,開發人員在編寫專案檔案的過程中,可將專案檔案中的第一待轉換資料集儲存於專案檔案的轉換目錄(即第一待顯示資料集中的轉換目錄)下。這樣,資料處理裝置可從第一待顯示資料集中確定轉換目錄,並將儲存於轉換目錄下的資料作為第一待轉換資料集,以減小資料處理量、提高處理速度。例如,假設轉換目錄的名稱為「transformation」。資料處理裝置可從第一待顯示資料集中確定名稱為「transformation」的目錄,並將儲存於該目錄下的資料作為第一待轉換資料集。In order to reduce the data processing volume of the data device and improve the processing speed of the data processing device, as an optional implementation, the developer can store the first to-be-converted data set in the project file in the process of compiling the project file. Under the conversion directory of the project file (that is, the conversion directory in the first data set to be displayed). In this way, the data processing 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, so as to reduce the data processing amount and improve the processing speed. For example, suppose the transformation directory is named "transformation". The data processing device may determine a directory named "transformation" from the first data set to be displayed, and use the data stored in the directory as the first data set to be transformed.

作為另一種可選的實施方式,在開發人員編寫專案檔案的過程中,資料處理裝置可向開發人員輸出提示:以第一格式編寫第一待轉換資料集。這樣,資料處理裝置可從第一待顯示資料集中確定具有第一格式的資料,並將具有第一格式的資料作為第一待轉換資料集,以減小資料處理量、提高處理速度。例如,假設第一格式為以參考字串結尾的資料,其中,參考字串為.md。資料處理裝置從第一待顯示資料集中確定以.md結尾的資料,作為第一待轉換資料集。As another optional implementation manner, during the process of writing the project file by the developer, the data processing apparatus may output a prompt to the developer: writing the first data set to be converted in the first format. In this way, the data processing apparatus can determine the data in the first format from the first data set to be displayed, and use the data in the first format as the first data set to be converted, so as to reduce the data processing amount and improve the processing speed. For example, suppose the first format is data ending with a reference string, where the reference string is .md. The data processing device determines the data ending with .md from the first data set to be displayed as the first data set to be converted.

作為另一種可選的實施方式,開發人員在編寫專案檔案的過程中,既可將第一待轉換資料集儲存於專案檔案的轉換目錄(即第一待顯示資料集中的轉換目錄)下,也可以第一格式編寫第一待轉換資料集。這樣,資料處理裝置可將儲存於轉換目錄下的資料和第一待顯示資料集中確定具有第一格式的資料,作為第一待轉換資料集。As another optional implementation, in the process of compiling the project file, the developer can either store the first data set to be converted in the conversion directory of the project file (that is, the conversion directory in the first data set to be displayed), or The first data set to be converted may be written in a first format. In this way, the data processing apparatus can collectively determine the data in the first format from the data stored in the conversion directory and the first data to be displayed as the first data set to be converted.

在一些可選實施例中,第一待轉換資料集包括轉換目錄下的資料和/或第三待轉換資料集;第三待轉換資料集為第一待顯示資料集中以第三字串結尾的資料;轉換目錄屬於所述第一待顯示資料集。In some optional embodiments, the first data set to be converted includes data under the conversion directory and/or the third data set to be converted; the third data set to be converted is the first data set to be displayed that ends with a third character string data; the conversion catalog belongs to the first to-be-displayed data set.

本揭露實施例中,資料格式包括以下至少一種:語法、運算子的含義。例如,資料格式中的語法可以是指:一個專案檔案至少包括一個自訂的類,且該自訂的類需使用關鍵字class聲明。例如,資料格式中運算子的含義可以包括:「/=」表示做除法之後再賦值,如a/3表示a=a/3;第一格式中運算子的含義還可以包括:「+=」表示做加法之後再賦值,如a+=3表示a=a+3。上述第一格式可依據需求進行制定,本揭露實施例對此不做限定。In the disclosed embodiment, the data format includes at least one of the following: syntax and meaning of operators. For example, the syntax in the data format can mean that a project file contains at least one custom class, and the custom class needs to be declared with the keyword class. For example, the meaning of the operator in the data format can include: "/=" means to perform division and then assign value, such as a/3 means a=a/3; the meaning of the operator in the first format can also include: "+=" Indicates that the assignment is performed after the addition, such as a+=3 means a=a+3. The above-mentioned first format may be formulated according to requirements, which is not limited in the embodiments of the present disclosure.

作為一種可選的實施方式,在得到已轉換資料集後,資料處理裝置執行以下步驟: 1、使用上述瀏覽器渲染上述已轉換資料集和上述第一待顯示資料集中除上述第一待轉換資料集之外的資料,得到顯示頁面。As an optional implementation manner, after obtaining the converted data set, the data processing apparatus performs the following steps: 1. Use the browser to render the converted data set and the data in the first to-be-displayed data set except the above-mentioned first to-be-converted data set to obtain a display page.

在第一待顯示資料集中,除了第一待轉換資料集之外,還有資料類型為瀏覽器可解析的資料類型的資料。因此,在對第二待轉換資料集進行轉換處理,得到已轉換資料集後,透過對已轉換資料集和第一待顯示資料集中除第一待轉換資料集之外的資料進行渲染,可透過顯示頁面顯示第一待顯示資料集所指示的內容。In the first data set to be displayed, in addition to the first data set to be converted, there is also data whose data type is a data type that can be parsed by a browser. Therefore, after converting the second data set to be converted to obtain the converted data set, by rendering the data in the converted data set and the first data set to be displayed except the first data set to be converted, the The display page displays the content indicated by the first data set to be displayed.

本揭露實施例透過從第一待轉換資料集中截取出內容部分所包含的字串,得到第二待轉換字串。對第二待轉換字串進行轉換處理,可在得到資料類型為第一類型的轉換資料集的同時,提高轉換準確度,進而提高頁面顯示的準確度。The embodiment of the present disclosure obtains the second to-be-converted character string by extracting the character string included in the content part from the first to-be-converted data set. Converting the second character string to be converted can improve the conversion accuracy while obtaining the conversion data set whose data type is the first type, thereby improving the accuracy of page display.

在透過對第一待顯示資料集進行打包處理,顯示第一待顯示資料集的過程中,不僅需要對第一待轉換資料集進行轉換處理,還需對第一待顯示資料集中除第一待轉換資料集之外的檔進行轉換處理。由於第一待顯示資料集包含的字串的數量較多,顯然,從第一待顯示資料集中確定第一待轉換資料集,將給資料處理裝置帶來較大的資料處理量,從而降低資料處理裝置的速度。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 the first data set to be displayed needs to be removed from the first data set to be displayed. Convert files outside the data set for conversion processing. 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 amount of data processing to the data processing device, thereby reducing data The speed of the processing device.

如上所述,由於瀏覽器無法直接渲染第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集,則在使用瀏覽器渲染已轉換資料集和第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到顯示頁面之前,方法還包括:編譯第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集,得到瀏覽器可渲染的第二待顯示資料集;則使用瀏覽器渲染已轉換資料集和第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到顯示頁面,包括:使用瀏覽器渲染第二待顯示資料集,得到顯示頁面,實現對第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集的渲染。As mentioned above, since the browser cannot directly render the data in the first data set to be displayed and the converted data set other than the first data set to be converted, the browser is used to render the converted data set and the first data set to be displayed. Before obtaining the display page for the data other than the first data set to be converted, the method further includes: compiling the data other than the first data set to be converted and the converted data set in the first data set to be displayed, and obtaining the browser A renderable second data set to be displayed; then use a browser to render the converted data set and the data in the first data set to be displayed except the first data set to be converted, to obtain a display page, including: using a browser to render The second to-be-displayed data set obtains a display page, which implements rendering of the data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set.

作為一種可選的實施方式,在資料處理裝置編譯第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集的過程中,可顯示編譯過程的編譯資訊,其中,編譯資訊包括以下至少一種:編譯狀態、編譯進度、編譯過程中出現的錯誤。As an optional implementation manner, in the process of compiling the data in the first data set to be displayed except the first data set to be converted and the converted data set, the data processing apparatus may display the compilation information of the compilation process, wherein the compilation Information includes at least one of the following: compilation status, compilation progress, and errors during compilation.

上述編譯狀態包括編譯成功或編譯失敗,具體而言,在第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集被資料處理裝置成功編譯的情況下,編譯狀態包括編譯成功,在第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集未被資料處理裝置成功編譯的情況下,編譯狀態包括編譯失敗。The above-mentioned compilation state includes compilation success or compilation failure. Specifically, in the case where the data in the first data set to be displayed and the converted data set other than the first data set to be converted are successfully compiled by the data processing device, the compilation state includes: Compilation is successful. In the case that the data in the first data set to be displayed except the first data set to be converted and the converted data set have not been successfully compiled by the data processing device, the compilation status includes compilation failure.

上述編譯進度包括已編譯的資料量與第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集的資料量的比值。例如,第一待顯示資料集中除第一待轉換資料集之外的資料的資料量為3兆(Mbyte,MB),和已轉換資料集的資料量為1兆(Mbyte,MB),已編譯的檔的資料量為1位元組(Byte),編譯進度為25%。The above-mentioned compilation progress includes the ratio of the amount of compiled data to the amount of data in the first to-be-displayed data set other than the first to-be-converted data set and the data amount of the converted data set. For example, the data volume of the data in the first to-be-displayed data set other than the first to-be-converted data set is 3 megabytes (Mbyte, MB), and the data volume of the converted data set is 1 megabyte (Mbyte, MB). The data volume of the file is 1 byte (Byte), and the compilation progress is 25%.

透過資料處理裝置顯示編譯資訊,開發人員可透過資料裝置及時獲知第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集的編譯資訊,以便開發人員安排相應的工作,從而提高開發人員的開發效率。By displaying the compilation information through the data processing device, the developer can obtain the data in the first to-be-displayed data set other than the first to-be-converted data set and the compilation information of the converted data set in time through the data device, so that the developer can arrange the corresponding work. Thereby improving the development efficiency of developers.

作為一種可選的實施方式,資料處理裝置可透過外掛程式(plugin)實現顯示上述編譯資訊。例如,資料處理裝置裝載有顯示器,透過plugin在該顯示器中的顯示頁面內彈出彈窗,彈窗內包含上述編譯資訊。又例如,資料處理裝置裝載有顯示器,透過plugin在該顯示器中的顯示頁面內顯示至少一個外掛程式,至少一個外掛程式內包含上述編譯資訊。可選的,在透過至少一個外掛程式顯示上述編譯資訊的情況下,任意兩個外掛程式顯示的內容均不同。例如,上述編譯資訊包括編譯進度、編譯過程中出現的錯誤,至少一個外掛程式包括第一外掛程式和第二外掛程式。可透過第一外掛程式顯示編譯進度、透過第二外掛程式顯示編譯過程中出現的錯誤。As an optional implementation manner, the data processing apparatus may display the compilation information through a plug-in. For example, the data processing device is equipped with a display, and a pop-up window pops up in the display page of the display through a plugin, and the pop-up window contains the above-mentioned compilation information. For another example, the data processing device is equipped with a display, and at least one plug-in program is displayed on a display page of the display through a plugin, and the at least one plug-in program contains the above-mentioned compilation information. Optionally, in the case where the above-mentioned compilation information is displayed through at least one plug-in program, the contents displayed by any two plug-in programs are different. For example, the above-mentioned compilation information includes compilation progress and errors occurred during the compilation process, and the at least one plug-in program includes a first plug-in program and a second plug-in program. Compilation progress can be displayed through the first plug-in program, and errors during the compilation process can be displayed through the second plug-in program.

編譯過程中出現的錯誤通常為英文文字體現,作為一種可選的實施方式,將編譯過程中出現的錯誤稱為第一錯誤。在顯示第一錯誤之前,資料處理裝置可對第一錯誤進行翻譯,得到第二錯誤,其中,第二錯誤可以為除英文外的任意一種文字。例如,第二錯誤可以是中文文字體現。又例如,第二錯誤可以是日文文字體現。再例如,第二錯誤可以是拉丁文文字體現。Errors that occur during the compilation process are usually embodied in English text. As an optional implementation manner, the errors that occur during the compilation process are called the first error. Before displaying the first error, the data processing device may translate the first error to obtain the second error, wherein the second error may be any text except English. For example, the second error may be embodied in Chinese characters. For another example, the second error may be embodied in Japanese characters. As another example, the second error may be embodied in Latin text.

則在一些可選實施例中,所述方法還包括:在編譯資訊包括編譯過程中出現的錯誤的情況下,對編譯過程中出現的第一錯誤進行翻譯,得到第二錯誤,並顯示第二錯誤,可提高開發人員的開發效率。Then, in some optional embodiments, the method further includes: in the case that the compilation information includes errors occurring in the compilation process, translating the first error occurring in the compilation process to obtain the second error, and displaying the second error. errors, which can improve the developer's development efficiency.

由於開發人員在編寫第一待顯示資料集的過程中,可能需要依據預期需求對第一待顯示資料集進行更新。例如,在編譯第一待顯示資料集的過程中,由於出現了編譯錯誤,導致第一待顯示資料集無法成功編譯。此時,預期需求為使第一待顯示資料集可被成功編譯,開發人員需要更新第一待顯示資料集,以使更新後的第一待顯示資料集可被資料處理裝置成功編譯。又例如,開發人員想透過對第一待顯示資料集進行更新,使第一待顯示資料集新增一個搜索的功能,此時預期需求為新增一個搜索的功能。Since the developer is in the process of writing the first data set to be displayed, it may be necessary to update the first data set to be displayed according to expected requirements. For example, in the process of compiling the first data set to be displayed, due to a compilation error, the first data set to be displayed cannot be successfully compiled. At this time, the expected requirement is that the first data set to be displayed can be successfully compiled, and the developer needs to update the first data set to be displayed so that the updated first data set to be displayed can be successfully compiled by the data processing device. For another example, 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. At this time, the expected requirement is to add a search function.

可選的,更新第一待顯示資料集的方式可透過調整第一待顯示資料集實現,其中,調整第一待顯示資料集包括以下至少一種:修改第一待顯示資料集中的資料、刪除第一待顯示資料集中的資料、向第一待顯示資料集中添加資料。Optionally, the method of updating the first data set to be displayed can be realized by adjusting the first data set to be displayed, wherein the adjustment of the first data set to be displayed includes at least one of the following: modifying the data in the first data set to be displayed, deleting the first data set to be displayed. Once the data in the data set to be displayed, add data to the first data set to be displayed.

若開發人員需要透過對更新後的第一待顯示資料集進行編譯,並解析編譯後的第一待顯示資料集,獲知更新後的第一待顯示資料集所實現的功能是否符合預期需求,需要在至少兩個頁面之間切換,甚至需要在至少兩台設備之間切換,這將降低開發人員的開發效率。例如,編寫第一待顯示資料集或更新第一待顯示資料集的頁面為頁面A,瀏覽器所展示的頁面為頁面B。開發人員想要查看第一待顯示資料集中的任意一個功能的效果,均需在頁面A內編寫第一待顯示資料集或更新第一待顯示資料集,在頁面B內透過查看瀏覽器解析編譯後的第一待顯示資料集的顯示效果,以確定第一待顯示資料集中的功能的效果。If the developer needs to compile the updated first data set to be displayed, and analyze the compiled first data set to be displayed, to know whether the functions implemented by the updated first data set to be displayed meet the expected requirements, it is necessary to Switching between at least two pages, or even switching between at least two devices, will reduce the developer's development efficiency. For example, the page for writing the first data set to be displayed or updating the first data set to be displayed is page A, and the page displayed by the browser is page B. If developers want to view the effect of any function in the first data set to be displayed, they need to write the first data set to be displayed or update the first data set to be displayed in page A, and parse and compile them through the viewing browser in page B The display effect of the first to-be-displayed data set is determined to determine the effect of the function in the first to-be-displayed data set.

為提高開發人員的開發效率,在本揭露實施例提供的技術方案中,在更新第一待顯示資料集的過程中,資料處理裝置可在接收到顯示第一待顯示資料集所指示的內容的情況下,顯示第一待顯示資料集所指示的內容,無需進行頁面切換。In order to improve the development efficiency of developers, in the technical solutions provided by the embodiments of the present disclosure, in the process of updating the first data set to be displayed, the data processing device may receive a message for displaying the content indicated by the first data set to be displayed. In this case, the content indicated by the first to-be-displayed data set is displayed without page switching.

作為一種可選的實施方式,方法還包括:資料處理裝置在接收到第一待顯示資料集的預覽指令的情況下,顯示第一待顯示資料集所指示的內容。例如,開發人員想查看第一待顯示資料集中的文檔A,假設預覽指令為check。資料處理裝置在接收到開發人員輸入的預覽指令(即check)的情況下,讀取文檔A,並透過資料處理裝置顯示文檔A。可選的,顯示文檔A與編寫第一文檔可透過不同視窗實現。例如,資料處理裝置的顯示頁面包括視窗a和視窗b,其中,視窗a用於顯示第一文檔、接收針對第一文檔的更新指令(即開發人員可透過向視窗a輸入更新指令,更新第一文檔),快顯視窗b,其中,視窗b用於顯示文檔A。As an optional implementation manner, the method further includes: when the data processing apparatus receives a preview instruction of the first data set to be displayed, displaying the content indicated by the first data set to be displayed. For example, if the developer wants to view document A in the first data set to be displayed, suppose the preview command is check. When receiving the preview instruction (ie check) input by the developer, the data processing device reads the document A, and displays the document A through the data processing device. Optionally, displaying the document A and writing the first document may be implemented through different windows. For example, the display page of the data processing device includes a window a and a window b, wherein the window a is used to display the first document and receive an update instruction for the first document (that is, the developer can update the first document by entering the update instruction into the window a. document), pop-up window b, where window b is used to display document A.

又例如,假設預覽指令為保存指令。開發人員在透過資料處理裝置更新完第一待顯示資料集後,向資料處理裝置輸入保存更新後的第一待顯示資料集的指令,資料處理裝置在接收到保存更新後第一待顯示資料集的指令的情況下,執行編譯更新後的第一待顯示資料集,得到編譯後的第一待顯示資料集,並透過解析編譯後的第一待顯示資料集,顯示更新後的第一待顯示資料集所指示的內容。For another example, it is assumed that the preview command is a save command. After updating the first data set to be displayed through the data processing device, the developer inputs an instruction to save the updated first data set to be displayed to the data processing device, and the data processing device saves the first data set to be displayed after receiving the update. In the case of the command, execute the compiled and updated first data set to be displayed, obtain the compiled first data set to be displayed, and display the updated first data set to be displayed by parsing the compiled first data set to be displayed what the dataset indicates.

透過向資料處理裝置輸入預覽指令,開發人員可即時查看第一待顯示資料集所指示的內容(包括查看第一待顯示資料集中的文檔、查看第一待顯示資料集所實現的功能),無需切換頁面或更換設備,從而提高開發人員的開發效率。By inputting a preview command to the data processing device, the developer can instantly view the content indicated by the first data set to be displayed (including viewing the documents in the first data set to be displayed, and viewing the functions implemented by the first data set to be displayed), without the need for Switch pages or change devices to improve developer productivity.

由於開發第一待顯示資料集的工作量大,為提高開發效率,至少兩名開發人員可透過分工合作的方式完成對第一待顯示資料集的開發。具體的,可將第一待顯示資料集所需實現的功能分配給至少兩名開發人員,使每一名開發人員負責開發的功能不同。例如(例3),第一待顯示資料集所需實現的功能包括功能A、功能B、功能C,其中,功能A的實現由開發人員a負責,功能B的實現由開發人員b負責,功能C的實現由開發人員c負責。Due to the heavy workload of developing the first data set to be displayed, in order to improve development efficiency, at least two developers can complete the development of the first data set to be displayed through division of labor and cooperation. Specifically, the functions to be implemented by the first data set to be displayed may be allocated to at least two developers, so that each developer is responsible for developing different functions. For example (Example 3), the functions to be implemented in the first data set to be displayed include function A, function B, and function C, wherein, the realization of function A is the responsibility of developer a, the realization of function B is the responsibility of developer b, and the realization of function B is the responsibility of developer b. The implementation of C is the responsibility of the developer c.

在每一名開發人員透過編寫程式,分別完成所負責的功能的開發的情況下,將每一名開發人員編寫的程式儲存於同一目錄下,得到第一待顯示資料集。以例3為例(例4),假設開發人員a編寫的程式D可實現功能A,開發人員b編寫的程式E可實現功能B,開發人員c編寫的程式F可實現功能C。將程式D、程式E、程式F儲存於目錄d下,得到第一待顯示資料集。In the case that each developer completes the development of the functions in charge of each developer by writing programs, the programs written by each developer are stored in the same directory to obtain the first data set to be displayed. Taking Example 3 as an example (Example 4), suppose that the program D written by developer a can implement function A, the program E written by developer b can implement function B, and the program F written by developer c can implement function C. Store the program D, the program E, and the program F in the directory d to obtain the first data set to be displayed.

為表述方便,下文將實現一個功能的程式稱為模組資料集,如例4中的程式D、程式E、程式F均為模組資料集。由於不同的模組資料集之間可能存在依賴關係,而每一個模組資料集均為獨立的,在解析第一待顯示資料集之前,需要建立模組資料集與模組資料集之間的依賴關係。For the convenience of expression, a program that implements a function is called a module data set in the following. For example, the program D, the program E, and the program F in Example 4 are all module data sets. Since there may be dependencies between different module data sets, and each module data set is independent, before parsing the first to-be-displayed data set, it is necessary to establish a relationship between the module data set and the module data set dependencies.

例如(例5),假設模組資料集A用於實現功能a,模組資料集B用於實現功能b,而在模組資料集A實現功能a的過程中,需要使用模組資料集B得到的資料C。也就是說,模組資料集A和模組資料集B之間存在依賴關係。透過在模組資料集A和模組資料集B之間建立依賴關係,在解析第一待顯示資料集的過程中,可使模組資料集B將資料C傳輸至模組資料集A,這樣,模組資料集A才能實現功能a。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. In the process of module data set A implementing function a, module data set B needs to be used. Obtained data C. That is, there is a dependency between mod dataset A and mod dataset B. By establishing a dependency relationship between module data set A and module data set B, in the process of parsing the first data set to be displayed, module data set B can transmit data C to module data set A, so that , the module data set A can realize the function a.

又例如(例6),假設模組資料集A用於實現功能a,模組資料集B用於實現功能b,而在模組資料集A實現功能a的過程中,需要使用模組資料集B實現功能b。也就是說,模組資料集A和模組資料集B之間存在依賴關係。透過在模組資料集A和模組資料集B之間建立依賴關係,這樣,在解析第一待顯示資料集的過程中,模組資料集A可調用模組資料集B,從而實現功能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. In the process of module data set A to implement function a, the module data set needs to be used. B implements function b. That is, there is a dependency between mod dataset A and mod dataset B. By establishing a dependency relationship between module data set A and module data set B, in the process of parsing the first data set to be displayed, module data set A can call module data set B, thereby realizing function a .

傳統方法中,開發人員需要在編寫模組資料集的過程中考慮模組資料集與模組資料集之間的依賴關係,並依據依賴關係在模組資料集中編寫相應的程式,以建立模組資料集與模組資料集之間的依賴關係。以例5為例,假設模組資料集B由張三負責開發。張三在編寫模組資料集B的過程中,需要編寫相應的程式,以將解析模組資料集B得到的資料C傳輸至模組資料集A。再以例6為例,假設模組資料集A由李四負責開發。李四在編寫模組資料集A的過程中,需要寫入相應的程式,以在解析模組資料集A的過程中,使模組資料集A調用模組資料集B。In the traditional method, developers need to consider the dependency between the module data set and the module data set in the process of compiling the module data set, and write corresponding programs in the module data set according to the dependency to create the module. Dependencies between datasets and mod datasets. Taking Example 5 as an example, it is assumed that the module data set B is developed by Zhang San. In the process of compiling the module data set B, Zhang San needs to write a corresponding program to transmit the data C obtained by analyzing the module data set B to the module data set A. Taking Example 6 as another example, assume that the module data set A is developed by Li Si. In the process of compiling module data set A, Li Si needs to write a corresponding program to make module data set A call module data set B in the process of parsing module data set A.

透過傳統方法建立模組資料集與模組資料集之間的依賴關係,需要開發人員付出額外的勞動,進而降低開發人員的開發效率。Establishing the dependency between the module data set and the module data set through the traditional method requires extra labor for developers, thereby reducing the development efficiency of developers.

在一種可能實現的方式中,第一待顯示資料集包括第一模組資料集,將開發人員添加至第一待顯示資料集所在的目錄下的模組資料集稱為第二模組資料集,其中,第二模組資料集的資料格式與第一模組資料集的資料格式相同,且第二模組資料集的目錄結構與第一模組資料集的目錄結構相同。在編譯第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集,得到第二待顯示資料集之前,方法還包括:資料處理裝置在獲取第二模組資料集以及將第二模組資料集添加至第一待顯示資料集的指令的情況下,將第二模組資料集添加至第一待顯示資料集,得到第三待顯示資料集。相應的,編譯第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集,得到第二待顯示資料集,包括:資料處理裝置透過編譯第三待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集,建立第二模組資料集與第一模組資料集之間的依賴關係,可得到第二待顯示資料集。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 directory where the first data set to be displayed is located is called the second module data set , wherein the data format of the second module data set is the same as that of the first module data set, and the directory structure of the second module data set is the same as the directory structure of the first module data set. Before compiling the data in the first to-be-displayed data set except the first to-be-converted data set and the converted data set to obtain the second to-be-displayed data set, the method further includes: the data processing device acquires the second module data set and In the case of the instruction to add the second module data set to the first to-be-displayed data set, the second module data set is added to the first to-be-displayed data set to obtain a third to-be-displayed data set. Correspondingly, compiling the data in the first data set to be displayed except the first data set to be converted and the converted data set, to obtain the second data set to be displayed, includes: the data processing device compiles the third data set to be displayed except the first data set. A data set other than the data set to be converted and the converted data set are established, and a dependency relationship between the data set of the second module and the data set of the first module is established, and the second data set to be displayed can be obtained.

在資料處理裝置編譯第三待顯示資料集的過程中,可依據第一模組資料集的目錄結構,查找第一模組資料集中的資料,並依據第一模組資料集的資料格式解析第一模組資料集中的資料。由於第二模組資料集的資料格式與第一模組資料集的資料格式相同,且第二模組資料集的目錄結構與第一模組資料集的目錄結構相同,資料處理裝置可在編譯過程中,以查找第一模組資料集中的資料的方式查找第二模組資料集中的資料,並以解析第一模組資料集中的資料的方式解析第二模組資料集中的資料,進而可建立第一模組資料集與第二模組資料集之間的依賴關係。In the process of compiling the third data set to be displayed, the data processing device can search for the data in the first module data set according to the directory structure of the first module data set, and parse the first module data set according to the data format of the first module data set. Data from a modular dataset. Since the data format of the second module data set is the same as that of the first module data set, and the directory structure of the second module data set is the same as that of the first module data set, the data processing device can compile In the process, the data in the data set of the second module is searched in the way of looking up the data in the data set of the first module, and the data in the data set of the second module is parsed in the way of analyzing the data in the data set of the first module, and then the data in the data set of the second module can be parsed. A dependency relationship between the first module data set and the second module data set is established.

可選的,在接收到編譯第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集的指令的情況下,透過編譯第三待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集,建立第二模組資料集與第一模組資料集之間的依賴關係。Optionally, when an instruction for compiling data in the first data set to be displayed other than the first data set to be converted and the converted data set is received, by compiling the third data set to be displayed except the first data to be converted Data outside the set and the converted data set to establish a dependency between the second module data set and the first module data set.

在該種實現方式中,資料處理裝置可透過編譯第三待顯示資料集,建立第一模組資料集與第二模組資料集之間的依賴關係,有利於提高開發人員的開發效率。In this implementation manner, the data processing apparatus can 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 improve the development efficiency of developers.

基於該種實現方式,開發人員只需在編寫第二模組資料集的過程中,使第二模組資料集的目錄結構與第一模組資料集的目錄結構相同,並使第二模組資料集的資料格式與第一模組資料集的資料格式相同,並將第二模組資料集添加至第一待顯示資料集的目錄下。即可透過資料處理裝置對第三待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集的編譯,建立該編寫好的模組資料集與第一待顯示資料集中的模組資料集之間的依賴關係。無需在編寫第二模組資料集的過程中,編寫第二模組資料集與第一模組資料集之間的依賴關係,從而提高開發人員的開發效率。Based on this implementation, developers only need to make the directory structure of the second module data set the same as that of the first module data set during the process of writing the second module data set, and make the second module data set the same directory structure as the first module data set. The data format of the data set is the same as that of the first module data set, and the second module data set is added to the directory of the first to-be-displayed data set. The data in the third to-be-displayed data set other than the first to-be-converted data set and the converted data set can be compiled by the data processing device to create the compiled module data set and the modules in the first to-be-displayed data set. Dependencies between group datasets. There is no need to write a dependency relationship between the second module data set and the first module data set in the process of writing the second module data set, thereby improving the development efficiency of developers.

在開發人員開發第一待顯示資料集的過程中,除了向第一待顯示資料集中添加模組資料集,可能還需刪除第一待顯示資料集中的模組資料集。例如,假設第一待顯示資料集中的模組資料集A用於實現功能a,現不需要實現功能a,因此需要將第一待顯示資料集中的模組資料集A刪除。In the process of developing the first data set to be displayed, in addition to adding the module data set to the first data set to be displayed, it may be necessary to delete the module data set in the first data set to be displayed. For example, it is assumed that the module data set A in the first data set to be displayed is used to implement function a, and it is not necessary to implement function a now, so the module data set A in the first data set to be displayed needs to be deleted.

在一種可能實現的方式中,第一待顯示資料集包括第三模組資料集和第四模組資料集。第三模組資料集的資料格式與第四模組資料集的資料格式相同,且第三模組資料集的目錄結構與第四模組資料集的目錄結構相同。In a possible implementation manner, the first data set to be displayed includes a third module data set and a fourth module data set. The data format of the third module data set is the same as that of the fourth module data set, and the directory structure of the third module data set is the same as that of the fourth module data set.

則在一些可選的實施例中,方法還包括:資料處理裝置在接收到刪除第三模組資料集的指令的情況下,可在資料處理裝置執行編譯第一待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集的操作、得到第二待顯示資料集之前,從第一待顯示資料集中刪除第三模組資料集,得到第四待顯示資料集。Then, in some optional embodiments, the method further includes: when the data processing device receives an instruction to delete the third module data set, the data processing device may execute compilation of the first data set to be displayed in addition to the first data set to be displayed. Before obtaining the second data set to be displayed, delete the third module data set from the first data set to be displayed to obtain the fourth data set to be displayed.

資料處理裝置在編譯第四待顯示資料集的過程中,可依據第四模組資料集的目錄結構,查找第四模組資料集中的資料,並依據第四模組資料集的資料格式解析第四模組資料集中的資料,進而確定第四模組資料集下依賴關係的儲存路徑。依據該儲存路徑將第四模組資料集與第三模組資料集之間的依賴關係刪除。In the process of compiling the fourth data set to be displayed, the data processing device can search for the data in the fourth module data set according to the directory structure of the fourth module data set, and parse the fourth module data set according to the data format of the fourth module data set. The data in the data set of the fourth module, and then determine the storage path of the dependencies under the data set of the fourth module. The dependency relationship between the fourth module data set and the third module data set is deleted according to the storage path.

可選的,在接收到刪除第三模組資料集的指令的情況下,透過編譯第四待顯示資料集中除第一待轉換資料集之外的資料和已轉換資料集,刪除第三模組資料集與第四模組資料集之間的依賴關係,得到第二待顯示資料集。Optionally, in the case of receiving an instruction to delete the data set of the third module, delete the third module by compiling the data in the fourth to-be-displayed data set other than the first to-be-converted data set and the converted data set The dependency relationship between the data set and the data set of the fourth module obtains the second data set to be displayed.

在該種實現方式中,資料處理裝置可透過編譯第四待顯示資料集,刪除第三模組資料集與第四模組資料集之間的依賴關係,有利於提高開發人員的開發效率。In this implementation manner, the data processing device can delete the dependency between the third module data set and the fourth module data set by compiling the fourth data set to be displayed, which is beneficial to improve the development efficiency of developers.

在開發人員開發第一待顯示資料集的過程中,除了向第一待顯示資料集中添加模組資料集,以及刪除第一待顯示資料集中的模組資料集之外,可能還需修改第一待顯示資料集中的模組資料集。例如,假設第一待顯示資料集中的模組資料集A用於實現功能a,現需要優化功能a,可透過修改第一待顯示資料集中的模組資料集A,達到優化功能a的效果。During the process of developing the first data set to be displayed, in addition to adding a module data set to the first data set to be displayed and deleting the module data set in the first data set to be displayed, it may be necessary to modify the first data set to be displayed. The mod datasets in the dataset to display. For example, assuming that the module data set A in the first data set to be displayed is used to implement function a, and function a needs to be optimized now, the effect of optimizing function a can be achieved by modifying the module data set A in the first data set to be displayed.

對第一待顯示資料集中的模組資料集進行修改,也會導致模組資料集與模組資料集之間的依賴關係發生改變。例如(例7),第一待顯示資料集包括模組資料集A和模組資料集B,其中,模組資料集A與模組資料集B之間存在依賴關係。資料處理裝置在接收到針對模組資料集A的修改指令的情況下,對模組資料集A進行修改,得到模組資料集C,其中,模組資料集C與模組資料集B之間存在依賴關係。Modifying the module data set in the first to-be-displayed data set will also change the dependency between the module data set and the module data set. For example (Example 7), the first data set to be displayed includes a module data set A and a module data set B, wherein a dependency relationship exists between the module data set A and the module data set B. In the case of receiving the modification instruction for the module data set A, the data processing device modifies the module data set A to obtain the module data set C, wherein the distance between the module data set C and the module data set B is There are dependencies.

將對被修改的模組資料集進行修改得到的資料集,稱為修改後的模組資料集。將對第一待顯示資料集修改得到的資料集,稱為修改後的第一待顯示資料集。基於本揭露實施例提供的技術方案,可透過編譯修改後的第一待顯示資料集,刪除被修改的模組資料集與第一待顯示資料集中的模組資料集之間的依賴關係,並建立修改後的模組資料集與第一待顯示資料集中的模組資料集之間的依賴關係。The data set obtained by modifying the modified module data set is called the modified module data set. The data set obtained by modifying the first data set to be displayed is called the modified first data set to be displayed. Based on the technical solutions provided by the embodiments of the present disclosure, the dependency relationship between the modified module data set and the module data set in the first to-be-displayed data set can be deleted by compiling the modified first data set to be displayed, and A dependency relationship between the modified mod dataset and the mod dataset in the first to-be-displayed dataset is established.

以例7為例,被修改的模組資料集為模組資料集A,修改後的模組資料集為模組資料集C,修改後的第一待顯示資料集包括模組資料集B和模組資料集C。透過編譯修改後的第一待顯示資料集,可刪除模組資料集A與模組資料集B之間的依賴關係,並建立模組資料集B與模組資料集C之間的依賴關係。Taking Example 7 as an example, the modified module data set is module data set A, the modified module data set is module data set C, and the first modified data set to be displayed includes module data set B and Mod Dataset C. By compiling the modified first data set to be displayed, the dependency relationship between the module data set A and the module data set B can be deleted, and the dependency relationship between the module data set B and the module data set C can be established.

基於本揭露實施例提供的技術方案,本揭露實施例還提供了一種可能實現的應用場景。Based on the technical solutions provided by the embodiments of the present disclosure, the embodiments of the present disclosure also provide a possible application scenario.

隨著移動網際網路的發展,前端開發得到了快速的發展,前端開發在內容上、形式上、功能上都有了極大的豐富。基於前端技術的發展,透過前端開發可很好的滿足前端業務需求,但是前端開發所需的工作量大,因此,如何有效提高前端開發效率就變得非常有意義。With the development of the mobile Internet, front-end development has developed rapidly, and front-end development has been greatly enriched in content, form and function. Based on the development of front-end technology, front-end business needs can be well met through front-end development, but front-end development requires a lot of work. Therefore, how to effectively improve front-end development efficiency becomes very meaningful.

基於本揭露實施例提供的前端框架進行前端開發,可提高開發效率。Front-end development based on the front-end framework provided by the embodiments of the present disclosure can improve development efficiency.

可選的,前端框架的架構圖可參見第2圖。如第2圖所示,前端框架包括業務層、元件層、中間服務層、資料交換層。Optionally, see Figure 2 for the architecture diagram of the front-end framework. As shown in Figure 2, the front-end framework includes a business layer, a component layer, an intermediate service layer, and a data exchange layer.

運行基於該前端框架開發的得到的專案檔案的設備(下文將稱為運行設備。可選的,運行設備包括電腦),可透過資料交換層從後臺設備獲取資料。可選的,後臺設備包括伺服器。中間服務層用於儲存資料交換層從後臺設備獲取的資料,並向業務層提供完成業務需求所需的資料。業務層包括上述模組資料集。運行設備使用瀏覽器渲染業務層中的模組資料集和中間服務層的資料(即第一待顯示資料集),可實現前端顯示,得到顯示頁面。The device running the project file developed based on the front-end framework (hereinafter referred to as the running device. Optionally, the running device includes a computer), which can obtain data from the background device through the data exchange layer. Optionally, the background device includes a server. The middle service layer is used to store the data obtained by the data exchange layer from the back-end equipment, and provide the business layer with the data needed to complete the business requirements. The business layer includes the above module datasets. The operating device uses the browser to render the module data set in the business layer and the data in the intermediate service layer (ie, the first data set to be displayed), which can realize front-end display and obtain the display page.

可選的,業務層包括loader,運行設備在編譯第一待顯示資料集的過程中,使用業務層中的loader對第一待顯示資料集進行轉換處理,得到資料類型為第一類型的已轉換資料集。Optionally, the business layer includes a loader, and in the process of compiling the first data set to be displayed, the operating device uses the loader in the business layer to perform conversion processing on the first data set to be displayed, and obtains a converted data set whose data type is the first type. dataset.

元件層包括頁面顯示所需要的各種外掛程式。可選的,在運行設備編譯第一待顯示資料集的過程中,業務層可使用元件層中的外掛程式(例如plugin)顯示編譯資訊。例如,顯示編譯過程出現的錯誤;顯示編譯狀態;顯示編譯進度。例如,第一待顯示資料集的編譯資訊可透過彈窗的形式進行顯示,元件層包括實現彈窗功能的檔。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 business layer may display the compilation information by using a plug-in program (such as a plugin) in the component layer. For example, display the errors in the compilation process; display the compilation status; display the compilation progress. For example, the compilation information of the first data set to be displayed can be displayed in the form of a pop-up window, and the component layer includes a file that implements the function of the pop-up window.

可選的,在使用瀏覽器渲染已轉換資料集和第一待顯示資料集中除第一待轉換資料集之外的資料的過程中,運行設備還可使用元件層中的外掛程式,在顯示頁面中顯示與業務層中的模組資料集對應的內容。Optionally, in the process of using the browser to render the converted data set and the data in the first to-be-displayed data set except the first to-be-converted data set, the operating device can also use the plug-in program in the component layer to display the page. Displays the content corresponding to the module dataset in the business layer.

例如,業務層(即第一待顯示資料集)包括以下至少一個:檢索模組、布控模組、檔案模組、技戰法模組。檢索模組用於依據檢索條件對資料庫中的資料進行檢索。顯示頁面中與檢索模組對應的內容可以是檢索欄。布控模組用於顯示獲取到的影片串流和/或圖像。檔案模組用於儲存人物資訊和/或車輛資訊。顯示頁面中與布控模組對應的內容可以是人物資訊和/或車輛資訊展示區域。For example, the business layer (ie, the first data set to be displayed) includes at least one of the following: a retrieval module, a deployment control module, a file module, and a technique and tactics module. The retrieval module is used to retrieve the data in the database according to the retrieval conditions. The content corresponding to the retrieval module in the display page may be a retrieval column. The deployment module is used to display the obtained video stream and/or image. File modules are used to store person information and/or vehicle information. The content corresponding to the deployment control module on the display page may be a display area of character information and/or vehicle information.

技戰法模組,用於展示至少一種第一圖偵技戰法,以及接收用戶從所述至少一種第一圖偵技戰法中選擇的至少一種第二圖偵技戰法。顯示頁面中與技戰法模組對應的內容可以是至少一種第一圖偵技戰法。第一圖偵技戰法為可供用戶選擇的圖偵技戰法。運行設備在接收到使用者從至少一種第一圖偵技戰法中選擇的至少一種第二圖偵技戰法的情況下,基於至少一種第二圖偵技戰法,使用布控模組獲取到的影片串流和/或圖像、儲存檔案模組中的人物資訊和/或車輛資訊,得到圖偵結果,並將圖偵結果顯示在與技戰法模組對應內容中。The skill and tactics module is used for displaying at least one first image scouting skill and tactics, and receiving at least one second image spying skill and tactics selected by the user from the at least one first image scouting skill and tactics. The content corresponding to the technique and tactics module in the display page may be at least one first image detection technique and tactics. The first map reconnaissance technique is a map reconnaissance technique that can be selected by the user. When the operating device receives at least one second image reconnaissance technique and tactics selected by the user from at least one first image reconnaissance technique and tactics, based on the at least one second image reconnaissance technique and tactics, use the deployment control module to obtain the information. The video stream and/or image, the character information and/or vehicle information in the storage file module, obtain the image detection result, and display the image detection result in the content corresponding to the tactics module.

本領域技術人員可以理解,在具體實施方式的上述方法中,各步驟的撰寫順序並不意味著嚴格的執行順序而對實施過程構成任何限定,各步驟的具體執行順序應當以其功能和可能的內在邏輯確定。Those skilled in the art can understand that in the above method of the specific implementation, the writing order of each step does not mean a strict execution order but constitutes any limitation on the implementation process, and the specific execution order of each step should be based on its function and possible Internal logic is determined.

上述詳細闡述了本揭露實施例的方法,下面提供了本揭露實施例的裝置。The method of the embodiment of the present disclosure is described in detail above, and the apparatus of the embodiment of the present disclosure is provided below.

請參閱第3圖,第3圖為本揭露實施例提供的一種資料處理裝置的結構示意圖。該資料處理裝置1包括:獲取單元11、截取單元12和轉換單元13;其中:Please refer to FIG. 3 , which is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure. The data processing device 1 includes: an acquisition unit 11, an interception unit 12 and a conversion unit 13; wherein:

獲取單元11,配置為獲取第一待顯示資料集;所述第一待顯示資料集包括第一待轉換資料集;所述第一待轉換資料集的開頭為第一字串,所述第一待轉換資料集的結尾為第二字串;The obtaining unit 11 is configured to obtain a first data set to be displayed; the first data set to be displayed includes a first data set to be converted; the beginning of the first data set to be converted is a first character string, and the first data set to be converted The end of the data set to be converted is the second string;

截取單元12,配置為從所述第一待轉換資料集中截取所述位於所述第一字串與所述第二字串之間的字串,得到第二待轉換資料集;The intercepting unit 12 is configured to intercept 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;

轉換單元13,配置為對所述第二待轉換資料集進行轉換處理,得到資料類型為第一類型的已轉換資料集;所述第一類型為瀏覽器可解析的資料類型。The conversion unit 13 is configured to perform conversion processing on the second to-be-converted data set to obtain a converted data set whose data type is a first type; the first type is a data type that can be parsed by a browser.

結合本揭露任一實施方式,所述第一待轉換資料集包括轉換目錄下的資料和/或第三待轉換資料集;所述第三待轉換資料集為所述第一待顯示資料集中以第三字串結尾的資料;所述轉換目錄屬於所述第一待顯示資料集。With reference to any embodiment of the present disclosure, 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 the first data set to be displayed with The data at the end of the third string; the conversion directory belongs to the first to-be-displayed data set.

結合本揭露任一實施方式,所述裝置還包括: 渲染單元,配置為使用所述瀏覽器渲染所述已轉換資料集和所述第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到顯示頁面。In combination with any embodiment of the present disclosure, the device further includes: A rendering unit configured to use the browser to render the converted data set and the data in the first to-be-displayed data set except the first to-be-converted data set to obtain a display page.

結合本揭露任一實施方式,所述裝置還包括:編譯單元,配置為在所述使用所述瀏覽器渲染所述已轉換資料集和所述第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到頁面顯示之前,編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集; 第一顯示單元,配置為顯示所述編譯的編譯資訊;所述編譯資訊包括以下至少一種:編譯狀態、編譯進度、編譯過程中出現的錯誤; 所述渲染單元,配置為使用所述瀏覽器渲染所述第二待顯示資料集,得到所述顯示頁面。With reference to any embodiment of the present disclosure, the apparatus further includes: a compiling unit, configured to exclude the first to-be-converted data set in the rendering of the converted data set using the browser and the first to-be-displayed data set For data other than the data set, before obtaining the page display, compile the data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain the second data set to be displayed; a first display unit, configured to display the compilation information of the compilation; the compilation information includes at least one of the following: compilation status, compilation progress, and errors occurring in the compilation process; The rendering unit is configured to use the browser to render the second data set to be displayed to obtain the display page.

結合本揭露任一實施方式,所述第一待顯示資料集包括第一模組資料集; 所述獲取單元,還配置為在所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集之前,獲取第二模組資料集;所述第二模組資料集的資料格式與所述第一模組資料集的資料格式相同,且所述第二模組資料集的目錄結構與所述第一模組資料集的目錄結構相同; 所述裝置還包括:添加單元,配置為將所述第二模組資料集添加至所述第一待顯示資料集,得到第三待顯示資料集; 所述編譯單元,配置為透過編譯所述第三待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,建立所述第二模組資料集與所述第一模組資料集之間的依賴關係,得到所述第二待顯示資料集。With reference to any embodiment of the present disclosure, the first data set to be displayed includes a first module data set; The acquiring unit is further configured to, 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 the second data set to be displayed, Obtain a second module data set; the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as that of the first module data set The directory structure of the mod dataset is the same; The device further includes: an adding unit configured to add the second module data set to the first to-be-displayed data set to obtain a third to-be-displayed data set; The compiling unit is configured to create the second module data set and the converted data set by compiling data in the third to-be-displayed data set other than the first to-be-converted data set and the converted data set The dependencies between the first module data sets are obtained to obtain the second to-be-displayed data set.

結合本揭露任一實施方式,所述第一待顯示資料集包括第三模組資料集和第四模組資料集;所述第三模組資料集的資料格式與所述第四模組資料集的資料格式相同,且所述第三模組資料集的目錄結構與所述第四模組資料集的目錄結構相同; 所述裝置還包括:刪除單元,配置為在所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集之前,在接收到刪除所述第三模組資料集的指令的情況下,從所述第一待顯示資料集中刪除所述第三模組資料集,得到第四待顯示資料集; 所述編譯單元,配置為透過編譯所述第四待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,刪除所述第三模組資料集與所述第四模組資料集之間的依賴關係,得到所述第二待顯示資料集。With reference to any implementation manner of the present disclosure, the first data set to be displayed includes a third module data set and a fourth module data set; the data format of the third module data set is the same as that of the fourth module data set The data format of the set is the same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set; The apparatus further includes: a deletion unit configured to obtain a second data to be displayed by compiling data in the first data set to be displayed except the first data set to be converted and the converted data set Before the collection, in the case of receiving an instruction to delete the third module data set, delete the third module data set from the first to-be-displayed data set to obtain a fourth to-be-displayed data set; The compilation unit is configured to delete the third module data set and the The dependencies between the data sets of the fourth module are obtained to obtain the second to-be-displayed data set.

結合本揭露任一實施方式,所述第一顯示單元,還配置為在所述編譯資訊包括編譯過程中出現的錯誤的情況下,對所述編譯過程中出現的第一錯誤進行翻譯,得到第二錯誤;顯示所述第二錯誤。With reference to any embodiment of the present disclosure, the first display unit is further configured to translate the first error that occurs during the compiling process when the compiling information includes an error that occurs during the compiling process to obtain the first error that occurs during the compiling process. Second error; display the second error.

結合本揭露任一實施方式,所述裝置還包括:第二顯示單元,配置為在接收到針對所述第一待顯示資料集的預覽指令的情況下,顯示所述第一待顯示資料集所指示的內容。With reference to any embodiment of the present disclosure, the apparatus further includes: a second display unit, configured to display all the data sets in the first data set to be displayed when a preview instruction for the first data set to be displayed is received. indicated content.

結合本揭露任一實施方式,所述第一待顯示資料集包括以下至少一個:檢索模組、布控模組、檔案模組、技戰法模組;所述檢索模組用於依據檢索條件對資料庫中的資料進行檢索;所述布控模組用於顯示獲取到的影片串流和/或圖像;所述檔案模組用於儲存人物資訊和/或車輛資訊;所述技戰法模組,用於展示至少一種第一圖偵技戰法,以及接收用戶從所述至少一種第一圖偵技戰法中選擇的至少一種第二圖偵技戰法。With reference to any embodiment of the present disclosure, the first data set to be displayed includes at least one of the following: a retrieval module, a deployment control module, a file module, and a technique and tactics module; the retrieval module is used to The data in the database is retrieved; the deployment control module is used to display the obtained video stream and/or image; the file module is used to store character information and/or vehicle information; The group is used to display at least one first image scout technique and tactics, and to receive at least one second image scout technique and tactics selected by the user from the at least one first image scout technique and tactics.

本揭露實施例透過從第一待轉換資料集中截取出內容部分所包含的字串,得到第二待轉換字串。對第二待轉換字串進行轉換處理,可在得到資料類型為第一類型的轉換資料集的同時,提高轉換準確度。The embodiment of the present disclosure obtains the second to-be-converted character string by extracting the character string included in the content part from the first to-be-converted data set. Converting the second character string to be converted can improve the conversion accuracy while obtaining the conversion data set whose data type is the first type.

在一些實施例中,本揭露實施例提供的裝置具有的功能或包含的模組可以用於執行上文方法實施例描述的方法,其具體實現可以參照上文方法實施例的描述,為了簡潔,這裡不再贅述。In some embodiments, the functions or modules included in the apparatus provided in the embodiments of the present disclosure may be used to execute the methods described in the above method embodiments. For specific implementation, reference may be made to the above method embodiments. For brevity, I won't go into details here.

第4圖為本揭露實施例提供的一種電子設備的硬體結構示意圖。該電子設備2包括處理器21、記憶體22、輸入裝置23和輸出裝置24。該處理器21、記憶體22、輸入裝置23和輸出裝置24透過連接器相耦合,該連接器包括各類介面、傳輸線或匯流排等等,本揭露實施例對此不作限定。應當理解,本揭露的各個實施例中,耦合是指透過特定方式的相互聯繫,包括直接相連或者透過其他設備間接相連,例如可以透過各類介面、傳輸線、匯流排等相連。FIG. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure. The electronic device 2 includes a processor 21 , a memory 22 , an input device 23 and an output device 24 . The processor 21 , the memory 22 , the input device 23 and the output device 24 are coupled through a connector, and the connector includes various interfaces, transmission lines or bus bars, etc., which are not limited in the embodiments of the present disclosure. It should be understood that, in the various embodiments of the present disclosure, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, such as various interfaces, transmission lines, bus bars, and the like.

處理器可以包括是一個或多個處理器,例如包括一個或多個中央處理器(Central Processing Unit,CPU),在處理器是一個CPU的情況下,該CPU可以是單核CPU,也可以是多核CPU。可選的,處理器21可以是多個GPU構成的處理器組,多個處理器之間透過一個或多個匯流排彼此耦合。可選的,該處理器還可以為其他類型的處理器等等,本揭露實施例不作限定。The processor may include one or more processors, such as one or more central processing units (Central Processing Units, CPUs). In the case where the processor is a CPU, the CPU may be a single-core CPU or a Multi-core CPU. Optionally, the processor 21 may be a processor group composed of multiple GPUs, and the multiple processors are coupled to each other through one or more bus bars. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present disclosure.

記憶體22可用於儲存電腦程式指令,以及用於執行本揭露方案的程式碼在內的各類電腦程式代碼。可選地,記憶體包括但不限於是隨機儲存記憶體(Random Access Memory,RAM)、唯讀記憶體(Read-Only Memory,ROM)、可擦除可程式設計唯讀記憶體(Erasable Programmable Read Only Memory,EPROM)、或可攜式唯讀記憶體(Compact Disc Read-Only Memory,CD-ROM),該記憶體用於相關指令及資料。The memory 22 can be used to store computer program instructions, and various types of computer program codes including the code for executing the disclosed solution. Optionally, the memory includes but is not limited to random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), erasable programmable read-only memory (Erasable Programmable Read-only memory) Only Memory, EPROM), or portable read-only memory (Compact Disc Read-Only Memory, CD-ROM), the memory is used for related instructions and data.

輸入裝置23用於輸入資料和/或訊號,以及輸出裝置24用於輸出資料和/或訊號。輸入裝置23和輸出裝置24可以是獨立的器件,也可以是一個整體的器件。The input device 23 is used for inputting data and/or signals, and the output device 24 is used for outputting data and/or signals. The input device 23 and the output device 24 may be independent devices or may be an integral device.

可理解,本揭露實施例中,記憶體22不僅可用於儲存相關指令,還可用於儲存相關資料,如該記憶體22可用於儲存透過輸入裝置23獲取的第一待顯示資料集,又或者該記憶體22還可用於儲存透過處理器21得到的已轉換資料集等等,本揭露實施例對於該記憶體中具體所儲存的資料不作限定。It can be understood that, in the embodiment of the present disclosure, the memory 22 can not only be used to store related instructions, but also can be used to store related data. For example, the memory 22 can be used to store the first to-be-displayed data set acquired through the input device 23 , or the The memory 22 can also be used to store the converted data set obtained through the processor 21 and the like, and the embodiment of the present disclosure does not limit the specific data stored in the memory.

可以理解的是,第4圖僅僅示出了一種資料處理裝置的簡化設計。在實際應用中,資料處理裝置還可以分別包含必要的其他元件,包含但不限於任意數量的輸入/輸出裝置、處理器、記憶體等,而所有可以實現本揭露實施例的資料處理裝置都在本揭露的保護範圍之內。It can be understood that FIG. 4 only shows a simplified design of a data processing device. In practical applications, the data processing device may also include other necessary components, including but not limited to any number of input/output devices, processors, memories, etc., and all data processing devices that can implement the embodiments of the present disclosure are in within the scope of protection of this disclosure.

本實施例中,記憶體用於儲存電腦程式代碼,電腦程式代碼包括電腦指令,在處理器執行所述電腦指令的情況下,電子設備解析本揭露實施例上述可能實現的方式的方法。In this embodiment, the memory is used to store computer program codes, and the computer program codes include computer instructions. When the processor executes the computer instructions, the electronic device parses the methods of the above possible implementations in the disclosed embodiment.

本揭露實施例還提供了一種處理器,所述處理器用於解析本揭露實施例上述可能實現的方式的方法。The embodiment of the present disclosure further provides a processor, where the processor is configured to parse the method of the above-mentioned possible implementation manner of the embodiment of the present disclosure.

本揭露實施例還提供了一種電腦可讀儲存媒體,所述電腦可讀儲存媒體中儲存有電腦程式,所述電腦程式包括程式指令,在所述程式指令被處理器執行的情況下,使所述處理器解析本揭露實施例上述可能實現的方式的方法。An embodiment of the present disclosure also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program includes program instructions, and when the program instructions are executed by a processor, all The processor parses the above-mentioned possible implementation methods of the embodiments of the present disclosure.

本揭露實施例還提供了一種電腦程式產品,所述電腦程式產品包括電腦程式或指令,在所述電腦程式或指令在電腦上解析的情況下,使得所述電腦解析本揭露實施例上述可能實現的方式的方法。An embodiment of the present disclosure also provides a computer program product, the computer program product includes a computer program or an instruction, and when the computer program or instruction is parsed on a computer, the computer parses the above-mentioned possible implementation of the disclosed embodiment. way of way.

本領域普通技術人員可以意識到,結合本文中所揭露的實施例描述的各示例的單元及演算法步驟,能夠以電子硬體、或者電腦軟體和電子硬體的結合來實現。這些功能究竟以硬體還是軟體方式來執行,取決於技術方案的特定應用和設計約束條件。專業技術人員可以對每個特定的應用來使用不同方法來實現所描述的功能,但是這種實現不應認為超出本揭露的範圍。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present disclosure.

所屬領域的技術人員可以清楚地瞭解到,為描述的方便和簡潔,上述描述的系統、裝置和單元的具體工作過程,可以參考前述方法實施例中的對應過程,在此不再贅述。所屬領域的技術人員還可以清楚地瞭解到,本揭露各個實施例描述各有側重,為描述的方便和簡潔,相同或類似的部分在不同實施例中可能沒有贅述,因此,在某一實施例未描述或未詳細描述的部分可以參見其他實施例的記載。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here. Those skilled in the art can also clearly understand that the description of each embodiment of the present disclosure has its own emphasis. For the convenience and brevity of the description, the same or similar parts may not be repeated in different embodiments. Therefore, in a certain embodiment For the parts that are not described or not described in detail, reference may be made to the descriptions of other embodiments.

在本揭露所提供的幾個實施例中,應該理解到,所揭露的系統、裝置和方法,可以透過其它的方式實現。例如,以上所描述的裝置實施例僅僅是示意性的,例如,所述單元的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式,例如多個單元或元件可以結合或者可以集成到另一個系統,或一些特徵可以忽略,或不執行。另一點,所顯示或討論的相互之間的耦合或直接耦合或通訊連接可以是透過一些介面,裝置或單元的間接耦合或通訊連接,可以是電性,機械或其它的形式。In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or elements may be combined or may be Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be electrical, mechanical or other forms.

所述作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部單元來實現本實施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本揭露各個實施例中的各功能單元可以集成在一個處理單元中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元集成在一個單元中。In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

在上述實施例中,可以全部或部分地透過軟體、硬體、韌體或者其任意組合來實現。當使用軟體實現時,可以全部或部分地以電腦程式產品的形式實現。所述電腦程式產品包括一個或多個電腦指令。在電腦上載入和執行所述電腦程式指令時,全部或部分地產生按照本揭露實施例所述的流程或功能。所述電腦可以是通用電腦、專用電腦、電腦網路、或者其他可程式設計裝置。所述電腦指令可以儲存在電腦可讀儲存媒體中,或者透過所述電腦可讀儲存媒體進行傳輸。所述電腦指令可以從一個網站、電腦、伺服器或資料中心透過有線(例如同軸電纜、光纖、數位用戶線路(Digital Subscriber Line,DSL))或無線(例如紅外、無線、微波等)方式向另一個網站、電腦、伺服器或資料中心進行傳輸。所述電腦可讀儲存媒體可以是電腦能夠存取的任何可用媒體或者是包含一個或多個可用媒體集成的伺服器、資料中心等資料存放裝置。所述可用媒體可以是磁性媒體,(例如,軟碟、硬碟、磁帶)、光媒體(例如,數位通用光碟(Digital Versatile Disc,DVD))、或者半導體媒體(例如固態硬碟(Solid State Disk,SSD))等。In the above embodiments, it may be implemented in whole or in part through software, hardware, firmware or any combination thereof. When implemented in software, it can 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 the computer program instructions are loaded and executed on the computer, all or part of the processes or functions described in the embodiments of the present disclosure are generated. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions can be sent from one website, computer, server or data center to another via wired (eg coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (eg infrared, wireless, microwave, etc.) A website, computer, server or data center for transmission. The computer-readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, a data center, etc., which is integrated with one or more available media. The available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, Digital Versatile Discs (DVDs)), or semiconductor media (eg, Solid State Disks). , SSD)) etc.

本領域普通技術人員可以理解實現上述實施例方法中的全部或部分流程,該流程可以由電腦程式來指令相關的硬體完成,該程式可儲存於電腦可讀取儲存媒體中,該程式在執行時,可包括如上述各方法實施例的流程。而前述的儲存媒體包括:ROM或RAM、磁碟或者光碟等各種可儲存程式碼的媒體。Those of ordinary skill in the art can understand that to realize all or part of the process in the method of the above-mentioned embodiments, the process can be completed by instructing the relevant hardware by a computer program, and the program can be stored in a computer-readable storage medium, and the program can be executed when the program is executed. , the process of each method embodiment described above may be included. The aforementioned storage medium includes: ROM or RAM, magnetic disk or optical disk and other mediums that can store program codes.

101~103:步驟 1:資料處理裝置 11:獲取單元 12:截取單元 13:轉換單元 2:電子設備 21:處理器 22:記憶體 23:輸入裝置 24:輸出裝置101~103: Steps 1: Data processing device 11: Get Unit 12: Intercept unit 13: Conversion unit 2: Electronic equipment 21: Processor 22: Memory 23: Input device 24: Output device

為了更清楚地說明本揭露實施例或背景技術中的技術方案,下面將對本揭露實施例或背景技術中所需要使用的附圖進行說明。 此處的附圖被併入說明書中並構成本說明書的一部分,這些附圖示出了符合本揭露的實施例,並與說明書一起用於說明本揭露的技術方案。 第1圖為本揭露實施例提供的一種資料處理方法的流程示意圖; 第2圖為本揭露實施例提供的一種前端框架的架構圖; 第3圖為本揭露實施例提供的一種資料處理裝置的結構示意圖; 第4圖為本揭露實施例提供的一種電子設備的硬體結構示意圖。In order to more clearly describe the technical solutions in the embodiments of the present disclosure or the background technology, the accompanying drawings required in the embodiments of the present disclosure or the background technology will be described below. The accompanying drawings, which are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the technical solutions of the present disclosure. FIG. 1 is a schematic flowchart of a data processing method according to an embodiment of the present disclosure; FIG. 2 is an architectural diagram of a front-end framework provided by an embodiment of the present disclosure; FIG. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure; FIG. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.

101~103:步驟101~103: Steps

Claims (12)

一種資料處理方法,所述方法包括: 獲取第一待顯示資料集;所述第一待顯示資料集包括第一待轉換資料集;所述第一待轉換資料集的開頭為第一字串,所述第一待轉換資料集的結尾為第二字串; 從所述第一待轉換資料集中截取所述位於所述第一字串與所述第二字串之間的字串,得到第二待轉換資料集;以及 對所述第二待轉換資料集進行轉換處理,得到資料類型為第一類型的已轉換資料集;所述第一類型為瀏覽器可解析的資料類型。A data processing method, the method comprising: Obtain a first data set to be displayed; the first data set to be displayed includes a first data set to be converted; the beginning of the first data set to be converted is a first character string, and the end of the first data set to be converted is the second string; Intercept 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; and Converting the second to-be-converted data set is performed to obtain a converted data set whose data type is a first type; the first type is a data type that can be parsed by a browser. 根據請求項1所述的方法,其中,所述第一待轉換資料集包括轉換目錄下的資料和/或第三待轉換資料集;所述第三待轉換資料集為所述第一待顯示資料集中以第三字串結尾的資料;所述轉換目錄屬於所述第一待顯示資料集。The method according to claim 1, wherein 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 the first data set to be displayed The data in the data set ending with the third character string; the conversion directory belongs to the first data set to be displayed. 根據請求項1或2所述的方法,其中,所述方法還包括: 使用所述瀏覽器渲染所述已轉換資料集和所述第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到顯示頁面。The method according to claim 1 or 2, wherein the method further comprises: Using the browser to render the converted data set and the data in the first to-be-displayed data set except the first to-be-converted data set to obtain a display page. 根據請求項3所述的方法,其中,在所述使用所述瀏覽器渲染所述已轉換資料集和所述第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到顯示頁面之前,所述方法還包括: 編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集;以及 顯示所述編譯的編譯資訊;所述編譯資訊包括以下至少一種:編譯狀態、編譯進度、編譯過程中出現的錯誤; 所述使用所述瀏覽器渲染所述已轉換資料集和所述第一待顯示資料集中除所述第一待轉換資料集之外的資料,得到顯示頁面,包括: 使用所述瀏覽器渲染所述第二待顯示資料集,得到所述顯示頁面。The method according to claim 3, wherein in the rendering of the converted data set and the first to-be-displayed data set except for the first to-be-converted data set by using the browser, obtain Before displaying the 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; and Displaying the compilation information of the compilation; the compilation information includes at least one of the following: compilation status, compilation progress, and errors occurred in the compilation process; The rendering of the converted data set and the data in the first to-be-displayed data set except the first to-be-converted data set by using the browser to obtain a display page includes: Using the browser to render the second data set to be displayed, to obtain the display page. 根據請求項4所述的方法,其中,所述第一待顯示資料集包括第一模組資料集; 在所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集之前,所述方法還包括: 獲取第二模組資料集;所述第二模組資料集的資料格式與所述第一模組資料集的資料格式相同,且所述第二模組資料集的目錄結構與所述第一模組資料集的目錄結構相同;以及 將所述第二模組資料集添加至所述第一待顯示資料集,得到第三待顯示資料集; 所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集,包括: 透過編譯所述第三待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,建立所述第二模組資料集與所述第一模組資料集之間的依賴關係,得到所述第二待顯示資料集。The method according to claim 4, wherein the first data set to be displayed includes a first 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 method further includes: Obtain a second module data set; the data format of the second module data set is the same as the data format of the first module data set, and the directory structure of the second module data set is the same as that of the first module data set Mod datasets have the same directory structure; and adding the second module data set to the first to-be-displayed data set to obtain a third to-be-displayed data set; The compiling of 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, including: By compiling data in the third to-be-displayed data set other than the first to-be-converted data set and the converted data set, a relationship between the second module data set and the first module data set is established The dependency relationship between them is obtained, and the second data set to be displayed is obtained. 根據請求項4所述的方法,其中,所述第一待顯示資料集包括第三模組資料集和第四模組資料集;所述第三模組資料集的資料格式與所述第四模組資料集的資料格式相同,且所述第三模組資料集的目錄結構與所述第四模組資料集的目錄結構相同; 在所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集之前,所述方法還包括: 在接收到刪除所述第三模組資料集的指令的情況下,從所述第一待顯示資料集中刪除所述第三模組資料集,得到第四待顯示資料集; 所述編譯所述第一待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,得到第二待顯示資料集,包括: 透過編譯所述第四待顯示資料集中除所述第一待轉換資料集之外的資料和所述已轉換資料集,刪除所述第三模組資料集與所述第四模組資料集之間的依賴關係,得到所述第二待顯示資料集。The method according to claim 4, wherein the first data set to be displayed includes a third module data set and a fourth module data set; the data format of the third module data set is the same as that of the fourth module data set The data format of the module data set is the same, and the directory structure of the third module data set is the same as the directory structure of the fourth module data set; Before compiling data in the first data set to be displayed except the first data set to be converted and the converted data set to obtain a second data set to be displayed, the method further includes: In the case of receiving an instruction to delete the third module data set, delete the third module data set from the first to-be-displayed data set to obtain a fourth to-be-displayed data set; The compiling of 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, including: Deleting the third module data set and the fourth module data set by compiling data in the fourth to-be-displayed data set other than the first to-be-converted data set and the converted data set The dependency relationship between them is obtained, and the second data set to be displayed is obtained. 根據請求項4至6中任意一項所述的方法,其中,所述方法還包括: 在所述編譯資訊包括編譯過程中出現的錯誤的情況下,對所述編譯過程中出現的第一錯誤進行翻譯,得到第二錯誤;以及 顯示所述第二錯誤。The method according to any one of claim 4 to 6, wherein the method further comprises: In the case that the compilation information includes an error occurred in the compilation process, translating the first error occurred in the compilation process to obtain a second error; and The second error is displayed. 根據請求項1或2所述的方法,其中,所述方法還包括: 在接收到針對所述第一待顯示資料集的預覽指令的情況下,顯示所述第一待顯示資料集所指示的內容。The method according to claim 1 or 2, wherein the method further comprises: When a preview instruction for the first data set to be displayed is received, the content indicated by the first data set to be displayed is displayed. 根據請求項1或2所述的方法,其中,所述第一待顯示資料集包括以下至少一個:檢索模組、布控模組、檔案模組、技戰法模組;所述檢索模組用於依據檢索條件對資料庫中的資料進行檢索;所述布控模組用於顯示獲取到的影片串流和/或圖像;所述檔案模組用於儲存人物資訊和/或車輛資訊;所述技戰法模組,用於展示至少一種第一圖偵技戰法,以及接收用戶從所述至少一種第一圖偵技戰法中選擇的至少一種第二圖偵技戰法。The method according to claim 1 or 2, wherein the first data set to be displayed includes at least one of the following: a retrieval module, a control module, a file module, and a technique and tactics module; The data in the database is retrieved according to the retrieval conditions; the deployment control module is used to display the obtained video stream and/or image; the file module is used to store character information and/or vehicle information; The technique and tactics module is used to display at least one first image detection technique and tactics, and receive at least one second image detection technique and tactics selected by the user from the at least one first image detection technique and tactics. 一種處理器,所述處理器用於解析如請求項1至9中任意一項所述的方法。A processor for parsing the method described in any one of claim items 1 to 9. 一種電子設備,包括:處理器和記憶體,所述記憶體用於儲存電腦程式代碼,所述電腦程式代碼包括電腦指令,在所述處理器執行所述電腦指令的情況下,所述電子設備解析如請求項1至9中任一項所述的方法。An electronic device, comprising: a processor and a memory, the memory is used to store computer program code, the computer program code includes computer instructions, when the processor executes the computer instructions, the electronic device Parse the method of any of claims 1 to 9. 一種電腦可讀儲存媒體,所述電腦可讀儲存媒體中儲存有電腦程式,所述電腦程式包括程式指令,在所述程式指令被處理器執行的情況下,使所述處理器解析請求項1至9中任意一項所述的方法。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is made to parse the request item 1 The method of any one of to 9.
TW109145471A 2020-05-19 2020-12-22 Data segmentation method processor electronic equipment and computer readable storage medium TWI769632B (en)

Applications Claiming Priority (2)

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

Publications (2)

Publication Number Publication Date
TW202144996A true TW202144996A (en) 2021-12-01
TWI769632B TWI769632B (en) 2022-07-01

Family

ID=71868619

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109145471A TWI769632B (en) 2020-05-19 2020-12-22 Data segmentation method processor electronic equipment and computer readable 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

Family Cites Families (12)

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

Also Published As

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

Similar Documents

Publication Publication Date Title
TWI769632B (en) Data segmentation method processor electronic equipment and computer readable storage medium
KR100265548B1 (en) Automatic translating method and machine
US20080300859A1 (en) System and Method for Automatic Natural Language Translation of Embedded Text Regions in Images During Information Transfer
CN111736840A (en) Compiling method and running method of applet, storage medium and electronic equipment
US10162605B2 (en) Code snippet content recommendation to define an object literal
CN104346153A (en) Method and system for translating text information of application programs
US20120072885A1 (en) Integrating user interface components
US20180024848A1 (en) Translatable Texts Identification in In-Context Localization Utilizing Pseudo-Language and an External Server
RU2595524C2 (en) Device and method for processing content of web resource in browser
US9817811B2 (en) Web server system, dictionary system, dictionary call method, screen control display method, and demonstration application generation method
CN113704590B (en) Webpage data acquisition method and device, electronic equipment and storage medium
JP2023541186A (en) Visualization page rendering method, device, equipment and storage medium
CN110688145B (en) Android MVP code automatic generation method and device, medium and electronic equipment
CN111078228A (en) Method and device for converting webpage into small program, server and storage medium
CN111783401B (en) Character string processing method and device, computer storage medium and electronic equipment
CN114153459A (en) Interface document generation method and device
CN113778897A (en) Automatic test method, device, equipment and storage medium of interface
CN110377371B (en) Style sheet system management method based on Web tag
CN118245050B (en) Front end frame assembly automatic conversion method, system, electronic device and storage medium
CN110334302B (en) Complex Web application front-end runtime analysis method
US20040205587A1 (en) System and method for enumerating arbitrary hyperlinked structures in which links may be dynamically calculable
CN109408057B (en) Method, device, medium and computing equipment for automatically generating codes
CN111767498A (en) Method and device for realizing file information sharing
US11250084B2 (en) Method and system for generating content from search results rendered by a search engine
CN114077575B (en) Format conversion method, equipment and system for memory snapshot file