CN113626103A - Method, device and equipment for processing service data of Web page and storage medium - Google Patents

Method, device and equipment for processing service data of Web page and storage medium Download PDF

Info

Publication number
CN113626103A
CN113626103A CN202110908886.XA CN202110908886A CN113626103A CN 113626103 A CN113626103 A CN 113626103A CN 202110908886 A CN202110908886 A CN 202110908886A CN 113626103 A CN113626103 A CN 113626103A
Authority
CN
China
Prior art keywords
service data
target
array
character string
web page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110908886.XA
Other languages
Chinese (zh)
Inventor
张少辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ping An Medical Health Technology Service Co Ltd
Original Assignee
Ping An Medical and Healthcare Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Medical and Healthcare Management Co Ltd filed Critical Ping An Medical and Healthcare Management Co Ltd
Priority to CN202110908886.XA priority Critical patent/CN113626103A/en
Publication of CN113626103A publication Critical patent/CN113626103A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages

Abstract

The application relates to the technical field of clients, and discloses a method, a device, equipment and a storage medium for processing service data of a Web page, wherein the method comprises the following steps: acquiring a character string assembly request sent by a client in the process of loading a target Web page, wherein the character string assembly request carries assembly configuration data; responding to the character string assembly request, and creating an array to obtain an array to be assigned; acquiring a service data set to be assembled according to the assembly configuration data; assigning the array to be assigned according to the service data set to be assembled to obtain a target array; performing service data assembly according to the target array to obtain a target character string; and sending the target character string to the client, and deleting the target array, wherein the target character string is used for loading the target Web page by the client. The method avoids the adoption of accumulated operation symbols for service data assembly, improves the assembly speed of the service data by carrying out the service data assembly based on the array, and improves the loading speed of the Web page.

Description

Method, device and equipment for processing service data of Web page and storage medium
Technical Field
The present application relates to the field of client technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing service data of a Web page.
Background
The character string accumulation mode is a technology which is commonly applied to front-end development. In order to make information visible to the naked eye on a Web (global wide area network) page not only static development, it is necessary to write code to realize dynamic string accumulation during page code development.
The traditional accumulation mode is that accumulation operation symbols are adopted for service data assembly, if a small amount of service data needs to be accumulated, the loading influence on a Web page is small, and the accumulation operation symbols are adopted for accumulation. If a large amount of service data needs to be accumulated, accumulation by using the accumulation operation symbol consumes a large amount of memory, so that the loading speed of the Web page is slow, and the customer experience is influenced.
Disclosure of Invention
The main purpose of the present application is to provide a method, an apparatus, a device, and a storage medium for processing service data of a Web page, which aim to solve the technical problems that in the prior art, a Web page adopts an accumulation operation symbol to assemble service data, and when a large amount of service data needs to be accumulated, a large memory is consumed, which results in a slow loading speed of the Web page and affects customer experience.
In order to achieve the above object, the present application provides a method for processing service data of a Web page, where the method includes:
acquiring a character string assembly request sent by a client in the process of loading a target Web page, wherein the character string assembly request carries assembly configuration data;
responding to the character string assembly request, and creating an array to obtain an array to be assigned;
acquiring a service data set to be assembled according to the assembly configuration data;
assigning the array to be assigned according to the service data set to be assembled to obtain a target array;
performing service data assembly according to the target array to obtain a target character string;
and sending the target character string to the client, and deleting the target array, wherein the target character string is used for enabling the client to load the target Web page.
Further, the character string assembly request is a request sent by the client when a target module of the target Web page is loaded, and the target module is a module developed based on JavaScript.
Further, the step of obtaining the service data set to be assembled according to the assembly configuration data includes:
acquiring data from a data source of the assembly configuration data according to the data value range of the assembly configuration data to obtain a service data set to be cached;
and storing the service data set to be cached in a stack to obtain the service data set to be assembled.
Further, the step of assigning the array to be assigned according to the service data set to be assembled to obtain a target array includes:
respectively taking out each service data from the stacked service data sets to be assembled by adopting a cycle value taking mode and a PUSH mode to assign the array to be assigned;
and taking the array to be assigned after assignment as the target array.
Further, the step of assembling the service data according to the target array to obtain the target character string includes:
and acquiring service data from the target array by adopting an array JION mode, assembling the acquired service data, and taking the assembled character string as the target character string.
Further, the step of acquiring service data from the target array by using an array jiton method, assembling the acquired service data, and using an assembled character string as the target character string includes:
and acquiring service data from the target array by adopting an array JION mode, assembling the acquired service data by adopting a parameter separator of the assembly configuration data, and taking the assembled character string as the target character string.
Further, the step of sending the target character string to the client includes:
and sending the target character string to the client according to the page identifier and the service function identifier.
The application also provides a device for processing the service data of the Web page, which comprises:
the request acquisition module is used for acquiring a character string assembly request sent by a client in the process of loading a target Web page, wherein the character string assembly request carries assembly configuration data;
the array creating module is used for responding to the character string assembling request and creating an array to obtain an array to be assigned;
the service data set acquisition module to be assembled is used for acquiring the service data set to be assembled according to the assembly configuration data;
the target array determining module is used for assigning the array to be assigned according to the service data set to be assembled to obtain a target array;
the target character string determining module is used for assembling the service data according to the target array to obtain a target character string;
and the target character string feedback module is used for sending the target character string to the client and deleting the target array, wherein the target character string is used for enabling the client to load the target Web page.
The present application further proposes a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
The present application also proposes a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any of the above.
The method comprises the steps of firstly obtaining a character string assembly request sent by a client in the process of loading a target Web page, wherein the character string assembly request carries assembly configuration data, then responding to the character string assembly request, creating an array to obtain an array to be assigned, obtaining a service data set to be assembled according to the assembly configuration data, assigning the array to be assigned according to the service data set to be assembled to obtain a target array, assembling service data according to the target array to obtain a target character string, finally sending the target character string to the client, and deleting the target array, wherein the target character string is used for enabling the client to load the target Web page to avoid adopting accumulation operation symbols to assemble the service data, the service data are assembled based on the arrays, so that the assembly speed of the service data is increased, the loading speed of a Web page is increased, and the customer experience is improved; and the Web developer is not required to develop codes to process service data assembly, so that the workload of the Web developer is reduced.
Drawings
Fig. 1 is a schematic flowchart of a method for processing service data of a Web page according to an embodiment of the present application;
fig. 2 is a schematic block diagram of a structure of a service data processing apparatus of a Web page according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a method for processing service data of a Web page, where the method includes:
s1: acquiring a character string assembly request sent by a client in the process of loading a target Web page, wherein the character string assembly request carries assembly configuration data;
s2: responding to the character string assembly request, and creating an array to obtain an array to be assigned;
s3: acquiring a service data set to be assembled according to the assembly configuration data;
s4: assigning the array to be assigned according to the service data set to be assembled to obtain a target array;
s5: performing service data assembly according to the target array to obtain a target character string;
s6: and sending the target character string to the client, and deleting the target array, wherein the target character string is used for enabling the client to load the target Web page.
In this embodiment, a character string assembly request sent by a client in a process of loading a target Web page is obtained, where the character string assembly request carries assembly configuration data, then an array is created in response to the character string assembly request to obtain an array to be assigned, a service data set to be assembled is obtained according to the assembly configuration data, the array to be assigned is assigned according to the service data set to be assembled to obtain a target array, service data assembly is performed according to the target array to obtain a target character string, and finally the target character string is sent to the client to delete the target array, where the target character string is used to enable the client to load the target Web page, thereby avoiding service data assembly by using an accumulated operation symbol, and improving the assembly speed of service data by performing service data assembly based on the array, the loading speed of the Web page is increased, and the customer experience is improved; and the Web developer is not required to develop codes to process service data assembly, so that the workload of the Web developer is reduced.
For S1, the string assembly request is a request for assembling a plurality of service data into a string. Assembly includes, but is not limited to: and (4) splicing directly and splicing by adopting a preset connection mode. For example, the preset connection manner is to use a preset character "-" for splicing, which is not specifically limited in this example.
The client comprises: any one of a terminal of the mobile device, a web page side of the mobile device, a terminal of the computer, and a web page side of the computer.
The service data is data required by the target Web page to realize the service function. Traffic data includes, but is not limited to: user data, behavior data, and commodity data. User data includes, but is not limited to: basic information of the user. Behavior data is data that records what a user has done. Merchandise data includes, but is not limited to: commodity identification, commodity name, commodity category, commodity comment and inventory. The article identification is an article ID. The commodity comment is text data of a comment made by a user on a commodity.
The assembly configuration data includes, but is not limited to: page identification, service function identification, data source, data value range and parameter separator. The page identifier may be a page name, a page ID, or the like, which uniquely identifies a Web page. The service function identifier may be a service function name, a service function ID, or other data uniquely identifying a service function. And the data source is a source of the service data, such as a database identifier. The data value range can be a time range or a storage position range. The data value range comprises: a value start range and a value end range. Parameter delimiters include, but are not limited to: -.
And the page identifier in the assembly configuration data is the page identifier of the target Web page.
When the client needs to accumulate the character strings for the service data in the process of loading the target Web page, setting the assembly configuration data according to the calling specification of the program for realizing the application, generating the character string assembly request according to the assembly configuration data obtained by setting, and sending the generated character string assembly request to the program for realizing the application.
For S2, in response to the string assembly request, a preset array creating method is used to create an array, and the created numerical value is used as the array to be assigned.
A preset array creation method, the var variable name [ ]. For example, varstr2 ═ is given by way of example and is not particularly limited.
Optionally, an array is created according to the number of the service data of the assembly configuration data, and the created array is used as an array to be assigned. That is, the number of array elements of the array to be assigned is greater than or equal to the number of the service data of the assembly configuration data.
For step S3, according to the data value range of the assembly configuration data, service data is acquired from the data source of the assembly configuration data, and all the acquired service data are used as the service data set to be assembled.
For step S4, each service data in the service data set to be assembled is assigned to an array element in the array to be assigned, and the array to be assigned after assignment is taken as the target array. That is to say, the target array includes all the service data in the service data set to be assembled, and each array element in the target array stores one service data in the service data set to be assembled.
And S5, acquiring service data from each array element in the target array, performing character string splicing according to the acquired service data by adopting an array splicing method, and taking the spliced character string as the target character string. And because the service data before splicing does not meet the requirements of the service function, the target character string is obtained by splicing the character strings according to the acquired service data, and the target character string is used for meeting the requirements of the service function.
For step S6, according to the assembly configuration data, the target character string is sent to the client, and the target array is deleted, so that the storage space is cleared; and after receiving the target character string, the client side continues to load the target Web page according to the target character string.
Because the step S1 to the step S6 define an array variable, and then operate the array variable, the memory consumption is only the consumption of one variable, which reduces the consumption of the memory, thereby increasing the assembly speed of the service data and the loading speed of the Web page. Compared with the method adopting the accumulated operation sign, the method has the advantages that the time consumed by adopting array variables in the steps from S1 to S6 is shorter, the readability is good, and errors are not prone to occurring.
It can be understood that steps S1 to S6 may be packaged into a plug-in, and the client only needs to send the string assembly request carrying the assembly configuration data to the plug-in, and sends the target string to the client after completing the string splicing, and the client does not need to care about the whole process of the acquisition of the service data and the assembly.
In one embodiment, the string assembly request is a request sent by the client when a target module of the target Web page is loaded, and the target module is a module developed based on JavaScript.
The JavaScript String object provides a rich method, but due to the inflexibility of the String object, a new String object is created again when the character String is changed, and the new String object needs to be created when the character String is changed by using the accumulation operation symbol "+" so that a large amount of service data is accumulated, a large amount of memory is consumed, and the loading speed of a Web page is slow; moreover, due to the invariability of the String object, the memory overhead is large, more garbage memories are generated, and a garbage recycling mechanism is needed for processing; and anonymous character strings are generated in the process of splicing the character strings by using the accumulated operation symbols '+', and the anonymous character strings are difficult to use secondarily.
JavaScript, abbreviated as "JS," is a lightweight, interpreted, or just-in-time programming language with function preference.
According to the method and the device, the character string assembly request is sent in the module obtained by JavaScript development, so that Web developers are not required to develop JavaScript codes to process acquisition and assembly of service data, and the workload of the Web developers is reduced.
For S11, in the process of loading the target Web page, when the target module that needs to perform string accumulation is loaded, the client sets assembly configuration data, generates the string assembly request according to the set assembly configuration data, and sends the string assembly request to a program that implements the present application.
In an embodiment, the step of obtaining the service data set to be assembled according to the assembly configuration data includes:
s31: acquiring data from a data source of the assembly configuration data according to the data value range of the assembly configuration data to obtain a service data set to be cached;
s32: and storing the service data set to be cached in a stack to obtain the service data set to be assembled.
In this embodiment, the service data set to be cached is obtained according to the assembly configuration data, and is stored in the stack, because the stack adopts a first-in-last-out mode, data is extracted from the stack and is put into an array, and after the assignment of the array is completed, the service data obtained from the data source first is extracted when the tail of the array starts to extract the service data for splicing.
For step S31, according to the data value range of the assembled configuration data, service data is acquired from the data source of the assembled configuration data, and all the acquired service data are used as a service data set to be cached.
And S32, storing the service data in the service data set to be cached into a stack according to the acquisition sequence, and taking the service data stored in the stack as the service data set to be assembled. It can be understood that the service data set to be assembled is the same as the data of the service data set to be cached.
In an embodiment, the step of assigning the array to be assigned according to the service data set to be assembled to obtain the target array includes:
s41: respectively taking out each service data from the stacked service data sets to be assembled by adopting a cycle value taking mode and a PUSH mode to assign the array to be assigned;
s42: and taking the array to be assigned after assignment as the target array.
In this embodiment, a cyclic value taking mode and a PUSH mode are adopted, and the value of the array to be assigned is carried out from a stack value taking mode, so that a basis is provided for subsequent business data assembly based on the array.
For S41, a cyclic value taking manner is adopted, the service data is taken out from the stacked service data set to be assembled, and then the taken-out service data is assigned to the array element in the array to be assigned by using a PUSH manner.
The PUSH method is to add the service data to the tail of the array in sequence by using a PUSH method.
For S42, after all the sets of business data to be assembled of the stack are assigned to the array to be assigned, the array to be assigned is taken as the target array.
In an embodiment, the step of performing service data assembly according to the target array to obtain the target character string includes:
s51: and acquiring service data from the target array by adopting an array JION mode, assembling the acquired service data, and taking the assembled character string as the target character string.
In the embodiment, an array JION mode is adopted, the service data is acquired from the target array, and the acquired service data is assembled, because the array JION mode is adopted, the array is used for storage inside, the operation is convenient, the modification is also convenient, the inconvenience caused by the invariability of a String object is directly solved, and the utilization rate of a memory space is also improved.
For step S51, an array JION method is adopted, the service data is obtained from the tail of the target array, the obtained service data is converted into a character string, then the converted character strings are sequentially spliced, and the spliced data is used as the target character string.
The method adopts an array JION mode, namely, an array join method.
In an embodiment, the step of acquiring service data from the target array by using an array jiton method, assembling the acquired service data, and using an assembled character string as the target character string includes:
s511: and acquiring service data from the target array by adopting an array JION mode, assembling the acquired service data by adopting a parameter separator of the assembly configuration data, and taking the assembled character string as the target character string.
In the embodiment, the service data is acquired from the target array by adopting an array JION mode, and the acquired service data is assembled by adopting the parameter separators of the assembly configuration data, so that the assembly by adopting the personalized parameter separators is realized, the personalized character string accumulation requirement is met, and the user experience is improved.
For S511, respectively acquiring service data from the target array by adopting an array JION mode, and converting the acquired service data into character strings; and then, character string splicing is carried out on the character strings obtained by conversion by adopting an array JION mode and the parameter separators as connectors, and the spliced data is used as the target character string.
The JION mode of the array can automatically and circularly traverse all data in the array according to a self-defined parameter separator, character string splicing is carried out by using the parameter separator, and finally values after all data in the array are spliced are obtained.
For example, the parameter separator of the assembly configuration data is ",", and the service data in the target array sequentially includes, from beginning to end: c. b, a, performing service data acquisition from the tail of the target array by using an array JION mode and the parameter separator of the assembly configuration data, converting the acquired service data into character strings, and assembling to obtain the 'a, b, c', which is not specifically limited in this example.
In an embodiment, the assembling configuration data includes a page identifier and a service function identifier, and the step of sending the target character string to the client includes:
s61: and sending the target character string to the client according to the page identifier and the service function identifier.
In this embodiment, the target character string is sent to the client according to the page identifier and the service function identifier of the assembly configuration data, so that the program of the present application can respond to a plurality of character string assembly requests at the same time, and the target Web page can be loaded quickly according to the target character string sent by the program of the present application.
And S61, generating a response value according to the page identifier, the service function identifier and the target character string of the assembly configuration data, and sending the response value to the client. After receiving the response value, the client analyzes a target character string, a page identifier and a service function identifier for the response value; and the client side uses the target character string obtained by analysis for loading the service function (namely the service function corresponding to the service function identifier) in the Web page (namely the Web page corresponding to the page identifier obtained by analysis).
Referring to fig. 2, the present application further provides a device for processing service data of a Web page, where the device includes:
a request obtaining module 100, configured to obtain a character string assembly request sent by a client in a process of loading a target Web page, where the character string assembly request carries assembly configuration data;
an array creating module 200, configured to respond to the string assembly request, create an array, and obtain an array to be assigned;
a to-be-assembled service data set obtaining module 300, configured to obtain a to-be-assembled service data set according to the assembly configuration data;
a target array determining module 400, configured to assign values to the to-be-assigned array according to the to-be-assembled service data set, so as to obtain a target array;
a target character string determining module 500, configured to perform service data assembly according to the target array to obtain a target character string;
and a target character string feedback module 600, configured to send the target character string to the client, and delete the target array, where the target character string is used to enable the client to load the target Web page.
In this embodiment, a character string assembly request sent by a client in a process of loading a target Web page is obtained, where the character string assembly request carries assembly configuration data, then an array is created in response to the character string assembly request to obtain an array to be assigned, a service data set to be assembled is obtained according to the assembly configuration data, the array to be assigned is assigned according to the service data set to be assembled to obtain a target array, service data assembly is performed according to the target array to obtain a target character string, and finally the target character string is sent to the client to delete the target array, where the target character string is used to enable the client to load the target Web page, thereby avoiding service data assembly by using an accumulated operation symbol, and improving the assembly speed of service data by performing service data assembly based on the array, the loading speed of the Web page is increased, and the customer experience is improved; and the Web developer is not required to develop codes to process service data assembly, so that the workload of the Web developer is reduced.
In an embodiment, the request obtaining module 100 further includes:
and acquiring the character string assembly request sent by the client, wherein the character string assembly request is a request sent by the client when a target module of the target Web page is loaded, and the target module is a module developed based on JavaScript.
In an embodiment, the service data set acquiring module 300 to be assembled includes: a service data acquisition sub-module and a storage stack sub-module;
the service data acquisition submodule is used for acquiring data from a data source of the assembly configuration data according to the data value range of the assembly configuration data to obtain a service data set to be cached;
and the storage stack submodule is used for storing the service data set to be cached in a stack to obtain the service data set to be assembled.
In one embodiment, the target array determining module 400 further comprises: and respectively taking out each service data from the stacked service data sets to be assembled by adopting a cycle value taking mode and a PUSH mode to assign the array to be assigned, and taking the array to be assigned after assignment as the target array.
In one embodiment, the target string determining module 500 further includes:
and acquiring service data from the target array by adopting an array JION mode, assembling the acquired service data, and taking the assembled character string as the target character string.
In one embodiment, the target string determining module 500 further includes:
and acquiring service data from the target array by adopting an array JION mode, assembling the acquired service data by adopting a parameter separator of the assembly configuration data, and taking the assembled character string as the target character string.
In one embodiment, the target string feedback module 600 further includes:
and sending the target character string to the client according to the page identifier and the service function identifier of the assembled configuration data.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing data such as a service data processing method of a Web page. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of processing business data for a Web page. The method for processing the service data of the Web page comprises the following steps: acquiring a character string assembly request sent by a client in the process of loading a target Web page, wherein the character string assembly request carries assembly configuration data; responding to the character string assembly request, and creating an array to obtain an array to be assigned; acquiring a service data set to be assembled according to the assembly configuration data; assigning the array to be assigned according to the service data set to be assembled to obtain a target array; performing service data assembly according to the target array to obtain a target character string; and sending the target character string to the client, and deleting the target array, wherein the target character string is used for enabling the client to load the target Web page.
In this embodiment, a character string assembly request sent by a client in a process of loading a target Web page is obtained, where the character string assembly request carries assembly configuration data, then an array is created in response to the character string assembly request to obtain an array to be assigned, a service data set to be assembled is obtained according to the assembly configuration data, the array to be assigned is assigned according to the service data set to be assembled to obtain a target array, service data assembly is performed according to the target array to obtain a target character string, and finally the target character string is sent to the client to delete the target array, where the target character string is used to enable the client to load the target Web page, thereby avoiding service data assembly by using an accumulated operation symbol, and improving the assembly speed of service data by performing service data assembly based on the array, the loading speed of the Web page is increased, and the customer experience is improved; and the Web developer is not required to develop codes to process service data assembly, so that the workload of the Web developer is reduced.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for processing service data of a Web page, and the method includes the steps of: acquiring a character string assembly request sent by a client in the process of loading a target Web page, wherein the character string assembly request carries assembly configuration data; responding to the character string assembly request, and creating an array to obtain an array to be assigned; acquiring a service data set to be assembled according to the assembly configuration data; assigning the array to be assigned according to the service data set to be assembled to obtain a target array; performing service data assembly according to the target array to obtain a target character string; and sending the target character string to the client, and deleting the target array, wherein the target character string is used for enabling the client to load the target Web page.
The executed service data processing method of the Web page comprises the steps of firstly obtaining a character string assembly request sent by a client in the process of loading a target Web page, wherein the character string assembly request carries assembly configuration data, then responding to the character string assembly request, creating an array to obtain an array to be assigned, obtaining a service data set to be assembled according to the assembly configuration data, assigning the array to be assigned according to the service data set to be assembled to obtain a target array, assembling service data according to the target array to obtain a target character string, finally sending the target character string to the client, and deleting the target array, wherein the target character string is used for enabling the client to load the target Web page and avoiding adopting accumulation operation symbols to assemble the service data, the service data are assembled based on the arrays, so that the assembly speed of the service data is increased, the loading speed of a Web page is increased, and the customer experience is improved; and the Web developer is not required to develop codes to process service data assembly, so that the workload of the Web developer is reduced.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method for processing service data of a Web page is characterized by comprising the following steps:
acquiring a character string assembly request sent by a client in the process of loading a target Web page, wherein the character string assembly request carries assembly configuration data;
responding to the character string assembly request, and creating an array to obtain an array to be assigned;
acquiring a service data set to be assembled according to the assembly configuration data;
assigning the array to be assigned according to the service data set to be assembled to obtain a target array;
performing service data assembly according to the target array to obtain a target character string;
and sending the target character string to the client, and deleting the target array, wherein the target character string is used for enabling the client to load the target Web page.
2. The method for processing the service data of the Web page according to claim 1, wherein the character string assembly request is a request sent by the client when a target module of the target Web page is loaded, and the target module is a module developed based on JavaScript.
3. The method for processing the service data of the Web page according to claim 1, wherein the step of obtaining the service data set to be assembled according to the assembly configuration data includes:
acquiring data from a data source of the assembly configuration data according to the data value range of the assembly configuration data to obtain a service data set to be cached;
and storing the service data set to be cached in a stack to obtain the service data set to be assembled.
4. The method for processing the service data of the Web page according to claim 3, wherein the step of assigning the array to be assigned to obtain a target array according to the service data set to be assembled comprises:
respectively taking out each service data from the stacked service data sets to be assembled by adopting a cycle value taking mode and a PUSH mode to assign the array to be assigned;
and taking the array to be assigned after assignment as the target array.
5. The method for processing the service data of the Web page according to claim 1, wherein the step of assembling the service data according to the target array to obtain the target character string comprises:
and acquiring service data from the target array by adopting an array JION mode, assembling the acquired service data, and taking the assembled character string as the target character string.
6. The method for processing the service data of the Web page according to claim 5, wherein the step of acquiring the service data from the target array in a jiton manner of an array, assembling the acquired service data, and using the assembled character string as the target character string includes:
and acquiring service data from the target array by adopting an array JION mode, assembling the acquired service data by adopting a parameter separator of the assembly configuration data, and taking the assembled character string as the target character string.
7. The method for processing service data of Web page as claimed in claim 1, wherein the assembly configuration data includes a page identifier and a service function identifier, and the step of sending the target character string to the client includes:
and sending the target character string to the client according to the page identifier and the service function identifier.
8. A device for processing service data of a Web page, the device comprising:
the request acquisition module is used for acquiring a character string assembly request sent by a client in the process of loading a target Web page, wherein the character string assembly request carries assembly configuration data;
the array creating module is used for responding to the character string assembling request and creating an array to obtain an array to be assigned;
the service data set acquisition module to be assembled is used for acquiring the service data set to be assembled according to the assembly configuration data;
the target array determining module is used for assigning the array to be assigned according to the service data set to be assembled to obtain a target array;
the target character string determining module is used for assembling the service data according to the target array to obtain a target character string;
and the target character string feedback module is used for sending the target character string to the client and deleting the target array, wherein the target character string is used for enabling the client to load the target Web page.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110908886.XA 2021-08-09 2021-08-09 Method, device and equipment for processing service data of Web page and storage medium Pending CN113626103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110908886.XA CN113626103A (en) 2021-08-09 2021-08-09 Method, device and equipment for processing service data of Web page and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110908886.XA CN113626103A (en) 2021-08-09 2021-08-09 Method, device and equipment for processing service data of Web page and storage medium

Publications (1)

Publication Number Publication Date
CN113626103A true CN113626103A (en) 2021-11-09

Family

ID=78383751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110908886.XA Pending CN113626103A (en) 2021-08-09 2021-08-09 Method, device and equipment for processing service data of Web page and storage medium

Country Status (1)

Country Link
CN (1) CN113626103A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442756A (en) * 2019-06-27 2019-11-12 平安科技(深圳)有限公司 Data verification method, device, computer equipment and storage medium
CN112131287A (en) * 2019-06-24 2020-12-25 北京京东尚科信息技术有限公司 Method and device for reading data

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131287A (en) * 2019-06-24 2020-12-25 北京京东尚科信息技术有限公司 Method and device for reading data
CN110442756A (en) * 2019-06-27 2019-11-12 平安科技(深圳)有限公司 Data verification method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109492017B (en) Service information query processing method, system, computer equipment and storage medium
CN109032662B (en) Code file generation method and device, computer equipment and storage medium
CN109918079B (en) Rule updating method and device of rule engine system and computer equipment
CN112882974B (en) JSON data conversion method and device, computer equipment and storage medium
CN109840083B (en) Webpage component template construction method and device, computer equipment and storage medium
CN107729014B (en) Page jump method and structure based on Android
CN111563220A (en) Business website project construction method and device, computer equipment and storage medium
CN112905939B (en) HTML5 page resource loading method, device, equipment and storage medium
CN109597618B (en) Program development method, program development device, computer device, and storage medium
CN111831920A (en) User demand analysis method and device, computer equipment and storage medium
CN111191079A (en) Document content acquisition method, device, equipment and storage medium
CN114238811A (en) Page loading method, page request response method, device, equipment and medium
CN112306620A (en) Multi-language loading method and device for user-defined form control
CN112487163B (en) Execution method of automatic flow and method and device for acquiring interface data of execution method
CN115686606A (en) Method, device, system and medium for displaying item dependency tree
CN110609618A (en) Man-machine conversation method and device, computer equipment and storage medium
CN113126955A (en) Random data generation method and device, intelligent terminal and storage medium
CN113626103A (en) Method, device and equipment for processing service data of Web page and storage medium
CN110688400A (en) Data processing method, data processing device, computer equipment and storage medium
CN113468446B (en) Method, system and equipment for supporting identification of third party two-dimensional code data
CN110929188A (en) Method and device for rendering server page
CN113946615A (en) Data structuring processing method, device, equipment and storage medium
CN114756241A (en) Method and device for converting constructor, computer equipment and storage medium
CN114610973A (en) Information search matching method and device, computer equipment and storage medium
CN115098062A (en) Code generation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220523

Address after: 518000 China Aviation Center 2901, No. 1018, Huafu Road, Huahang community, Huaqiang North Street, Futian District, Shenzhen, Guangdong Province

Applicant after: Shenzhen Ping An medical and Health Technology Service Co.,Ltd.

Address before: Room 12G, Block H, 666 Beijing East Road, Huangpu District, Shanghai 200000

Applicant before: PING AN MEDICAL AND HEALTHCARE MANAGEMENT Co.,Ltd.

TA01 Transfer of patent application right