CN107168971A - The data processing method and device of web application - Google Patents

The data processing method and device of web application Download PDF

Info

Publication number
CN107168971A
CN107168971A CN201610128645.2A CN201610128645A CN107168971A CN 107168971 A CN107168971 A CN 107168971A CN 201610128645 A CN201610128645 A CN 201610128645A CN 107168971 A CN107168971 A CN 107168971A
Authority
CN
China
Prior art keywords
web application
server
format
type
data
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.)
Granted
Application number
CN201610128645.2A
Other languages
Chinese (zh)
Other versions
CN107168971B (en
Inventor
冯涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610128645.2A priority Critical patent/CN107168971B/en
Publication of CN107168971A publication Critical patent/CN107168971A/en
Application granted granted Critical
Publication of CN107168971B publication Critical patent/CN107168971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application discloses a kind of data processing method and device of web application.Wherein, this method includes:The front end of web application generates the first object by the first information of reception, wherein, the transformat of the data transmission format of the first object and the server of web application is mismatched;The front end of web application obtains the second object according to the transitional information obtained in advance, the data transmission format of the first object of conversion, wherein, the data transmission format of the second object is matched with the transformat of server;The front end of web application sends the second object to server.Present application addresses information correct and efficiently transmission between front end and backstage that BSON data in the prior art the problem of front and back is transmitted, can not realize web application.

Description

The data processing method and device of web application
Technical field
The application is related to internet arena, in particular to a kind of data processing method and device of web application.
Background technology
The data interaction of front and back is all the number using JSON forms in current many web applications (i.e. web applications) According to as shown in figure 1, conventional web application front and back interactions can be achieved by the steps of:
Step S101:Front end receiver user inputs.
Step S102:Front end is based on user's input generation JSON objects, and sends request to backstage.
Wherein, the request can be inquiry request, and the JSON objects are carried in the request.
Step S103:Backstage (such as server) is parsed to data, obtains analysis result.
Step S104:Backstage handles corresponding Batch Processing according to analysis result.
Step S105:Processing Batch Processing completes to feed back result.
But, when DMS for MongoDB are developed, customer terminal webpage receives after the information of user's input, When by the information of input according to BSON format transmissions (i.e. data type in MongoDB), BSON exceedes The processing category of server end, for example, user inputs following data:
{id:”123”,date:ISODate(),
"Timestamp":Timestamp(1445571810,1),
"Minkey":MinKey,
"Maxkey":MaxKey}
Above-mentioned data have exceeded JSON category due to attribute, cause data can not be transmitted in front end and backstage.
In addition, redundant field is used in form in importing and exporting of carrying of MongoDB, and MongoDB regulation data Key cannot be started with $, for example, transmission one MinKey type data be, it is not possible to by { $ minKey:1} It is used as MinKey data.Clearly, one is that the redundancy of field has directly deepened document to the shortcoming of this method Level, two be not possess versatility, and the premise that he can transmit BSON data is MongoDB people to define common number According to Key can not be started with $, that is, he can not even transmit { $ haha:" haha " as simple data.
For above-mentioned BSON data effective solution can not be not yet proposed at present the problem of front and back is transmitted.
The content of the invention
The embodiment of the present application provides a kind of data processing method and device of web application, at least to solve BSON data The technical problem that can not be transmitted in front and back.
According to the one side of the embodiment of the present application, there is provided a kind of data processing method of web application, this method bag Include:The front end of web application generates the first object by the first information of reception, wherein, the data of first object The transformat of transformat and the server of the web application is mismatched;The front end of the web application is according to advance The transitional information of acquisition, the data transmission format for changing first object obtains the second object, wherein, described second The data transmission format of object is matched with the transformat of the server;The front end of the web application is by described second Object is sent to the server.
According to the another aspect of the embodiment of the present application, a kind of data processing method of web application, this method are additionally provided Including:Server receives the second object that the front end of web application is sent, wherein, the data transfer of second object The transformat of form and the server matches;The server parses institute according to the transitional information obtained in advance The second object is stated, the first information that second object is carried is obtained.
According to the another aspect of the embodiment of the present application, a kind of data processing equipment of web application, the device are additionally provided The front end of web application is arranged on, including:Receiving unit, for generating the first object by the first information of reception, Wherein, the data transmission format of first object and the transformat of the server of the web application are mismatched;Turn Unit is changed, for according to the transitional information obtained in advance, the data transmission format for changing first object to obtain second Object, wherein, the data transmission format of second object is matched with the transformat of the server;Transmitting element, For second object to be sent to the server.
According to the another aspect of the embodiment of the present application, a kind of data processing equipment of web application, the device are additionally provided It is arranged on the server of web application, including:Receiving unit, for receiving the front end of web application is sent second Object, wherein, the data transmission format and the transformat of the server of second object match;Processing is single Member, for the server according to the transitional information obtained in advance, parses second object, obtains described second pair As the first information of carrying.
Using the above embodiments of the present application, after the first information of the front end based on reception generates the first object, conversion the The data transmission format of one object, its data transmission format is converted to the transformat of server, uses format transformation The second object afterwards is transmitted between front end and background server.By above-described embodiment, BSON formatted datas are convertible For the data of JSON forms, it is transmitted using the data of JSON forms between front end and server, server can With the data for the JSON forms for being properly received and parsing after the conversion, solving BSON data in the prior art can not be The problem of front and back is transmitted, realizes that the information of web application is correct between front end and backstage and efficient transmission.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen Schematic description and description please is used to explain the application, does not constitute the improper restriction to the application.In accompanying drawing In:
Fig. 1 is the interaction schematic diagram according to the interaction of web page front and back in the prior art;
Fig. 2 is a kind of hardware configuration frame of the terminal of the data processing method of web application of the embodiment of the present application Figure;
Fig. 3 is a kind of flow chart of the data processing method of optional web application according to the embodiment of the present application;
Fig. 4 is the schematic diagram interacted according to a kind of optional web application front and back of the embodiment of the present application;
Fig. 5 is a kind of flow chart of the data processing method of optional web application according to the embodiment of the present application;
Fig. 6 is a kind of flow chart of the data processing method of optional web application according to the embodiment of the present application;
Fig. 7 is a kind of schematic diagram of the data processing equipment of optional web application according to the embodiment of the present application;
Fig. 8 is a kind of schematic diagram two of the data processing equipment of optional web application according to the embodiment of the present application;
Fig. 9 is a kind of schematic diagram three or four of the data processing equipment of optional web application according to the embodiment of the present application;
Figure 10 is a kind of structured flowchart of terminal according to the embodiment of the present application.
Embodiment
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment The only embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ability The every other embodiment that domain those of ordinary skill is obtained under the premise of creative work is not made, should all belong to The scope of the application protection.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that this The data that sample is used can be exchanged in the appropriate case, so as to embodiments herein described herein can with except Here the order beyond those for illustrating or describing is implemented.In addition, term " comprising " and " having " and they Any deformation, it is intended that covering is non-exclusive to be included, for example, containing process, the side of series of steps or unit Method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include unclear It is that ground is listed or for the intrinsic other steps of these processes, method, product or equipment or unit.
First, the term that the application is related to is explained as follows:
MongoDB:Distribution type file data storage storehouse, can provide expansible for WEB application (i.e. web application) High-performance data storage solution.The data structure that the database is supported is bson forms, specifically, MongoDB Come data storage and network data exchange using this structures of BSON.
BSON:It is the storage format of the binary form of a species json, abbreviation Binary JSON, it and JSON Equally, embedded document object and array object is supported, but BSON has some no data types of JSON, such as Date and BinData types, wherein, Date types are date types, and BinData is binary type.
JSON, i.e. JavaScript Object Notation, are a kind of data interchange formats of lightweight.JSON Using being totally independent of the text formatting of language, but also using similar to C language family custom (including C, C++, C#, Java, JavaScript, Perl, Python etc.).
Embodiment 1
According to the embodiment of the present application, additionally provide a kind of embodiment of the method for the data processing method of web application, it is necessary to Illustrate, the step of the flow of accompanying drawing is illustrated can such as one group computer executable instructions department of computer science Performed in system, and, although logical order is shown in flow charts, but in some cases, can be with difference Shown or described step is performed in order herein.
The embodiment of the method that the embodiment of the present application one is provided can be in mobile terminal, terminal or similar fortune Calculate in device and perform.Exemplified by running on computer terminals, Fig. 2 is a kind of web application of the embodiment of the present application The hardware block diagram of the terminal of data processing method.As shown in Fig. 2 terminal 10 can include one (processor 102 can include but is not limited to Micro-processor MCV to individual or multiple (one is only shown in figure) processor 102 Or PLD FPGA etc. processing unit), the memory 104 for data storage and for communicating The transport module 106 of function.It will appreciated by the skilled person that the structure shown in Fig. 2 is only signal, its The structure to above-mentioned electronic installation does not cause to limit.For example, terminal 10 may also include than shown in Fig. 2 more Many either less components or with the configuration different from shown in Fig. 2.
The webpage that memory 104 can be used in the software program and module of storage application software, such as the embodiment of the present application Corresponding programmed instruction/the module of data processing method of application, processor 102 is stored in memory 104 by operation Interior software program and module, so as to perform various function application and data processing, that is, realize that above-mentioned webpage should Data processing method.Memory 104 may include high speed random access memory, may also include nonvolatile memory, Such as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, Memory 104 can further comprise the memory remotely located relative to processor 102, and these remote memories can be with Pass through network connection to terminal 10.The example of above-mentioned network include but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Transmitting device 106 is used to data are received or sent via a network.Above-mentioned network instantiation may include The wireless network that the communication providerses of terminal 10 are provided.In an example, transmitting device 106 includes one Network adapter (Network Interface Controller, NIC), it can pass through base station and other network equipments It is connected to be communicated with internet.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, it is used to wirelessly be communicated with internet.
Under above-mentioned running environment, this application provides the data processing method of web application as shown in Figure 3.Fig. 3 It is a kind of flow chart of the data processing method of optional web application according to the embodiment of the present application.
Step S302:The front end of web application generates the first object by the first information of reception, wherein, the first object Data transmission format and web application server transformat mismatch, the web application can for web application, The application program that web applies to access by web, the i.e. program by being performed on user browser.The webpage The front end of application can be the terminal for installing the browser, and user can input the first information on the terminal;Webpage should Server (or backstage) is used to handle the first information.
Step S304:The data transfer of the first object is changed according to the transitional information obtained in advance in the front end of web application Form obtains the second object, wherein, the data transmission format of the second object is matched with the transformat of server;
Step S306:The front end of web application sends the second object to server.
Using the above embodiments of the present application, after the first information of the front end based on reception generates the first object, conversion the The data transmission format of one object, its data transmission format is converted to the transformat of server, uses format transformation The second object afterwards is transmitted between front end and background server.By above-described embodiment, BSON formatted datas are convertible For the data of JSON forms, it is transmitted using the data of JSON forms between front end and server, server can With the data for the JSON forms for being properly received and parsing after the conversion, solving BSON data in the prior art can not be The problem of front and back is transmitted, realizes that the information of web application is correct between front end and backstage and efficient transmission.
Web application in above-described embodiment can be distribution type file data storage storehouse MongoDB web application, use Family can be asked by the front end input inquiry of the web application, to inquire about the data in the MongoDB.
The first object in above-described embodiment can be distribution type file data storage storehouse MongoDB BSON objects, the The JSON objects that two objects can parse for permission being serviced device.The transitional information obtained in advance can be to pre-set Translation-protocol or communications protocol, record has the corresponding type format of object type of BSON objects in the transitional information.
The above embodiments of the present application are described in detail with reference to Fig. 4.
As shown in figure 4, using the embodiment of the present application, distribution type file data storage storehouse MongoDB webpage front-end can Interact, can specifically interact in the following way with backstage:
Step S401:The first information of the front end receiver user input of web application.
Wherein, the first information can be the Query Information of data in Querying Distributed document data storage storehouse MongoDB.
Step S402:The front end of web application is based on the first information and generates BSON objects.
Step S403:BSON objects are converted to JSON pairs by the front end of web application according to the transitional information obtained in advance As.
Wherein it is possible to which according to the translation-protocol obtained in advance, the form of the object type of BSON objects is converted into correspondence Type format.
Step S404:The front end of web application sends JSON objects to background server.
Step S405:Background server is parsed according to the transitional information obtained in advance to JSON objects.
Specifically, background server is parsed according to the analysis mode of JSON objects to JSON objects, obtains JSON The value of object, is then changed according to the transitional information obtained in advance to the value of JSON objects, obtains carrying in JSON The first information in object.
Step S406:Background server performs the Batch Processing that the first information is indicated, obtains implementing result.
Wherein, the Batch Processing that the first information is indicated can be the business such as storage, renewal or inquiry, and the application is to this Do not limit.
Step S407:Implementing result is converted to the 3rd object by background server according to the transitional information obtained in advance.
Wherein, the data transmission format of the 3rd object meets distribution type file data storage storehouse MongoDB web application Front end transformat.
Step S408:3rd object is back to front end by background server.
Pass through above-described embodiment of the application, it is possible to achieve communication of the data of BSON forms between front end and backstage, The data of BSON forms efficiently, are intactly transmitted in front-end and back-end using which.
According to above-described embodiment of the application, the front end of web application is according to the transitional information obtained in advance, conversion first The data transmission format of object, which obtains the second object, to be included:It is and right in the transitional information that obtains in advance of front end inquiry As the corresponding type format of type, wherein, record has object type and type format in the transitional information obtained in advance Corresponding relation;In the case where inquiring type format corresponding with object type, front end passes the data of the first object Transport format is converted to type format, obtains the second object.
Specifically, before the data transmission format of the first object is converted to type format by front end, method also includes: Front end judges whether the data transmission format of object type matches with the transformat of server;Front end is by the first object The Data Format Transform changed includes into type format:If the data transmission format of object type and the transmission lattice of server Formula is mismatched, then the data transmission format of the first object is converted into type format.
Because BSON is the storage format of the binary form of a species json, BSON has some no numbers of JSON According to type, such as Date and BinData types, wherein, Date types are date types, and BinData is binary class Type;Similarly, BSON also has some data types that JSON has, such as null types.By above-described embodiment, use Simple data redundancy distinguishes each BSON type, can't deepen file structure, and above-described embodiment, is applicable The transmission of any BSON data, further, in above-described embodiment there is provided only have BSON and JSON do not have Some data types enter the scheme of row format conversion, can avoid having BSON and some data class that JSON also has Type carries out invalidation, so as to reduce the treating capacity of processor, improves processing speed.
Specifically, it can be recorded in transitional information as shown in table 1:Correspondence pass between object type and format transformation System.
Table 1
As shown in table 1, if object type is Binary binary types, form is converted to BinData (1, asdasaaaa), wherein, the first character string " 1 " in the type form represents binary data Type, second character string " asdasaaaa " represents it is the character obtained after being encoded to binary data BASE64 String, " " therein is not belonging to character string.
In table 1, Double represents that double-precision floating point type defines type, is a kind of types of variables for representing full mold variable; String represents character string, specifically, and outermost layer is wrapped up by two double quotation marks, wherein for Background scheduling FastJSON Can normally it be parsed when parsing, it is necessary to which Da Shang characters, before all words are all escapes herein, are needed in program Want escape (i.e. " " content " " be when write in a program as character string " and " content " "), its In, FastJSON is the instrument for parsing JSON categorical datas.
Undefined types in above-mentioned table 1 are in high-level programming language design application, for indicating Variable not yet carries out assignment with single equal sign, and its corresponding type format is:ObjectId object IDs ObjectId(2184129hj);Boolean data types, boolean variable storages are 8 (1 byte) Numeric form, but can only be True or False, its corresponding type format is:true/false;Date types: Date type, its corresponding type format is:ISODate (xxxxxxx), " xxxxxxx " therein is the date, such as 19860123;RegExp regular expression types, its corresponding type format is:RegExp(pattern,attr); JavaScript JavaScript are a kind of regime type, weak type, the language based on prototype, built-in support type, Its corresponding type format is:Function () var a=' 123 '+" haha ";Symbol(deprecate) Symbol (opposition), its corresponding type format is:Symbol (asfae), wherein, before middle spcial character needs Escape is held, spcial character is such as:“\-->\\”、“'-->' " and " " -->" " etc., wherein " " be not spcial character part.In addition, the corresponding type of 32 integer types of 32-bit Integer Form is:Number Int (123), therein 123 be concrete numerical value, 64 integer types of 64-bit Integer Corresponding type format is NumberLong (123), and therein 123 be concrete numerical value.Timestamp time marking classes Type, corresponding type format is:Timestamp (2738,1), therein, the second parameter in type format is one Under second number is several, first parameter be distance 1970 it is how many under.
It should be noted that the data of the MinKey and MaxKey types shown in table 1, without doing conversion especially.
Above-mentioned table 1 is a kind of manifestation mode of optional transitional information, but the application is not limited to the form of expression of the table 1.
Alternatively, the first object is BSON objects, and the data transmission format of the first object of conversion, which obtains the second object, to be included: BSON objects are converted into corresponding JSON objects, JSON character strings are obtained, wherein, JSON objects are second pair As.
In an optional embodiment, it is after generation BSON objects, BSON objects is converted into corresponding JSON Character string, carries out the communication on front end and backstage according to the form of JSON character strings, then enters it according to agreement on backstage Row parsing.
In another implementation, BSON objects can be changed according to corresponding type format, format transformation Afterwards, the JSON objects after format transformation are carried out to the communication on front end and backstage according to the form of JSON character strings.
Translation-protocol describes in detail as follows:
During the BSON formatted datas of front end are converted into JSON objects:
BSON Object objects:{“ch”:" " and easd " " be exactly subdocument, it is big as JSON Object Bracket is wrapped up.
BSON Array arrays:[a, b, c, d] is wrapped up as JSON Array by bracket.
Both of the above situation can be used to parse the instrument FASTJSON processing of JSON categorical datas, this species The BSON objects of type and common JSON objects judging without what difference, the type format of BSON objects and When the form for the JSON objects that server can be received and parsed through is consistent, row format conversion can not be entered to it.
In this embodiment, if BSON objects type format and server transformat (and/parsing form) no When consistent, enter row format conversion according to the transitional information obtained in advance, the data transmission format of BSON objects is converted to Corresponding type format, and be transmitted in transmitting procedure as JSON String, server receives the JSON After String, correspond to and parsed again on backstage).
Because being transmitted according to JSON String form, total data type outermost layer all covers one layer " " (double quotation marks), so that backstage can be parsed when carrying out JSON parsings first as character string on backstage, enters And JSON value can be carried out according to above-mentioned transitional information and analyze different Bson types.
According to above-described embodiment of the application, the second object is sent to server in the front end of web application, side Method also includes:The 3rd object that the front end receiver server of web application is returned, wherein, the 3rd object includes service Device performs the second information that the second object is obtained, and the data transmission format of the 3rd object meets the client of web application Transformat.
Alternatively, web application is the web application in distribution type file data storage storehouse.
Wherein, the data transmission format of the 3rd object meets distribution type file data storage storehouse MongoDB web application Front end transformat.
Specifically, background server conversion implementing result, can be corresponding according to the object type recorded in transitional information Type identification is changed, and obtaining final data structure is:
It will be transmitted by the above-mentioned result being converted to according to the form of character string, e.g., this data structure passes through FastJSON carries out being converted into that after character string front end can be sent to.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to one it is The combination of actions of row, but those skilled in the art should know, the application is not limited by described sequence of movement System, because according to the application, some steps can be carried out sequentially or simultaneously using other.Secondly, art technology Personnel should also know that embodiment described in this description belongs to preferred embodiment, involved action and module Not necessarily necessary to the application.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but The former is more preferably embodiment in many cases.Based on it is such understand, the technical scheme of the application substantially or Say that the part contributed to prior art can be embodied in the form of software product, the computer software product is deposited Storage is in a storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal Described in each embodiment of equipment (can be mobile phone, computer, server, or network equipment etc.) execution the application Method.
Embodiment 2
According to the embodiment of the present application, a kind of data processing method of the web application operated in hardware block diagram is additionally provided, As shown in figure 5, this method includes:
Step S501:Server receives the second object that the front end of web application is sent, wherein, the data of the second object The transformat of transformat and server matches;
Step S503:Server parses the second object according to the transitional information obtained in advance, obtains the carrying of the second object The first information.
Using the above embodiments of the present application, server receiving front-end send match with the transformat of server the Two objects, after the second object is received, parse the second object, obtain the first information of the second object carrying, In the embodiment, transmitted using the second object after format transformation between front end and background server.Pass through above-mentioned reality Example is applied, BSON formatted datas can be exchanged into the data of JSON forms, using the data of JSON forms in front end and service It is transmitted, server can be properly received and parse the data of the JSON forms after the conversion, solves existing between device Have BSON data in technology the problem of front and back is transmitted, can not realize the information of web application front end and after Correct and efficiently transmission between platform.
Web application in above-described embodiment can be distribution type file data storage storehouse MongoDB web application, use Family can be asked by the front end input inquiry of the web application, to inquire about the data in the MongoDB.
The first object in above-described embodiment can be distribution type file data storage storehouse MongoDB BSON objects, the The JSON objects that two objects can parse for permission being serviced device.The transitional information obtained in advance can be to pre-set Translation-protocol or communications protocol, record has the corresponding type format of object type of BSON objects in the transitional information.
According to above-described embodiment of the application, after the first information of the second object carrying is obtained, method can also be wrapped Include:Server performs the operation that the first information is indicated, obtains the second information;, will according to the transitional information obtained in advance Second information generates the 3rd object, wherein, the transmission lattice of the data transmission format of the 3rd object and the front end of web application Formula matches;The 3rd object is sent to the front end of web application.
Specifically, server parses the second object according to the transitional information obtained in advance, obtains the carrying of the second object The first information includes:Second object as character string, is determined the value of the second object by server;In turning for obtaining in advance Change in information, the type format belonging to the value of the object of server lookup second;Inquiring belonging to the value of the second object In the case of type format, server parses the first information carried in the second object according to type format.
As shown in fig. 6, the embodiment can be achieved by the steps of:
Step S601:The first information of the front end receiver user input of web application.
Wherein, the first information can be the Query Information of data in Querying Distributed document data storage storehouse MongoDB.
Step S602:The front end of web application is based on the first information and generates BSON objects.
Step S603:BSON objects are converted to JSON pairs by the front end of web application according to the transitional information obtained in advance As.
Wherein it is possible to which according to the translation-protocol obtained in advance, the form of the object type of BSON objects is converted into correspondence Type format.
Step S604:The front end of web application sends JSON objects to background server.
Above-mentioned steps S601 to step S604 is consistent with the implementation method of correspondence step in above-described embodiment 1, herein not Repeat again.
Step S605:Background server is parsed according to the transitional information obtained in advance to JSON objects.
Specifically, background server is parsed the second object received (JSON objects) as character string, is obtained The corresponding value of JSON objects is taken, after the value of JSON objects is obtained, can be looked into from the transitional information obtained in advance The corresponding type format of value of the JSON objects is found, it is parsed according to type format, specific analysis mode Referring to the above-mentioned description for table 1, obtain carrying the first information in JSON objects.
Step S606:Background server performs the Batch Processing that the first information is indicated, obtains implementing result.
Wherein, the Batch Processing that the first information is indicated can be the business such as storage, renewal or inquiry, and the application is to this Do not limit.
Step S607:Implementing result (is corresponded to the second above-mentioned letter by background server according to the transitional information obtained in advance Breath) be converted to the 3rd object.
Wherein, the data transmission format of the 3rd object meets distribution type file data storage storehouse MongoDB web application Front end transformat.
Specifically, background server conversion implementing result, obtaining final data structure is
This data structure carries out being converted into that after character string front end can be sent to by FastJSON.
Step S608:3rd object is back to front end by background server.
Pass through above-described embodiment of the application, it is possible to achieve communication of the data of BSON forms between front end and backstage, The data of BSON forms efficiently, are intactly transmitted in front-end and back-end using which.
Alternatively, the web application in above-described embodiment is the web application in distribution type file data storage storehouse.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to one it is The combination of actions of row, but those skilled in the art should know, the application is not limited by described sequence of movement System, because according to the application, some steps can be carried out sequentially or simultaneously using other.Secondly, art technology Personnel should also know that embodiment described in this description belongs to preferred embodiment, involved action and module Not necessarily necessary to the application.
Embodiment 3
According to the embodiment of the present application, a kind of webpage for being used to implement the data processing method of above-mentioned web application is additionally provided The data processing equipment of application, as shown in fig. 7, the device is arranged on the front end of web application, including:Receiving unit 71st, converting unit 73 and transmitting element 75.
Wherein, receiving unit is used to generate the first object by the first information received, wherein, the data of the first object The transformat of transformat and the server of web application is mismatched;
Converting unit is used for according to the transitional information obtained in advance, and the data transmission format of the first object of conversion obtains second Object, wherein, the data transmission format of the second object is matched with the transformat of server;
Transmitting element is used to send the second object to server.
Using the above embodiments of the present application, after the first information of the front end based on reception generates the first object, conversion the The data transmission format of one object, its data transmission format is converted to the transformat of server, uses format transformation The second object afterwards is transmitted between front end and background server.By above-described embodiment, BSON formatted datas are convertible For the data of JSON forms, it is transmitted using the data of JSON forms between front end and server, server can With the data for the JSON forms for being properly received and parsing after the conversion, solving BSON data in the prior art can not be The problem of front and back is transmitted, realizes that the information of web application is correct between front end and backstage and efficient transmission.
Web application in above-described embodiment can be distribution type file data storage storehouse MongoDB web application, use Family can be asked by the front end input inquiry of the web application, to inquire about the data in the MongoDB.
The first object in above-described embodiment can be distribution type file data storage storehouse MongoDB BSON objects, the The JSON objects that two objects can parse for permission being serviced device.The transitional information obtained in advance can be to pre-set Translation-protocol or communications protocol, record has the corresponding type format of object type of BSON objects in the transitional information.
Wherein, background server can be parsed according to the analysis mode of JSON objects to JSON objects, obtain JSON The value of object, is then changed according to the transitional information obtained in advance to the value of JSON objects, obtains carrying in JSON The first information in object.
Pass through above-described embodiment of the application, it is possible to achieve communication of the data of BSON forms between front end and backstage, The data of BSON forms efficiently, are intactly transmitted in front-end and back-end using which.
According to above-described embodiment of the application, converting unit includes:Enquiry module, the conversion obtained in advance for inquiring about In information, type format corresponding with object type, wherein, record has object type in the transitional information obtained in advance With the corresponding relation of type format;Modular converter, for inquiring the situation of type format corresponding with object type Under, the data transmission format of the first object is converted into type format, the second object is obtained.
Specifically, device also includes judging unit 81 as shown in Figure 8, for passing the data of the first object in front end Transport format is converted to before type format, front end judge object type data transmission format whether the transmission with server Form matches.
Modular converter includes:If the data transmission format of object type and the transformat of server are mismatched, by the The data transmission format of one object is converted to type format.
Because BSON is the storage format of the binary form of a species json, BSON has some no numbers of JSON According to type, such as Date and BinData types, wherein, Date types are date types, and BinData is binary class Type;Similarly, BSON also has some data types that JSON has, such as null types.By above-described embodiment, use Simple data redundancy distinguishes each BSON type, can't deepen file structure, and above-described embodiment, is applicable The transmission of any BSON data, further, in above-described embodiment there is provided only have BSON and JSON do not have Some data types enter the scheme of row format conversion, can avoid having BSON and some data class that JSON also has Type carries out invalidation, so as to reduce the treating capacity of processor, improves processing speed.
Alternatively, the first object is BSON objects, and converting unit includes:Object converting module, for by BSON pairs As being converted to corresponding JSON objects, JSON character strings are obtained, wherein, JSON objects are the second object.
In an optional embodiment, it is after generation BSON objects, BSON objects is converted into corresponding JSON Character string, carries out the communication on front end and backstage according to the form of JSON character strings, then enters it according to agreement on backstage Row parsing.
In another implementation, BSON objects can be changed according to corresponding type format, format transformation Afterwards, the JSON objects after format transformation are carried out to the communication on front end and backstage according to the form of JSON character strings.
Translation-protocol describes in detail as follows:
During the BSON formatted datas of front end are converted into JSON objects:
BSON Object objects:{“ch”:" " and easd " " be exactly subdocument, it is big as JSON Object Bracket is wrapped up.
BSON Array arrays:[a, b, c, d] is wrapped up as JSON Array by bracket.
Both of the above situation can be used to parse the instrument FASTJSON processing of JSON categorical datas, this species The BSON objects of type and common JSON objects judging without what difference, the type format of BSON objects and When the form for the JSON objects that server can be received and parsed through is consistent, row format conversion can not be entered to it.
In this embodiment, if BSON objects type format and server transformat (and/parsing form) no When consistent, enter row format conversion according to the transitional information obtained in advance, the data transmission format of BSON objects is converted to Corresponding type format, and be transmitted in transmitting procedure as JSON String, server receives the JSON After String, correspond to and parsed again on backstage).
Because being transmitted according to JSON String form, total data type outermost layer all covers one layer " " (double quotation marks), so that backstage can be parsed when carrying out JSON parsings first as character string on backstage, enters And JSON value can be carried out according to above-mentioned transitional information and analyze different Bson types.
Specifically, device can also include:Returning unit, for the front end of web application by the second object send to After server, the 3rd object of the front end receiver server return of web application, wherein, the 3rd object includes clothes Business device performs the second information that the second object is obtained, and the data transmission format of the 3rd object meets the client of web application Transformat.
Wherein, the data transmission format of the 3rd object meets distribution type file data storage storehouse MongoDB web application Front end transformat.
Specifically, background server conversion implementing result, obtaining final data structure is
This data structure carries out being converted into that after character string front end can be sent to by FastJSON.
Alternatively, web application is the web application in distribution type file data storage storehouse.
Modules provided in the present embodiment are identical with the application method that the corresponding step of embodiment of the method is provided, should Can also be identical with scene.It is noted, of course, that the scheme that above-mentioned module is related to can be not limited to above-mentioned implementation Content and scene in example, and above-mentioned module may operate in terminal or mobile terminal, can by software or Hardware is realized.
Embodiment 4
According to the embodiment of the present application, a kind of webpage for being used to implement the data processing method of above-mentioned web application is additionally provided The data processing equipment of application, as shown in figure 9, the device is arranged on the server of web application, including:Receive Unit 91 and processing unit 93.
Wherein, receiving unit, for receiving the second object that the front end of web application is sent, wherein, the second object The transformat of data transmission format and server matches;
Processing unit, for server according to the transitional information obtained in advance, parses the second object, obtains the second object The first information of carrying.
Using the above embodiments of the present application, server receiving front-end send match with the transformat of server the Two objects, after the second object is received, parse the second object, obtain the first information of the second object carrying, In the embodiment, transmitted using the second object after format transformation between front end and background server.Pass through above-mentioned reality Example is applied, BSON formatted datas can be exchanged into the data of JSON forms, using the data of JSON forms in front end and service It is transmitted, server can be properly received and parse the data of the JSON forms after the conversion, solves existing between device Have BSON data in technology the problem of front and back is transmitted, can not realize the information of web application front end and after Correct and efficiently transmission between platform.
Web application in above-described embodiment can be distribution type file data storage storehouse MongoDB web application, use Family can be asked by the front end input inquiry of the web application, to inquire about the data in the MongoDB.
The first object in above-described embodiment can be distribution type file data storage storehouse MongoDB BSON objects, the The JSON objects that two objects can parse for permission being serviced device.The transitional information obtained in advance can be to pre-set Translation-protocol or communications protocol, record has the corresponding type format of object type of BSON objects in the transitional information.
According to above-described embodiment of the application, device can also include:Execution unit, for taking obtaining the second object After the first information of band, the operation that the first information is indicated is performed, the second information is obtained;Generation unit, for according to The transitional information obtained in advance, by the second information generate the 3rd object, wherein, the data transmission format of the 3rd object with The transformat of the front end of web application matches;Transmitting element, for sending the 3rd object to the front end of web application.
Specifically, processing unit can include:Determining module, for as character string, the second object to be determined into second The value of object;Enquiry module, in the transitional information obtained in advance, inquiring about the type belonging to the value of the second object Form;Resolution unit, in the case where inquiring the type format belonging to the value of the second object, according to type lattice Formula parses the first information carried in the second object.
Modules provided in the present embodiment are identical with the application method that the corresponding step of embodiment of the method is provided, should Can also be identical with scene.It is noted, of course, that the scheme that above-mentioned module is related to can be not limited to above-mentioned implementation Content and scene in example, and above-mentioned module may operate in terminal or mobile terminal, can by software or Hardware is realized.
Embodiment 5
Embodiments herein can provide a kind of terminal or server, and the terminal can be computer Any one computer terminal in terminal group.Alternatively, in the present embodiment, above computer terminal also may be used To replace with the terminal devices such as mobile terminal.
Alternatively, in the present embodiment, above computer terminal can be located in multiple network equipments of computer network At least one network equipment.
In the present embodiment, above computer terminal can perform following steps in the data processing method of web application:
Step S2:The front end of web application generates the first object by the first information of reception, wherein, the first object The transformat of the server of data transmission format and web application is mismatched;
Step S4:The data transfer lattice of the first object are changed according to the transitional information obtained in advance in the front end of web application Formula obtains the second object, wherein, the data transmission format of the second object is matched with the transformat of server;
Step S6:The front end of web application sends the second object to server.
Using the above embodiments of the present application, after the first information of the front end based on reception generates the first object, conversion the The data transmission format of one object, its data transmission format is converted to the transformat of server, uses format transformation The second object afterwards is transmitted between front end and background server.By above-described embodiment, BSON formatted datas are convertible For the data of JSON forms, it is transmitted using the data of JSON forms between front end and server, server can With the data for the JSON forms for being properly received and parsing after the conversion, solving BSON data in the prior art can not be The problem of front and back is transmitted, realizes that the information of web application is correct between front end and backstage and efficient transmission.
Web application in above-described embodiment can be distribution type file data storage storehouse MongoDB web application, use Family can be asked by the front end input inquiry of the web application, to inquire about the data in the MongoDB.
In the present embodiment, above computer terminal can perform following steps in the data processing method of web application:
Step S1:Server receives the second object that the front end of web application is sent, wherein, the data of the second object are passed The transformat of transport format and server matches;
Step S3:Server parses the second object according to the transitional information obtained in advance, obtains the carrying of the second object The first information.
Using the above embodiments of the present application, server receiving front-end send match with the transformat of server the Two objects, after the second object is received, parse the second object, obtain the first information of the second object carrying, In the embodiment, transmitted using the second object after format transformation between front end and background server.Pass through above-mentioned reality Example is applied, BSON formatted datas can be exchanged into the data of JSON forms, using the data of JSON forms in front end and service It is transmitted, server can be properly received and parse the data of the JSON forms after the conversion, solves existing between device Have BSON data in technology the problem of front and back is transmitted, can not realize the information of web application front end and after Correct and efficiently transmission between platform.
Alternatively, Figure 10 is a kind of structured flowchart of terminal according to the embodiment of the present application.As shown in Figure 10, Terminal A can include:One or more (one is only shown in figure) processors 1001, memory 1003, And transmitting device 1005.
Wherein, the web application that memory 1003 can be used in storage software program and module, such as the embodiment of the present application The corresponding programmed instruction/module of data processing method, processor 1001 by operation be stored in memory 1003 Software program and module, so as to perform various function application and data processing, that is, realize above-mentioned web application Data processing method.Memory 1003 may include high speed random access memory, can also include nonvolatile memory, such as One or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, Memory 1003 can further comprise the memory remotely located relative to processor, and these remote memories can pass through Network connection is to terminal A.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, shifting Dynamic communication network and combinations thereof.
Above-mentioned transmitting device 1005 is used to data are received or sent via a network.Above-mentioned network instantiation It may include cable network and wireless network.In an example, transmitting device 1005 includes a network adapter (Network Interface Controller, NIC), it can pass through netting twine and other network equipments and router phase Connect to be communicated with internet or LAN.In an example, transmitting device 1005 is radio frequency (Radio Frequency, RF) module, it is used to wirelessly be communicated with internet.
It will appreciated by the skilled person that the structure shown in Figure 10 is only signal, terminal can also be Smart mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, applause computer and mobile internet device The terminal device such as (Mobile Internet Devices, MID), PAD.Figure 10 its not to above-mentioned electronic installation Structure cause limit.For example, terminal A may also include the component more or less than shown in Figure 10 (such as Network interface, display device etc.), or with the configuration different from shown in Figure 10.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can be with Completed by program come the device-dependent hardware of command terminal, the program can be stored in a computer-readable storage medium In matter, storage medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), deposit at random Take device (Random Access Memory, RAM), disk or CD etc..
Embodiment 6
Embodiments herein additionally provides a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium It can be used for preserving the program code performed by the data processing method for the web application that above-described embodiment one is provided.
Alternatively, in the present embodiment, above-mentioned storage medium can be located in computer network Computer terminal group In any one terminal, or in any one mobile terminal in mobile terminal group.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
Step S2:The front end of web application generates the first object by the first information of reception, wherein, the first object The transformat of the server of data transmission format and web application is mismatched;
Step S4:The data transfer lattice of the first object are changed according to the transitional information obtained in advance in the front end of web application Formula obtains the second object, wherein, the data transmission format of the second object is matched with the transformat of server;
Step S6:The front end of web application sends the second object to server.
Using the above embodiments of the present application, after the first information of the front end based on reception generates the first object, conversion the The data transmission format of one object, its data transmission format is converted to the transformat of server, uses format transformation The second object afterwards is transmitted between front end and background server.By above-described embodiment, BSON formatted datas are convertible For the data of JSON forms, it is transmitted using the data of JSON forms between front end and server, server can With the data for the JSON forms for being properly received and parsing after the conversion, solving BSON data in the prior art can not be The problem of front and back is transmitted, realizes that the information of web application is correct between front end and backstage and efficient transmission.
Web application in above-described embodiment can be distribution type file data storage storehouse MongoDB web application, use Family can be asked by the front end input inquiry of the web application, to inquire about the data in the MongoDB.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:
Step S1:Server receives the second object that the front end of web application is sent, wherein, the data of the second object are passed The transformat of transport format and server matches;
Step S3:Server parses the second object according to the transitional information obtained in advance, obtains the carrying of the second object The first information.
Using the above embodiments of the present application, server receiving front-end send match with the transformat of server the Two objects, after the second object is received, parse the second object, obtain the first information of the second object carrying, In the embodiment, transmitted using the second object after format transformation between front end and background server.Pass through above-mentioned reality Example is applied, BSON formatted datas can be exchanged into the data of JSON forms, using the data of JSON forms in front end and service It is transmitted, server can be properly received and parse the data of the JSON forms after the conversion, solves existing between device Have BSON data in technology the problem of front and back is transmitted, can not realize the information of web application front end and after Correct and efficiently transmission between platform.
Above-mentioned the embodiment of the present application sequence number is for illustration only, and the quality of embodiment is not represented.
In above-described embodiment of the application, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, may refer to the associated description of other embodiment.
, can be by other in several embodiments provided herein, it should be understood that disclosed technology contents Mode realize.Wherein, device embodiment described above is only schematical, such as division of described unit, It is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, institute Display or the coupling each other discussed or direct-coupling or communication connection can be by some interfaces, unit or mould The INDIRECT COUPLING of block or communication connection, can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to On multiple NEs.Some or all of unit therein can be selected to realize the present embodiment according to the actual needs The purpose of scheme.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit realized using in the form of SFU software functional unit and as independent production marketing or in use, It can be stored in a computer read/write memory medium.Understood based on such, the technical scheme essence of the application On all or part of the part that is contributed in other words to prior art or the technical scheme can be with software product Form is embodied, and the computer software product is stored in a storage medium, including some instructions are to cause one Platform computer equipment (can be personal computer, server or network equipment etc.) performs each embodiment institute of the application State all or part of step of method.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD Etc. it is various can be with the medium of store program codes.
Described above is only the preferred embodiment of the application, it is noted that for the ordinary skill people of the art For member, on the premise of the application principle is not departed from, some improvements and modifications can also be made, these improve and moistened Decorations also should be regarded as the protection domain of the application.

Claims (19)

1. a kind of data processing method of web application, it is characterised in that including:
The front end of web application generates the first object by the first information of reception, wherein, first object Data transmission format and the transformat of the server of the web application are mismatched;
The front end of the web application is according to the transitional information obtained in advance, and the data for changing first object are passed Transport format obtains the second object, wherein, the data transmission format of second object and the transmission of the server Format match;
The front end of the web application sends second object to the server.
2. according to the method described in claim 1, it is characterised in that the front end of the web application according to obtaining in advance Transitional information, the data transmission format of conversion first object, which obtains the second object, to be included:
The front end is inquired about in the transitional information obtained in advance, type format corresponding with object type, its In, record has the object type and the corresponding relation of the type format in the transitional information obtained in advance;
In the case where inquiring type format corresponding with the object type, the front end is by described first pair The data transmission format of elephant is converted to the type format, obtains second object.
3. method according to claim 2, it is characterised in that
It is described before the data transmission format of first object is converted to the type format by the front end Method also includes:The front end judge the object type data transmission format whether the biography with the server Transport format matches;
The front end includes the Data Format Transform that first object is changed into the type format:If described The data transmission format of object type and the transformat of the server are mismatched, then by first object Data transmission format is converted to the type format.
4. according to the method described in claim 1, it is characterised in that first object is BSON objects, conversion is described The data transmission format of first object, which obtains the second object, to be included:
The BSON objects are converted into corresponding JSON objects, JSON character strings are obtained, wherein, it is described JSON objects are second object.
5. according to the method described in claim 1, it is characterised in that in the front end of the web application by described second pair As sending to the server, methods described also includes:
The 3rd object that server described in the front end receiver of the web application is returned, wherein, the 3rd object Include the server and perform the second information that second object is obtained, the data transfer of the 3rd object Form meets the transformat of the client of the web application.
6. method as claimed in any of claims 1 to 5, it is characterised in that the web application is distribution The web application in formula document data storage storehouse.
7. a kind of data processing method of web application, it is characterised in that including:
Server receives the second object that the front end of web application is sent, wherein, the data of second object are passed Transport format and the transformat of the server match;
The server parses second object, obtains described second pair according to the transitional information obtained in advance As the first information of carrying.
8. method according to claim 7, it is characterised in that obtaining the first information that second object is carried Afterwards, methods described also includes:
The server performs the operation that the first information is indicated, obtains the second information;
According to the transitional information obtained in advance, second information is generated into the 3rd object, wherein, it is described The data transmission format and the transformat of the front end of the web application of 3rd object match;
The 3rd object is sent to the front end of the web application.
9. method according to claim 7, it is characterised in that the server according to the transitional information obtained in advance, Second object is parsed, obtaining the first information of the second object carrying includes:
Second object as character string, is determined the value of second object by the server;
In the transitional information obtained in advance, the class described in the server lookup belonging to the value of the second object Type form;
In the case where inquiring the type format belonging to the value of second object, the server is according to described Type format parses the first information carried in second object.
10. the method according to claim 7 or 8, it is characterised in that the web application stores for distribution type file The web application of database.
11. a kind of data processing equipment of web application, it is characterised in that be arranged on the front end of web application, including:
Receiving unit, for generating the first object by the first information of reception, wherein, first object Data transmission format and the transformat of the server of the web application are mismatched;
Converting unit, for according to the transitional information obtained in advance, changing the data transfer lattice of first object Formula obtains the second object, wherein, the data transmission format of second object and the transformat of the server Matching;
Transmitting element, for second object to be sent to the server.
12. device according to claim 11, it is characterised in that the converting unit includes:
Enquiry module, for inquiring about in the transitional information obtained in advance, type lattice corresponding with object type Formula, wherein, record has the object type and pair of the type format in the transitional information obtained in advance It should be related to;
Modular converter, in the case where inquiring type format corresponding with the object type, by described in The data transmission format of first object is converted to the type format, obtains second object.
13. device according to claim 12, it is characterised in that
Described device also includes:Judging unit, in the front end by the data transfer lattice of first object Formula is converted to before the type format, the front end judge the object type data transmission format whether with The transformat of the server matches;
The modular converter includes:If the data transmission format of the object type and the transmission lattice of the server Formula is mismatched, then the data transmission format of first object is converted into the type format.
14. device according to claim 11, it is characterised in that first object is BSON objects, described turn Changing unit includes:
Object converting module, for the BSON objects to be converted into corresponding JSON objects, obtains JSON Character string, wherein, the JSON objects are second object.
15. device according to claim 11, it is characterised in that described device also includes:
Returning unit, for the front end of the web application by second object send to the server it Afterwards, the 3rd object that server described in the front end receiver of the web application is returned, wherein, the 3rd object Include the server and perform the second information that second object is obtained, the data transfer of the 3rd object Form meets the transformat of the client of the web application.
16. the device according to any one in claim 11 to 15, it is characterised in that the web application is to divide The web application in cloth document data storage storehouse.
17. a kind of data processing equipment of web application, it is characterised in that be arranged on the server of web application, including:
Receiving unit, for receiving the second object that the front end of web application is sent, wherein, second object Data transmission format and the transformat of the server match;
Processing unit, for the server according to the transitional information obtained in advance, parses second object, Obtain the first information that second object is carried.
18. device according to claim 17, it is characterised in that described device also includes:
Execution unit, for after the first information that second object is carried is obtained, performing first letter The operation indicated is ceased, the second information is obtained;
Generation unit, for according to the transitional information obtained in advance, second information to be generated into the 3rd pair As, wherein, the data transmission format and the transformat phase of the front end of the web application of the 3rd object Match somebody with somebody;
Transmitting element, for sending the 3rd object to the front end of the web application.
19. device according to claim 17, it is characterised in that the processing unit includes:
Determining module, for as character string, second object to be determined into the value of second object;
Enquiry module, in the transitional information obtained in advance, belonging to the value for inquiring about second object Type format;
Resolution unit, in the case where inquiring the type format belonging to the value of second object, according to The type format parses the first information carried in second object.
CN201610128645.2A 2016-03-07 2016-03-07 Data processing method and device for webpage application Active CN107168971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610128645.2A CN107168971B (en) 2016-03-07 2016-03-07 Data processing method and device for webpage application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610128645.2A CN107168971B (en) 2016-03-07 2016-03-07 Data processing method and device for webpage application

Publications (2)

Publication Number Publication Date
CN107168971A true CN107168971A (en) 2017-09-15
CN107168971B CN107168971B (en) 2020-10-27

Family

ID=59849756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610128645.2A Active CN107168971B (en) 2016-03-07 2016-03-07 Data processing method and device for webpage application

Country Status (1)

Country Link
CN (1) CN107168971B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862084A (en) * 2017-11-28 2018-03-30 湖北三新文化传媒有限公司 Data managing method, device and storage medium based on web services
CN109062560A (en) * 2018-07-25 2018-12-21 北京百度网讯科技有限公司 Method and apparatus for generating information
CN109214196A (en) * 2018-08-13 2019-01-15 阿里巴巴集团控股有限公司 A kind of data interactive method, device and equipment
CN111628956A (en) * 2019-02-28 2020-09-04 阿里巴巴集团控股有限公司 Format conversion method, device and system for network request transmission data
CN111726260A (en) * 2019-03-21 2020-09-29 阿里巴巴集团控股有限公司 Test method, device and system for format conversion of network request reply information
CN112256445A (en) * 2020-07-24 2021-01-22 北京沃东天骏信息技术有限公司 Data processing method, device and equipment based on application program and storage medium
CN113438187A (en) * 2021-06-23 2021-09-24 广州极飞科技股份有限公司 Data transmission method, device, transmission equipment and readable storage medium
WO2021197183A1 (en) * 2020-03-30 2021-10-07 阿里巴巴集团控股有限公司 Path recognition method, device and system
CN110865973B (en) * 2018-08-08 2021-12-07 马上消费金融股份有限公司 Data processing method and equipment and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355471A (en) * 2011-06-14 2012-02-15 上海雷腾软件有限公司 Dual-source distributed method for collection of car position data and system thereof
CN103491135A (en) * 2013-09-02 2014-01-01 用友软件股份有限公司 Device and method for conducting self-matching on data formats
US9258580B1 (en) * 2014-12-10 2016-02-09 IP-Com, LLC Dissemination of video files to mobile computing devices over a communications network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355471A (en) * 2011-06-14 2012-02-15 上海雷腾软件有限公司 Dual-source distributed method for collection of car position data and system thereof
CN103491135A (en) * 2013-09-02 2014-01-01 用友软件股份有限公司 Device and method for conducting self-matching on data formats
US9258580B1 (en) * 2014-12-10 2016-02-09 IP-Com, LLC Dissemination of video files to mobile computing devices over a communications network

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107862084A (en) * 2017-11-28 2018-03-30 湖北三新文化传媒有限公司 Data managing method, device and storage medium based on web services
CN109062560A (en) * 2018-07-25 2018-12-21 北京百度网讯科技有限公司 Method and apparatus for generating information
CN110865973B (en) * 2018-08-08 2021-12-07 马上消费金融股份有限公司 Data processing method and equipment and related device
CN109214196A (en) * 2018-08-13 2019-01-15 阿里巴巴集团控股有限公司 A kind of data interactive method, device and equipment
CN109214196B (en) * 2018-08-13 2022-04-19 创新先进技术有限公司 Data interaction method, device and equipment
CN111628956A (en) * 2019-02-28 2020-09-04 阿里巴巴集团控股有限公司 Format conversion method, device and system for network request transmission data
CN111726260A (en) * 2019-03-21 2020-09-29 阿里巴巴集团控股有限公司 Test method, device and system for format conversion of network request reply information
CN111726260B (en) * 2019-03-21 2023-09-08 阿里巴巴集团控股有限公司 Method, device and system for testing format conversion of network request reply information
WO2021197183A1 (en) * 2020-03-30 2021-10-07 阿里巴巴集团控股有限公司 Path recognition method, device and system
CN112256445A (en) * 2020-07-24 2021-01-22 北京沃东天骏信息技术有限公司 Data processing method, device and equipment based on application program and storage medium
CN113438187A (en) * 2021-06-23 2021-09-24 广州极飞科技股份有限公司 Data transmission method, device, transmission equipment and readable storage medium
CN113438187B (en) * 2021-06-23 2022-12-27 广州极飞科技股份有限公司 Data transmission method, device, transmission equipment and readable storage medium

Also Published As

Publication number Publication date
CN107168971B (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN107168971A (en) The data processing method and device of web application
CN103944813A (en) Gateway and method for achieving general adaptation function
CN106446049B (en) A kind of page data interactive device and method
CN107636602A (en) A kind of data processing method and data processing equipment
CN108449407A (en) Multi-source heterogeneous coal mine safety monitoring collecting method
CN105068854B (en) A kind of method that the control to different product is realized using same rule
CN110445860B (en) Message sending method, device, terminal equipment and storage medium
CN107302443A (en) Equipment configuration method and device based on network configuration protocol
CN104767714B (en) A kind of ID and the correlating method of user resources information, terminal and system
WO2005045646A2 (en) Trade engine processing of mass quote messages with market data message format
CN110119292A (en) System operational parameters querying method, matching process, device and node device
CN107360000A (en) Counter inspection method and device
CN111683066A (en) Heterogeneous system integration method and device, computer equipment and storage medium
CN109815286A (en) A kind of adaptive telemetry of launch vehicle system and its implementation
CN100518080C (en) Method and system for the transfer of communication network administration information
CN110020243A (en) Querying method, device, Internet of Things server and the storage medium of internet of things data
CN105227599B (en) The recognition methods of Web applications and device
CN107947897A (en) Information coding method and device for network transmission
CN110366164A (en) The method of remote control terminal, terminal, calculates equipment and storage medium at server
CN105191419B (en) It enables the device to find to service via network controller or group owner
CN103561317A (en) Conditional access card CAM and data processing method
CN103473376B (en) Data processing method and client
CN109040338A (en) The address IPv6 source tracing method based on space-time
CN109525550A (en) A kind of processing method of data message, device and system
CN112787858B (en) Data model parameter configuration method and device, electronic device and storage medium

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
GR01 Patent grant
GR01 Patent grant