WO2021135598A1 - 基于索引和值引更新前端页面的方法、装置、计算机设备 - Google Patents

基于索引和值引更新前端页面的方法、装置、计算机设备 Download PDF

Info

Publication number
WO2021135598A1
WO2021135598A1 PCT/CN2020/125063 CN2020125063W WO2021135598A1 WO 2021135598 A1 WO2021135598 A1 WO 2021135598A1 CN 2020125063 W CN2020125063 W CN 2020125063W WO 2021135598 A1 WO2021135598 A1 WO 2021135598A1
Authority
WO
WIPO (PCT)
Prior art keywords
end page
data
update
update request
dimensional code
Prior art date
Application number
PCT/CN2020/125063
Other languages
English (en)
French (fr)
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 WO2021135598A1 publication Critical patent/WO2021135598A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • This application belongs to the technical field of data updating, and in particular relates to a method, device, and computer equipment for updating front-end pages based on indexes and value references.
  • the data in the front-end page needs to be updated due to the changes in the back-end data to make the front-end page consistent with the back-end.
  • the front-end page can be updated by value reference or the index can be used.
  • the embodiments of the present application provide a method, device, and computer equipment for updating front-end pages based on indexes and value references, aiming to solve the problem in the prior art that value references and indexes cannot be combined to update front-end pages.
  • an embodiment of the present application provides a method for updating a front-end page based on an index and a value citation, which includes:
  • the type of the update request is to update multiple data in the front-end page, obtain a pre-made data table according to the front-end page, where the data table is in an index relationship with the front-end page;
  • If the type of the update request is to update a single data in the front-end page, obtain a preset template file according to the front-end page;
  • an embodiment of the present application provides an apparatus for updating front-end pages based on index and value citation, which includes:
  • the front-end page obtaining unit is configured to obtain the front-end page according to the update request if an update request to update the front-end page is received;
  • a judging unit configured to judge the type of the update request according to a preset judgment rule
  • the data table obtaining unit is configured to, if the type of the update request is to update a plurality of data in the front-end page, obtain a pre-made data table according to the front-end page, wherein the data table and the front-end page are the same Index relationship
  • the first update unit is configured to update the front-end page in an index manner according to the update request and the data table;
  • a template file obtaining unit configured to obtain a preset template file according to the front-end page if the type of the update request is to update a single data in the front-end page;
  • the second update unit is configured to modify the template file by value reference according to the update request to update the front-end page.
  • an embodiment of the present application further provides a computer device, including a memory, a processor, and a computer program stored on the memory and running on the processor, wherein the processor executes the Perform the following steps in the computer program:
  • the type of the update request is to update multiple data in the front-end page, obtain a pre-made data table according to the front-end page, where the data table is in an index relationship with the front-end page;
  • If the type of the update request is to update a single data in the front-end page, obtain a preset template file according to the front-end page;
  • the embodiments of the present application also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the following steps :
  • the type of the update request is to update multiple data in the front-end page, obtain a pre-made data table according to the front-end page, where the data table is in an index relationship with the front-end page;
  • If the type of the update request is to update a single data in the front-end page, obtain a preset template file according to the front-end page;
  • this application combines the advantages of value citation and index to update the front-end page, which solves the problem in the prior art that the value reference and index cannot be combined to update the front-end page, which greatly improves Update the efficiency of the front-end page.
  • FIG. 1 is a schematic flowchart of a method for updating a front-end page based on index and value citation provided by an embodiment of the application;
  • FIG. 2 is a schematic diagram of an application scenario of a method for updating a front-end page based on an index and a value reference provided by an embodiment of the application;
  • FIG. 3 is a schematic diagram of a sub-process of the method for updating front-end pages based on index and value reference provided by an embodiment of the application;
  • FIG. 4 is a schematic diagram of another sub-flow of the method for updating front-end pages based on index and value reference provided by an embodiment of the application;
  • FIG. 5 is a schematic diagram of another sub-flow of the method for updating front-end pages based on index and value reference provided by an embodiment of the application;
  • FIG. 6 is a schematic block diagram of an apparatus for updating front-end pages based on index and value reference provided by an embodiment of the application;
  • FIG. 7 is a schematic block diagram of sub-units of the device for updating front-end pages based on index and value reference provided by an embodiment of the application;
  • FIG. 8 is a schematic block diagram of another sub-unit of the apparatus for updating front-end pages based on index and value reference provided by an embodiment of the application;
  • FIG. 9 is a schematic block diagram of another sub-unit of the device for updating front-end pages based on index and value reference provided by an embodiment of the application;
  • FIG. 10 is a schematic block diagram of another sub-unit of the device for updating front-end pages based on index and value reference provided by an embodiment of the application;
  • FIG. 11 is a schematic block diagram of a computer device provided by an embodiment of the application.
  • Figure 1 is a schematic flow diagram of a method for updating a front-end page based on index and value citation provided by an embodiment of this application
  • Figure 2 is a method for updating a front-end page based on index and value citation provided by an embodiment of the application
  • Schematic diagram of the application scenario The method for updating the front-end page based on index and value is applied to the terminal 10.
  • the front-end page can be displayed in the terminal 10 in the form of a page.
  • the terminal 10 receives an update request from the updated data content in the preset front-end page, the terminal 10 Acquire the front-end page from the server 20 according to the update request.
  • the front-end page is stored in the server 10.
  • the terminal 10 can be a terminal device with a display page function, such as a mobile phone, a computer, or a notebook.
  • the server 20 is capable of communicating data with the terminal 10. Transmission and reception function equipment.
  • the method includes steps S110 to S160.
  • the front-end page is acquired according to the update request.
  • the update request may be an update request sent by the server to the terminal to modify a specific front-end page stored in the server, or it may be an update request sent by the server to the terminal when the user needs to modify a specific front-end web page stored in the server.
  • the update request includes the IP address of the front-end page stored in the server. After obtaining the IP address from the update request, the terminal can obtain the front-end page corresponding to the IP address from the server.
  • S120 Determine the type of the update request according to a preset judgment rule.
  • the judgment rule is rule information for the terminal to identify and judge according to whether the data in the front-end page needs to be updated in batches in the update request.
  • the judgment can be made by judging the number of data in the front-end page to be updated. The type of update to the front-end page.
  • the terminal determines that the type of the update request is the type that modifies the bulk data in the front-end page, and when the When the type of the update request is to update the non-batch data in the front-end page, the terminal determines that the type of the update request is a request type for modifying the non-batch data in the front-end page.
  • the data table is a data table indicating the correspondence between logical records and physical records, and each index item in the data table that has an index relationship with the front-end page is arranged in order of keys (or logical record numbers)
  • the terminal obtains the front-end page, the data table can be obtained through the front-end page.
  • the data table may be pre-stored in the terminal, or pre-stored in the server, or pre-stored in the
  • the front-end page is stored in the server along with the front-end page so that when the terminal obtains the front-end page, the data table is transmitted to the terminal along with the front-end page.
  • step S130 includes S131 and S132.
  • the front-end page to obtain a pre-made two-dimensional code in the front-end page.
  • the front-end page is provided with a picture of the two-dimensional code
  • the terminal has the function of scanning and recognizing the two-dimensional code picture, and when the type of the update request is to replace the batch data in the front-end page
  • the terminal enables the scan recognition function to perform a full-screen scan on the front-end page to recognize the QR code image set in the front-end page.
  • the terminal may be capable of recognizing the two-dimensional code in the front-end page. Mobile phones, tablets, computers and other devices with dimensional code function.
  • S131a is further included before step S110.
  • S131a Obtain data for generating the two-dimensional code from a preset database, generate the two-dimensional code according to the data, and set the two-dimensional code on the front-end page.
  • the terminal may also be used to generate the page front-end, the database is stored in the server, and the terminal obtains the page front-end from the database and generates the page front-end according to the The data generates the two-dimensional code, and after the terminal generates the two-dimensional code, the two-dimensional code is set in the front-end page in the form of a picture, so that when the content in the front-end page needs to be updated later , You only need to scan the two-dimensional code to update the front-end page.
  • the generation of the two-dimensional code according to the data in step S131a includes: S131a1, S131a2, and S131a3.
  • the data is marked according to a preset marking rule to generate marking data.
  • the labeling rule is used for labeling the data to generate labeling data, so that the content in the front-end page can be accurately modified by modifying the labeling data in the subsequent process.
  • the corresponding data in the front-end page is labeled according to its different attributes in the front-end page, for example, the data corresponding to the attribute name in the front-end page can be marked as a label with the attribute name ,
  • the data corresponding to the verbal content in the front-end page can be marked as a label with the verbal content.
  • UUID is the abbreviation of Universally Unique Identifier, which is a unique machine-generated identifier within a certain range (from a specific name space to the world).
  • the label data can be generated according to the label in the label data in the process of generating the UUID type identifier. For example, when the label data can be generated in the form of data table name-data ID-data field When displaying, combine the data table name, data ID, and data field to obtain a unique UUID type identifier.
  • the two-dimensional code is generated according to the UUID type identifier and the two-dimensional code is set in the front-end page. Specifically, the UUID type identifier is written into the two-dimensional code generator to generate the two-dimensional code. After the two-dimensional code is generated, the two-dimensional code can be set in the form of a picture. The front-end page.
  • the two-dimensional code is a pattern formed by combining data with black and white small squares (binary), the two-dimensional code generator is used to generate the two-dimensional code, and the two-dimensional code generator is in the production process You need a QR code generation algorithm, or a QR code plug-in, and then use JAVA, C#, VB and other programming languages to write a calling software to make a QR code generator.
  • Parse the two-dimensional code to obtain the data table Specifically, after the terminal scans and recognizes the two-dimensional code in the front-end page, it can obtain a two-dimensional code picture composed of black and white small squares from the two-dimensional code, and then parse the picture to obtain all Describe the data sheet.
  • the data table is stored in the front-end page in the form of a QR code, so that in the process of updating the front-end page, only after obtaining the front-end page, the second page is obtained from the front-end page.
  • the dimension code is stored in the data table in the front-end page, so that the data table can be used smoothly in the process of updating the front-end page and the front-end page can be updated in an index manner.
  • step S132 includes S1321 and S1322.
  • Parse the two-dimensional code to obtain the UUID type identifier Parse the two-dimensional code to obtain the UUID type identifier.
  • the two-dimensional code stores the data information for generating the content in the front-end page, and the data information related to the front-end page is obtained by parsing the two-dimensional code.
  • the data information Is an identifier of the UUID type.
  • a two-dimensional code decoder may be used to decode the two-dimensional code, so as to obtain the UUID type identifier.
  • the data table is generated according to the UUID type identifier. Specifically, after the terminal parses the two-dimensional code to obtain the UUID type identifier, it creates a data table that has an index relationship with the data in the front-end page according to the UUID type identifier. When the data field at a specific location in the front-end page is described, the data field in the front-end page can be obtained by querying the data table so as to replace the data in the front-end page, and then update the front-end page.
  • the UUID type identifier in step S1322 exists in the data table in a serialized form.
  • the UUID type identifier exists in the data table in a serialized form. Specifically, the UUID type identifier exists in the data table in the form of a json string, and the UUID type identifier is the data information of the content in the front-end page. The UUID type identifier can obtain data corresponding to the directory from the front-end page.
  • the front-end page is updated in an index manner according to the update request and the data table.
  • the update request includes data fields for updating multiple data in the front-end page and The ID corresponding to the data field.
  • the terminal can find the directory corresponding to the ID in the data table through the ID.
  • the ID of the data field is the same as the ID of the data field corresponding to the data field. ID. Since the data table has an index relationship with the data fields in the front-end page, after the terminal obtains the data field corresponding to the catalog from the front-end page, the terminal uses the data field in the update request to replace it, Thereby, the front-end page is updated.
  • the template file is a modification template set for modifying the data in the front-end page.
  • the front-end page corresponding to the template file is stored in the template file. After saving, it can be automatically updated to correspond to the template file.
  • Each data in the template file has a one-to-one correspondence with each data in the front-end page, and the modified data in the template file is transferred to the front-end page by value reference, so that all data in the front-end page can be updated. Describe the front-end page.
  • the update request includes a single data for updating a single data in the front-end page and the The ID of a single data
  • the terminal replaces the single data at that ID in the template file with the single data in the update request according to the ID of the single data, and the template can be updated after the replacement is completed according to the way of value reference.
  • the front-end page when the type of the update request is a request type for updating a single data in the front-end page, the update request includes a single data for updating a single data in the front-end page and the The ID of a single data, the terminal replaces the single data at that ID in the template file with the single data in the update request according to the ID of the single data, and the template can be updated after the replacement is completed according to the way of value reference.
  • FIG. 6 is a schematic block diagram of an apparatus 100 for updating a front-end page based on an index and a value reference according to an embodiment of the present application.
  • the device 100 for updating front-end pages based on index and value citation includes a front-end page obtaining unit 110, a judgment unit 120, a data table obtaining unit 130, a first updating unit 140, a template file obtaining unit 150, and a first updating unit.
  • Two update unit 160 includes a front-end page obtaining unit 110, a judgment unit 120, a data table obtaining unit 130, a first updating unit 140, a template file obtaining unit 150, and a first updating unit.
  • Two update unit 160 Two update unit 160.
  • the front-end page obtaining unit 110 is configured to, if an update request for updating the front-end page is received, obtain the front-end page according to the update request.
  • the judging unit 120 is configured to judge the type of the update request according to a preset judgment rule.
  • the data table obtaining unit 130 is configured to, if the type of the update request is to update multiple data in the front-end page, obtain a pre-made data table according to the front-end page, wherein the data table and the front-end page Into an index relationship.
  • the data table obtaining unit 130 includes an identification unit 131 and a parsing unit 132.
  • the recognition unit 131 is configured to recognize the front-end page to obtain a pre-made two-dimensional code in the front-end page.
  • the device 100 for updating front-end pages based on index and value citation further includes a generating unit 131a.
  • the generating unit 131a is configured to obtain data for generating the two-dimensional code from a preset database, generate the two-dimensional code according to the data, and set the two-dimensional code in the front-end page.
  • the generating unit 131a includes: a data identification unit 131a1, an identifier generating unit 131a2, and a two-dimensional code generating unit 131a3.
  • the data identification unit 131a1 is used for labeling the data according to a preset labeling rule to generate labeling data.
  • the identifier generating unit 131a2 is configured to generate a UUID type identifier from the marking data.
  • the two-dimensional code generating unit 131a3 is configured to generate the two-dimensional code according to the UUID type identifier and set the two-dimensional code in the front-end page.
  • the parsing unit 132 is used for parsing the two-dimensional code to obtain the data table.
  • the parsing unit 132 includes an identifier obtaining unit 1321 and a data table generating unit 1322.
  • the identifier obtaining unit 1321 is configured to parse the two-dimensional code to obtain the UUID type identifier.
  • the data table generating unit 1322 is configured to generate the data table according to the UUID type identifier.
  • the data table generating unit 1322 includes a storage unit 1322a.
  • the storage unit 1322a is used for the UUID type identifier in the data table in a serialized form.
  • the first update unit 140 is configured to update the front-end page in an index manner according to the update request and the data table.
  • the template file obtaining unit 150 is configured to obtain a preset template file according to the front-end page if the type of the update request is to update a single data in the front-end page.
  • the second update unit 160 is configured to modify the template file by value reference according to the update request to update the front-end page.
  • FIG. 11 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
  • the non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032.
  • the processor 502 can execute the method of updating the front-end page based on the index and the value reference.
  • the processor 502 is used to provide calculation and control capabilities, and support the operation of the entire device 500.
  • the internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503.
  • the processor 502 can execute the method of updating the front-end page based on the index and the value.
  • the network interface 505 is used for network communication, such as providing data information transmission.
  • 11 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the device 500 to which the solution of the present application is applied.
  • the specific device 500 may be Including more or fewer parts than shown in the figure, or combining some parts, or having a different arrangement of parts.
  • the processor 502 is configured to run a computer program 5032 stored in a memory, so as to implement any embodiment of the above-mentioned method for updating a front-end page based on an index and a value reference.
  • the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor 502 may also be other general-purpose processors 502, or digital signal processors 502 (Digital Signal Processors, DSPs). ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor 502 may be a microprocessor 502 or the processor 502 may also be any conventional processor 502 and the like.
  • the computer program may be stored in a storage medium, and the storage medium may be a computer-readable storage medium.
  • the computer program is executed by at least one processor in the computer system to implement the process steps of the foregoing method embodiment.
  • the computer-readable storage medium may be non-volatile or volatile.
  • the storage medium stores a computer program that, when executed by a processor, implements any embodiment of the above-mentioned method for updating a front-end page based on an index and a value citation.
  • the computer-readable storage medium may be a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk, or an optical disk, and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种基于索引和值引更新前端页面的方法、装置、计算机设备,该方法包括若接收到更新前端页面的更新请求,根据更新请求获取前端页面(S110);根据预设的判断规则判断更新请求的类型(S120);若更新请求的类型为对前端页面中的多个数据进行更新,根据前端页面获取预制的数据表,其中数据表与前端页面成索引关系(S130);根据更新请求和数据表以索引方式更新前端页面(S140);若更新请求的类型为对前端页面中的单个数据进行更新,根据前端页面获取预设的模板文件(S150);根据更新请求以值引用的方式修改模板文件以更新前端页面(S160)。该方法基于大数据中的数据更新技术,解决现有技术中存在无法将值引用和索引进行结合以更新前端页面的问题,提高了更新前端页面的效率。

Description

基于索引和值引更新前端页面的方法、装置、计算机设备
本申请要求于2020年05月29日提交中国专利局、申请号为202010479012.2,发明名称为“基于索引和值引更新前端页面的方法、装置、计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于数据更新技术领域,尤其涉及一种基于索引和值引更新前端页面的方法、装置、计算机设备。
背景技术
在常规的前后端开发中由于后台数据的变更导致需要对前端页面中的数据进行更新以使得前端页面与后台保持一致,通常既可以采用值引用的方式来更新前端页面,也可以采用索引的方式来更新前端页面,且只能采取一种方式来对前端页面进行更新,但发明人意识到当后台与前端页面中相对应的单个数据内容发生变化时,为了不影响前端页面的整体展示效果与相关的内容存储效果,通常采用值引用的方式来更新前端页面,而采用索引的方式则是无法实现进行单个数据替换修改的,而且还极易发生误删的问题,造成极大的风险;当需要对前端页面中的数据进行大量修改时,采用值引用的方式需对前端页面中的数据进行逐一进行替换或者修改,不仅存在修改过程中出现纰漏的问题,而且替换工作相对繁琐,通过索引的方式来对前端页面中的多个数据进行统一替换,进而避免了在修改前端页面数据的过程中出现纰漏。因此,现有技术中存在如何将值引用和索引进行结合以更新前端页面的技术问题。
发明内容
本申请实施例提供了一种基于索引和值引更新前端页面的方法、装置、计算机设备,旨在解决现有技术中存在无法将值引用和索引进行结合以更新前端页面的问题。
第一方面,本申请实施例提供了一种基于索引和值引更新前端页面的方法,其包括:
若接收到更新前端页面的更新请求,根据所述更新请求获取所述前端页面;
根据预设的判断规则判断所述更新请求的类型;
若所述更新请求的类型为对所述前端页面中的多个数据进行更新,根据所述前端页面获取预制的数据表,其中所述数据表与所述前端页面成索引关系;
根据所述更新请求和所述数据表以索引方式更新所述前端页面;
若所述更新请求的类型为对所述前端页面中的单个数据进行更新,根据所述前端页面获取预设的模板文件;
根据所述更新请求以值引用的方式修改所述模板文件以更新所述前端页面。
第二方面,本申请实施例提供了一种基于索引和值引更新前端页面的装置,其包括:
前端页面获取单元,用于若接收到更新前端页面的更新请求,根据所述更新请求获取所述前端页面;
判断单元,用于根据预设的判断规则判断所述更新请求的类型;
数据表获取单元,用于若所述更新请求的类型为对所述前端页面中的多个数据进行更新,根据所述前端页面获取预制的数据表,其中所述数据表与所述前端页面成索引关系;
第一更新单元,用于根据所述更新请求和所述数据表以索引方式更新所述前端页面;
模板文件获取单元,用于若所述更新请求的类型为对所述前端页面中的单个数据进行更新,根据所述前端页面获取预设的模板文件;
第二更新单元,用于根据所述更新请求以值引用的方式修改所述模板文件以更新所述前端页面。
第三方面,本申请实施例又提供了一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时执行以下步骤:
若接收到更新前端页面的更新请求,根据所述更新请求获取所述前端页面;
根据预设的判断规则判断所述更新请求的类型;
若所述更新请求的类型为对所述前端页面中的多个数据进行更新,根据所述前端页面获取预制的数据表,其中所述数据表与所述前端页面成索引关系;
根据所述更新请求和所述数据表以索引方式更新所述前端页面;
若所述更新请求的类型为对所述前端页面中的单个数据进行更新,根据所述前端页面获取预设的模板文件;
根据所述更新请求以值引用的方式修改所述模板文件以更新所述前端页面。
第四方面,本申请实施例还提供了一种计算机可读存储介质,其中所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行以下步骤:
若接收到更新前端页面的更新请求,根据所述更新请求获取所述前端页面;
根据预设的判断规则判断所述更新请求的类型;
若所述更新请求的类型为对所述前端页面中的多个数据进行更新,根据所述前端页面获取预制的数据表,其中所述数据表与所述前端页面成索引关系;
根据所述更新请求和所述数据表以索引方式更新所述前端页面;
若所述更新请求的类型为对所述前端页面中的单个数据进行更新,根据所述前端页面获取预设的模板文件;
根据所述更新请求以值引用的方式修改所述模板文件以更新所述前端页面。
本申请在更新前端页面的过程中结合值引和索引的优势来对前端页面进行更新,解决了现有技术中存在无法将值引用和索引进行结合以更新前端页面的问题,极大的提高了更新前端页面的效率。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的基于索引和值引更新前端页面的方法的流程示意图;
图2为本申请实施例提供的基于索引和值引更新前端页面的方法的应用场景示意图;
图3为本申请实施例提供的基于索引和值引更新前端页面的方法的子流程示意图;
图4为本申请实施例提供的基于索引和值引更新前端页面的方法的另一子流程示意图;
图5为本申请实施例提供的基于索引和值引更新前端页面的方法的另一子流程示意图;
图6为本申请实施例提供的基于索引和值引更新前端页面的装置的示意性框图;
图7为本申请实施例提供的基于索引和值引更新前端页面的装置的子单元意性框图;
图8为本申请实施例提供的基于索引和值引更新前端页面的装置的另一子单元意性框图;
图9为本申请实施例提供的基于索引和值引更新前端页面的装置的另一子单元意性框图;
图10为本申请实施例提供的基于索引和值引更新前端页面的装置的另一子单元意性框图;
图11为本申请实施例提供的计算机设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
请参阅图1和图2,图1为本申请实施例提供的基于索引和值引更新前端页面的方法的流程示意图;图2为本申请实施例提供的基于索引和值引更新前端页面的方法的应用场景示意图。该基于索引和值引更新前端页面的方法应用于终端10中,前端页面可以页面的形式显示在终端10中,当终端10接收到来自更新预置的前端页面中数据内容的更新请求时,终端10根据该更新请求从服务器20中获取该前端页面,该前端页面存储于服务器10中,终端10可以为手机、电脑、笔记本等具备显示页面功能的终端设备,服务器20为具备与终端10进行数据传输和接收功能的设备。
如图1所示,该方法包括步骤S110~S160。
S110、若接收到更新前端页面的更新请求,根据所述更新请求获取所述前端页面。
若接收到更新前端页面的更新请求,根据所述更新请求获取所述前端页面。具体的,所述更新请求可以为服务器向终端发送的对存储于服务器中的特定的前端页面进行修改的更新请求,也可以为用户需要对存储于服务器中的特定的前端网页进行修改时在终端中输入的更新请求的指令。所述更新请求中包括有存储于服务器中的前端页面的IP地址,终端从所述更新请求中获得该IP地址后,便可从服务器中获取与该IP地址相对应的前端页面。
S120、根据预设的判断规则判断所述更新请求的类型。
根据预设的判断规则判断所述更新请求的类型。具体的,所述判断规则为终端根据所述更新请求中是否需要批量更新前端页面中的数据而进行识别判断的规则信息,在本实施例中可通过判断更新前端页面中数据的个数来判断对前端页面进行更新的类型。例如,当所述更新请求的类型为对所述前端页面中的批量数据进行更新时,终端则判断所述更新请求的类型为对所述前端页面中的批量数据进行修改的类型,当所述更新请求的类型为对所述前端页面中的非批量数据进行更新时,终端则判断所述更新请求的类型为对所述前端页面中的非批量数据进行修改的请求类型。
S130、若所述更新请求的类型为对所述前端页面中的多个数据进行更新,根据所述前端页面获取预制的数据表,其中所述数据表与所述前端页面成索引关系。
若所述更新请求的类型为对所述前端页面中的多个数据进行更新,根据所述前端页面获取预制的数据表,其中所述数据表与所述前端页面成索引关系。其中,所述数据表是一张指示逻辑记录和物理记录之间对应关系的数据表,数据表中的每项与所述前端页面成索引关系的索引项为按键(或逻辑记录号)顺序排列,终端在获取到所述前端页面后,通过所述前端页面可获得所述数据表,所述数据表既可以预先存储于终端中,也可以预先存储于服务器中,还可以预先存储于所述前端页面中并随所述前端页面一起存储于服务器中以便于终端在获取所述前端页面时,所述数据表随所述前端页面一同被传输到终端中。
在一实施例中,如图3所示,步骤S130包括S131和S132。
S131、识别所述前端页面以获得所述前端页面中的预制的二维码。
识别所述前端页面以获得所述前端页面中的预制的二维码。具体的,所述前端页面设置有所述二维码的图片,终端具备对二维码图片进行扫描识别的功能,当所述更新请求的类型为对所述前端页面中的批量数据进行替换的请求类型时,终端开启扫描识别的功能在所述前端页面中进行全屏扫面以识别出设置在所述前端页面中的二维码图片,其中,终端可以为具备识别所述前端页面中预制二维码功能的手机、平板、电脑等设备。
在一实施例中,步骤S110之前还包括S131a。
S131a、从预置的数据库中获取生成所述二维码的数据,根据所述数据生成所述二维码并将所述二维码设置在所述前端页面中。
从预置的数据库中获取生成所述二维码的数据,根据所述数据生成所述二维码并将所述二维码设置在所述前端页面中。具体的,终端在接收到更新所述前端页面的更新请求之前,还可用于生成所述页面前端,所述数据库存储于服务器中,终端从所述数据库中获取生成所述页面前端后,根据该数据生成所述二维码,终端生成所述二维码后,将所述二维码以图片的形式设置在所述前端页面中,从而使得后续需要对所述前端页面中的内容进行更新时,只需扫描所述二维码便可对所述前端页面进行更新。
在一实施例中,如图4所示,步骤S131a中所述根据所述数据生成所述二维码,包括:S131a1、S131a2和S131a3。
S131a1、根据预设标示规则对所述数据进行标示以生成标示数据。
根据预设标示规则对所述数据进行标示以生成标示数据。具体的,所述标示规则用于将所述数据进行标示以生成标示数据,以便于后续过程中通过对所述标示数据进行修改便可准确的对所述前端页面中的内容进行修改。其中,所述前端页面中所对应的数据根据其在所述前端页面中的不同属性来进行标示,例如,所述前端页面中的属性名称所对应的数据则可被标示成具有属性名称的标示,所述前端页面中的话术内容所对应的数据则可被标示成具有话术内容的标示。
S131a2、将所述标示数据生成UUID类型的标识符。
将所述标示数据生成UUID类型的标识符。其中,UUID是Universally Unique Identifier的缩写,它是在一定的范围内(从特定的名字空间到全球)唯一的机器生成的标识符。具体的,所述标示数据在生成UUID类型的标识符的过程中可根据所述标示数据中的标示来生成,例如,当所述标示数据可采用数据表名称-数据ID-数据字段的方式来表示时,将数据表名称、数据ID和数据字段进行结合以得到唯一的UUID类型的标识符。
S131a3、根据所述UUID类型的标识符生成所述二维码并将所述二维码设置在所述前端页面中。
根据所述UUID类型的标识符生成所述二维码并将所述二维码设置在所述前端页面中。具体的,将所述UUID类型的标识符写入二维码生成器中,便可生成所述二维码,生成所述二维码后便可将所述二维码以图片的形式设置在所述前端页面中。其中,所述二维码是将数据用黑白小方块(二进制)的方式组合成的图案,所述二维码生成器用于生成所述二维码,所述二维码生成器在制作过程中需要一个二维码生成算法,或者一个二维码插件,然后用JAVA,C#,VB等编程语言编写一个调用软件便可做成二维码生成器。
S132、解析所述二维码以得到所述数据表。
解析所述二维码以得到所述数据表。具体的,终端在所述前端页面中扫描识别到所述二维码后,可从所述二维码中获取到由黑白小方块组成的二维码图片,进而对该图片进行解析以得到所述数据表。在本实施例中,通过将所述数据表以二维码的形式存储于前端页面中,使得在对前端页面进行更新的过程中,只需在获取前端页面后,从前端页面中获取以二维码形式存储在前端页面中的数据表,使得在对前端页面进行更新的过程中能顺利使用所述数据表并采用索引的方式更新前端页面。
在一实施例中,如图5所示,步骤S132包括S1321和S1322。
S1321、解析所述二维码以得到所述UUID类型的标识符。
解析所述二维码以得到所述UUID类型的标识符。其中,所述二维码中存储有生成所述前端页面中内容的数据信息,通过对所述二维码进行解析以获得与所述前端页面的数据信息,在本实施例中,该数据信息为所述UUID类型的标识符。具体的,在对所述二维码进行解析的过程中可采用二维码解码器以对所述二维码进行解码,从而获得所述UUID类型的标识符。
S1322、根据所述UUID类型的标识符生成所述数据表。
根据所述UUID类型的标识符生成所述数据表。具体的,终端在解析所述二维码以得到所述UUID类型的标识符后,根据所述UUID类型的标识符创建与所述前端页面中的数据成 索引关系的数据表,当需要获取所述前端页面中的特定位置的数据字段时,通过查询所述数据表便可获取所述前端页面中获得该数据字段以便于对所述前端页面中的数据进行替换,进而更新所述前端页面。
在一实施例中,步骤S1322中所述UUID类型的标识符以序列化的形式存在于所述数据表中。
所述UUID类型的标识符以序列化的形式存在于所述数据表中。具体的,所述UUID类型的标识符在所述数据表中以json字符串的形式存在,所述UUID类型的标识符为所述前端页面中内容的数据信息,通过在所述数据表中对所述UUID类型的标识符可从所述前端页面中获取与该目录相对应的数据。
S140、根据所述更新请求和所述数据表以索引方式更新所述前端页面。
根据所述更新请求和所述数据表以索引方式更新所述前端页面。具体的,当所述更新请求的类型为对所述前端页面中的多个数据进行更新的请求类型,所述更新请求中包括有对所述前端页面中的多个数据进行更新的数据字段和与该数据字段相对应的ID,终端通过该ID在所述数据表中可查找到与该ID相对应的目录,其中,该数据字段的ID与该数据字段相对应的数据字段的ID为同一ID。由于所述数据表与所述前端页面中的数据字段成索引关系,终端该目录从所述前端页面中获取与该目录相对应的数据字段后,使用所述更新请求中的数据字段进行替换,从而更新所述前端页面。
S150、若所述更新请求的类型为对所述前端页面中的单个数据进行更新,根据所述前端页面获取预设的模板文件。
若所述更新请求的类型为对所述前端页面中的单个数据进行更新,根据所述前端页面获取预设的模板文件。具体的,所述模板文件为用于修改所述前端页面中的数据而设定的修改模板,当所述模板文件出现修改后保存,与所述模板文件相对应的前端页面在所述模板文件保存后,便可自动进行更新以与所述模板文件相对应。所述模板文件中每个数据与所述前端页面中的每个数据一一对应,通过值引用的方式将所述模板文件中的修改后的数据传递到所述前端页面中,进而可更新所述前端页面。
S160、根据所述更新请求以值引用的方式修改所述模板文件以更新所述前端页面。
根据所述更新请求以值引用的方式修改所述模板文件以更新所述前端页面。具体的,当所述更新请求的类型为对所述前端页面中的单个数据进行更新的请求类型时,所述更新请求中包括有对所述前端页面中的单个数据进行更新的单个数据以及该单个数据的ID,终端根据该单个数据的ID将所述模板文件中该ID处的单个数据替换成所述更新请求中的单个数据,根据值引用的方式替换完成后保存所述模板便可更新所述前端页面。
本申请实施例还提供了一种基于索引和值引更新前端页面的装置100,该装置用于执行前述前端页面的更新的任一实施例。具体地,请参阅图6,图6是本申请实施例提供的基于索引和值引更新前端页面的装置100的示意性框图。
如图6所示,所述的基于索引和值引更新前端页面的装置100包括前端页面获取单元110、判断单元120、数据表获取单元130、第一更新单元140、模板文件获取单元150、第二更新 单元160。
前端页面获取单元110,用于若接收到更新前端页面的更新请求,根据所述更新请求获取所述前端页面。
判断单元120,用于根据预设的判断规则判断所述更新请求的类型。
数据表获取单元130,用于若所述更新请求的类型为对所述前端页面中的多个数据进行更新,根据所述前端页面获取预制的数据表,其中所述数据表与所述前端页面成索引关系。
在其他申请实施例中,如图7所示,所述数据表获取单元130包括识别单元131和解析单元132。
识别单元131,用于识别所述前端页面以获得所述前端页面中的预制的二维码。
在其他申请实施例中,所述的基于索引和值引更新前端页面的装置100还包括生成单元131a。
生成单元131a,用于从预置的数据库中获取生成所述二维码的数据,根据所述数据生成所述二维码并将所述二维码设置在所述前端页面中。
在其他申请实施例中,如图8所示,所述生成单元131a包括:数据标识单元131a1、标识符生成单元131a2和二维码生成单元131a3。
数据标识单元131a1,用于根据预设标示规则对所述数据进行标示以生成标示数据。
标识符生成单元131a2,用于将所述标示数据生成UUID类型的标识符。
二维码生成单元131a3,用于根据所述UUID类型的标识符生成所述二维码并将所述二维码设置在所述前端页面中。
解析单元132,用于解析所述二维码以得到所述数据表。
在其他申请实施例中,如图9所示,所述解析单元132包括标识符获取单元1321和数据表生成单元1322。
标识符获取单元1321,用于解析所述二维码以得到所述UUID类型的标识符。
数据表生成单元1322,用于根据所述UUID类型的标识符生成所述数据表。
在其他申请实施例中,如图10所示,所述数据表生成单元1322包括存储单元1322a。
存储单元1322a,用于所述UUID类型的标识符以序列化的形式存在于所述数据表中。
第一更新单元140,用于根据所述更新请求和所述数据表以索引方式更新所述前端页面。
模板文件获取单元150,用于若所述更新请求的类型为对所述前端页面中的单个数据进行更新,根据所述前端页面获取预设的模板文件。
第二更新单元160,用于根据所述更新请求以值引用的方式修改所述模板文件以更新所述前端页面。
请参阅图11,图11是本申请实施例提供的计算机设备的示意性框图。
参阅图11,该设备500包括通过系统总线501连接的处理器502、存储器和网络接口505,其中,存储器可以包括非易失性存储介质503和内存储器504。
该非易失性存储介质503可存储操作系统5031和计算机程序5032。该计算机程序5032被执行时,可使得处理器502执行基于索引和值引更新前端页面的方法。该处理器502用于 提供计算和控制能力,支撑整个设备500的运行。该内存储器504为非易失性存储介质503中的计算机程序5032的运行提供环境,该计算机程序5032被处理器502执行时,可使得处理器502执行基于索引和值引更新前端页面的方法。该网络接口505用于进行网络通信,如提供数据信息的传输等。本领域技术人员可以理解,图11中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的设备500的限定,具体的设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
其中,所述处理器502用于运行存储在存储器中的计算机程序5032,以实现上述基于索引和值引更新前端页面的方法的任一实施例。
应当理解,在本申请实施例中,处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器502还可以是其他通用处理器502、数字信号处理器502(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器502可以是微处理器502或者该处理器502也可以是任何常规的处理器502等。
本领域普通技术人员可以理解的是实现上述实施例的方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成。该计算机程序可存储于一存储介质中,该存储介质可以为计算机可读存储介质。该计算机程序被该计算机系统中的至少一个处理器执行,以实现上述方法的实施例的流程步骤。
因此,本申请还提供了一种计算机可读存储介质。该计算机可读存储介质可以是非易失性,也可以是易失性。该存储介质存储有计算机程序,该计算机程序当被处理器执行时实现上述基于索引和值引更新前端页面的方法的任一实施例。
该计算机可读存储介质可以是U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置、设备和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的装置、设备和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种基于索引和值引更新前端页面的方法,其中,包括以下步骤:
    若接收到更新前端页面的更新请求,根据所述更新请求获取所述前端页面;
    根据预设的判断规则判断所述更新请求的类型;
    若所述更新请求的类型为对所述前端页面中的多个数据进行更新,根据所述前端页面获取预制的数据表,其中所述数据表与所述前端页面成索引关系;
    根据所述更新请求和所述数据表以索引方式更新所述前端页面;
    若所述更新请求的类型为对所述前端页面中的单个数据进行更新,根据所述前端页面获取预设的模板文件;
    根据所述更新请求以值引用的方式修改所述模板文件以更新所述前端页面。
  2. 根据权利要求1所述的基于索引和值引更新前端页面的方法,其中,所述根据所述前端页面获取预制的数据表,包括:
    识别所述前端页面以获得所述前端页面中的预制的二维码;
    解析所述二维码以得到所述数据表。
  3. 根据权利要求2所述的基于索引和值引更新前端页面的方法,其中,所述若接收到更新前端页面的更新请求之前,还包括:
    从预置的数据库中获取生成所述二维码的数据,根据所述数据生成所述二维码并将所述二维码设置在所述前端页面中。
  4. 根据权利要求3所述的基于索引和值引更新前端页面的方法,其中,所述根据所述数据生成所述二维码,包括:
    根据预设标示规则对所述数据进行标示以生成标示数据;
    将所述标示数据生成UUID类型的标识符;
    根据所述UUID类型的标识符生成所述二维码并将所述二维码设置在所述前端页面中。
  5. 根据权利要求4所述的基于索引和值引更新前端页面的方法,其中,所述解析所述二维码以得到所述数据表,包括:
    解析所述二维码以得到所述UUID类型的标识符;
    根据所述UUID类型的标识符生成所述数据表。
  6. 根据权利要求5所述的基于索引和值引更新前端页面的方法,其中,所述UUID类型的标识符以序列化的形式存在于所述数据表中。
  7. 根据权利要求1所述的基于索引和值引更新前端页面的方法,其中,所述模板文件中每个数据与所述前端页面中的每个数据一一对应。
  8. 一种基于索引和值引更新前端页面的装置,其中,包括:
    前端页面获取单元,用于若接收到更新前端页面的更新请求,根据所述更新请求获取所述前端页面;
    判断单元,用于根据预设的判断规则判断所述更新请求的类型;
    数据表获取单元,用于若所述更新请求的类型为对所述前端页面中的多个数据进行更新,根据所述前端页面获取预制的数据表,其中所述数据表与所述前端页面成索引关系;
    第一更新单元,用于根据所述更新请求和所述数据表以索引方式更新所述前端页面;
    模板文件获取单元,用于若所述更新请求的类型为对所述前端页面中的单个数据进行更新,根据所述前端页面获取预设的模板文件;
    第二更新单元,用于根据所述更新请求以值引用的方式修改所述模板文件以更新所述前端页面。
  9. 一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时执行以下步骤:
    若接收到更新前端页面的更新请求,根据所述更新请求获取所述前端页面;
    根据预设的判断规则判断所述更新请求的类型;
    若所述更新请求的类型为对所述前端页面中的多个数据进行更新,根据所述前端页面获取预制的数据表,其中所述数据表与所述前端页面成索引关系;
    根据所述更新请求和所述数据表以索引方式更新所述前端页面;
    若所述更新请求的类型为对所述前端页面中的单个数据进行更新,根据所述前端页面获取预设的模板文件;
    根据所述更新请求以值引用的方式修改所述模板文件以更新所述前端页面。
  10. 根据权利要求9所述的计算机设备,其中,所述根据所述前端页面获取预制的数据表,包括:
    识别所述前端页面以获得所述前端页面中的预制的二维码;
    解析所述二维码以得到所述数据表。
  11. 根据权利要求10所述的计算机设备,其中,所述若接收到更新前端页面的更新请求之前,还包括:
    从预置的数据库中获取生成所述二维码的数据,根据所述数据生成所述二维码并将所述二维码设置在所述前端页面中。
  12. 根据权利要求11所述的计算机设备,其中,所述根据所述数据生成所述二维码,包括:
    根据预设标示规则对所述数据进行标示以生成标示数据;
    将所述标示数据生成UUID类型的标识符;
    根据所述UUID类型的标识符生成所述二维码并将所述二维码设置在所述前端页面中。
  13. 根据权利要求12所述的计算机设备,其中,所述解析所述二维码以得到所述数据表,包括:
    解析所述二维码以得到所述UUID类型的标识符;
    根据所述UUID类型的标识符生成所述数据表。
  14. 根据权利要求13所述的计算机设备,其中,所述UUID类型的标识符以序列化的形式存在于所述数据表中。
  15. 根据权利要求9所述的计算机设备,其中,所述模板文件中每个数据与所述前端页面中的每个数据一一对应。
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行以下步骤:
    若接收到更新前端页面的更新请求,根据所述更新请求获取所述前端页面;
    根据预设的判断规则判断所述更新请求的类型;
    若所述更新请求的类型为对所述前端页面中的多个数据进行更新,根据所述前端页面获取预制的数据表,其中所述数据表与所述前端页面成索引关系;
    根据所述更新请求和所述数据表以索引方式更新所述前端页面;
    若所述更新请求的类型为对所述前端页面中的单个数据进行更新,根据所述前端页面获取预设的模板文件;
    根据所述更新请求以值引用的方式修改所述模板文件以更新所述前端页面。
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述根据所述前端页面获取预制的数据表,包括:
    识别所述前端页面以获得所述前端页面中的预制的二维码;
    解析所述二维码以得到所述数据表。
  18. 根据权利要求17所述的计算机可读存储介质,其中,所述若接收到更新前端页面的更新请求之前,还包括:
    从预置的数据库中获取生成所述二维码的数据,根据所述数据生成所述二维码并将所述二维码设置在所述前端页面中。
  19. 根据权利要求18所述的计算机可读存储介质,其中,所述根据所述数据生成所述二维码,包括:
    根据预设标示规则对所述数据进行标示以生成标示数据;
    将所述标示数据生成UUID类型的标识符;
    根据所述UUID类型的标识符生成所述二维码并将所述二维码设置在所述前端页面中。
  20. 根据权利要求19所述的计算机可读存储介质,其中,所述解析所述二维码以得到所述数据表,包括:
    解析所述二维码以得到所述UUID类型的标识符;
    根据所述UUID类型的标识符生成所述数据表。
PCT/CN2020/125063 2020-05-29 2020-10-30 基于索引和值引更新前端页面的方法、装置、计算机设备 WO2021135598A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010479012.2A CN111708957A (zh) 2020-05-29 2020-05-29 基于索引和值引更新前端页面的方法、装置、计算机设备
CN202010479012.2 2020-05-29

Publications (1)

Publication Number Publication Date
WO2021135598A1 true WO2021135598A1 (zh) 2021-07-08

Family

ID=72539049

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/125063 WO2021135598A1 (zh) 2020-05-29 2020-10-30 基于索引和值引更新前端页面的方法、装置、计算机设备

Country Status (2)

Country Link
CN (1) CN111708957A (zh)
WO (1) WO2021135598A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708957A (zh) * 2020-05-29 2020-09-25 平安科技(深圳)有限公司 基于索引和值引更新前端页面的方法、装置、计算机设备
CN114546389A (zh) * 2022-04-25 2022-05-27 浙江大华技术股份有限公司 前端页面生成方法、音视频分析方法及其装置以及介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040177327A1 (en) * 2000-02-04 2004-09-09 Robert Kieffer System and process for delivering and rendering scalable web pages
CN104657479A (zh) * 2015-02-17 2015-05-27 广东新农人农业科技股份有限公司 网页页面显示更新数据的方法及系统
CN107872500A (zh) * 2016-09-28 2018-04-03 阿里巴巴集团控股有限公司 更新应用页面数据的处理方法、装置、服务器及客户端
CN108776592A (zh) * 2018-05-23 2018-11-09 北京五八信息技术有限公司 一种页面构建的方法、装置、设备及存储介质
CN110851209A (zh) * 2019-11-08 2020-02-28 北京字节跳动网络技术有限公司 一种数据处理方法、装置、电子设备及存储介质
CN111708957A (zh) * 2020-05-29 2020-09-25 平安科技(深圳)有限公司 基于索引和值引更新前端页面的方法、装置、计算机设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040177327A1 (en) * 2000-02-04 2004-09-09 Robert Kieffer System and process for delivering and rendering scalable web pages
CN104657479A (zh) * 2015-02-17 2015-05-27 广东新农人农业科技股份有限公司 网页页面显示更新数据的方法及系统
CN107872500A (zh) * 2016-09-28 2018-04-03 阿里巴巴集团控股有限公司 更新应用页面数据的处理方法、装置、服务器及客户端
CN108776592A (zh) * 2018-05-23 2018-11-09 北京五八信息技术有限公司 一种页面构建的方法、装置、设备及存储介质
CN110851209A (zh) * 2019-11-08 2020-02-28 北京字节跳动网络技术有限公司 一种数据处理方法、装置、电子设备及存储介质
CN111708957A (zh) * 2020-05-29 2020-09-25 平安科技(深圳)有限公司 基于索引和值引更新前端页面的方法、装置、计算机设备

Also Published As

Publication number Publication date
CN111708957A (zh) 2020-09-25

Similar Documents

Publication Publication Date Title
Xiao et al. Iconintent: automatic identification of sensitive ui widgets based on icon classification for android apps
WO2021135598A1 (zh) 基于索引和值引更新前端页面的方法、装置、计算机设备
US11283740B2 (en) Name label display method and apparatus
CN110647316B (zh) 通用业务对象的生成方法、装置、计算机设备及存储介质
US8965909B2 (en) Type-ahead search optimization
US20140379848A1 (en) Methods, apparatuses, and computer program products for facilitating a data interchange protocol
US9483465B2 (en) Language translation for multi-function peripherals
US20140089841A1 (en) Device and method for providing application interface based on writing input
WO2020259141A1 (zh) 一种文件处理方法、装置及计算机设备
WO2019019393A1 (zh) 业务接口调用方法、装置、用户终端和可读存储介质
CN113626223A (zh) 一种接口调用方法和装置
US11106908B2 (en) Techniques to determine document recognition errors
WO2018161642A1 (zh) 一种索引定位的方法及装置和计算机存储介质
CN114461223A (zh) 一种代码生成方法、装置及终端设备
US8082528B2 (en) Process-independent schema library
WO2021042542A1 (zh) 目录存储方法、装置、计算机设备及存储介质
US20190213276A1 (en) Smart search for annotations and inking
CN113157722B (zh) 一种数据处理方法、装置、服务器、系统及存储介质
CN112433741B (zh) 页面处理方法、装置、系统、电子设备及存储介质
CN113010811B (zh) 网页获取方法、装置、电子设备及计算机可读存储介质
US20120072201A1 (en) Language translation reuse in different systems
CN116107971A (zh) 模型的数据处理方法、装置、电子设备以及存储介质
CN113283233A (zh) 文本纠错方法、装置、电子设备和存储介质
CN107818123A (zh) 文本的自适应linkify方法及其处理器
CN105429931A (zh) 实现应用平台与第三方平台的账号信息交互的方法和系统

Legal Events

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

Ref document number: 20908591

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20908591

Country of ref document: EP

Kind code of ref document: A1