CN108733499A - Browser page display data processing method and processing device - Google Patents

Browser page display data processing method and processing device Download PDF

Info

Publication number
CN108733499A
CN108733499A CN201810518537.5A CN201810518537A CN108733499A CN 108733499 A CN108733499 A CN 108733499A CN 201810518537 A CN201810518537 A CN 201810518537A CN 108733499 A CN108733499 A CN 108733499A
Authority
CN
China
Prior art keywords
display
display data
module
data
database
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
CN201810518537.5A
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.)
Beijing Jingdong Financial Technology Holding Co Ltd
Original Assignee
Beijing Jingdong Financial Technology Holding 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 Beijing Jingdong Financial Technology Holding Co Ltd filed Critical Beijing Jingdong Financial Technology Holding Co Ltd
Priority to CN201810518537.5A priority Critical patent/CN108733499A/en
Publication of CN108733499A publication Critical patent/CN108733499A/en
Pending legal-status Critical Current

Links

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes

Abstract

Present disclose provides a kind of browser page display data processing method and processing devices, are related to Internet technical field, and wherein device includes:Front end Display processing module, the display data for receiving display module transmission handle request, and display data process instruction is requested to generate based on display data processing;Back end data service module carries out database manipulation according to display data process instruction, obtains corresponding display data for receiving display data process instruction by communication connection, and display data is sent to front end Display processing module by communication connection;Front end Display processing module is made display module obtain display data by way of shared drive and is shown in a browser.Disclosed method and device, the data of display module can be shown and be decoupled with the database manipulation carried out, reduced code redundancy, improve development efficiency and the operational efficiency and performance of database, the data more row response performance of front end browser can be improved, convenient for safeguarding.

Description

Browser page display data processing method and processing device
Technical field
This disclosure relates to Internet technical field more particularly to a kind of browser page display data processing method and dress It sets.
Background technology
Currently, internet electric business business development is rapid, and in the case where web front-end develops rapidly, traditional development scheme , through being not suitable for nowadays complicated huge front end system, various modularizations, the method for Module Development Method start gradually to be carried by people for oneself Go out and is applied to practice.For example, Web Component standards and the standards such as various template instructions and Vue frames that W3C is proposed With technology.Display module in browser page is for showing and updating the data, in current development process, display module Can generally be coupled for carrying out the code of data displaying and the code of progress database manipulation, which greatly increases Code redundancy, and development efficiency is reduced, also, can then reduce database when there is multiple display modules to be carried out at the same time data synchronization Operational efficiency and performance.
Invention content
In view of this, the invention solves a technical problem be to provide a kind of browser page display data processing side Method and device.
According to one aspect of the disclosure, a kind of browser page display data processing unit is provided, including:Front end is shown Processing module is deployed in browser end, and the display data for receiving display module transmission handles request, is based on the displaying number Display data process instruction is requested to generate according to processing;Back end data service module, is deployed in server end, for passing through communication link The display data process instruction is received, database manipulation is carried out according to the display data process instruction, is obtained corresponding The display data is sent to the front end Display processing module by display data by the communication connection;The front end is aobvious Show processing module, is additionally operable to make by way of shared drive the display module to obtain the display data and in a browser It is shown.
Optionally, described communicate to connect includes:The HTTP connections established between browser and server;The front end is aobvious Show processing module, for being parsed to display data processing request, obtains corresponding with the display data for needing to obtain Display data parameter, generate display data processing according to the display data parameter and based on the first preset format and refer to It enables;It is connected using the HTTP and the display data process instruction is sent to the Back end data by sending HTTP request Service module.
Optionally, the front end Display processing module is asked for sending the HTTP by AJAX modes in a browser It asks.
Optionally, the display module is Vue components, and the front end Display processing module is using described in Vuex schema managements Display data;Wherein, the display data is global variable, the displaying number that the front end Display processing module will receive According to being put into shared drive, so that the display module reads the display data from shared drive.
Optionally, the front end Display processing module creates described aobvious for building page structure using Vue.js frames Show component, redirects and start for display module setting routing, realize carry of the display module in the page.
Optionally, the Back end data service module, for obtaining preset database manipulation configuration file, according to described Database manipulation configuration file obtains database linkage information and SQL statement corresponding with the display data process instruction, Library link information and the SQL statement carry out database manipulation based on the data, to obtain the display data.
Optionally, the Back end data service module, including:Service interface module, for being carried out to the HTTP request Parsing, obtains the display data process instruction, the display data parameter is extracted from the display data process instruction;Number According to processing module, for obtaining the database linkage information from the database manipulation configuration file;From the database Database field mapping relations are obtained in operative configuration file, are obtained and the displaying according to the Database field mapping relations The corresponding Database field of data parameters, based on the data library field generate the SQL statement;Data execution module is used Database is connected in library link information based on the data and the SQL statement is executed in this database, it is described to obtain Display data;Wherein, the database includes:MySql,SQL Server,MariaDB.
Optionally, the service interface module is additionally operable to the display data being based on described in the generation of the second preset format Display data is simultaneously sent to the front end Display processing module by the communication connection;Wherein, first preset format and Second preset format includes:XML or JSON formats.
Optionally, the data execution module, for passing through jave Promise object implementatio8s based on the SQL statement Database executes function and obtains the display data to execute the SQL statement by asynchronous system.
According to another aspect of the present invention, a kind of browser page display data processing method is provided, including:In browser Front end Display processing module is affixed one's name in end, and Back end data service module is disposed in server end;The front end Display processing module connects The display data processing request that display module is sent is received, requesting to generate display data processing based on display data processing refers to It enables;The Back end data service module receives the display data process instruction by communicating to connect, according to the display data Process instruction carries out database manipulation, obtains corresponding display data;The Back end data service module is by the display data It is sent to the front end Display processing module by the communication connection;The front end Display processing module passes through shared drive Mode makes the display module obtain the display data and is shown in a browser.
Optionally, described communicate to connect includes:The HTTP connections established between browser and server;The method is also Including:The front end Display processing module parses display data processing request, obtains the displaying obtained with needs The corresponding display data parameter of data;The front end Display processing module is according to the display data parameter and pre- based on first If format generates the display data process instruction;The front end Display processing module is connected using the HTTP and passes through transmission The display data process instruction is sent to the Back end data service module by HTTP request.
Optionally, the front end Display processing module sends the HTTP request by AJAX modes in a browser.
Optionally, the display module is Vue components, and the front end Display processing module is using described in Vuex schema managements Display data;The front end Display processing module makes the display module obtain the display data by way of shared drive Including:The display data received is put into shared drive by the front end Display processing module, so that the display group Part reads the display data from shared drive;Wherein, the display data is global variable.
Optionally, the front end Display processing module builds page structure using Vue.js frames, creates the display group Part redirects and starts for display module setting routing, realizes carry of the display module in the page.
Optionally, described that database manipulation is carried out according to the display data process instruction, obtains corresponding display data Including:The Back end data service module obtains preset database manipulation configuration file, is configured according to the database manipulation File acquisition database linkage information and SQL statement corresponding with the display data process instruction;The Back end data clothes Library link information and the SQL statement carry out database manipulation to module of being engaged in based on the data, to obtain the display data.
Optionally, the Back end data service module includes:Service interface module, data processing module and data execute mould Block;The method further includes:The service interface module parses the HTTP request, obtains the display data processing Instruction, extracts the display data parameter from the display data process instruction;The data processing module is from the data The database linkage information is obtained in the operative configuration file of library;The data processing module configures text from the database manipulation Database field mapping relations are obtained in part, are obtained and the display data parameter phase according to the Database field mapping relations Corresponding Database field, based on the data library field generate the SQL statement;The data execution module is based on the number Database is connected according to library link information and executes the SQL statement in this database, to obtain the display data;Its In, the database includes:MySql,SQL Server,MariaDB.
Optionally, the display data is based on the second preset format and generates the display data by the service interface module And the front end Display processing module is sent to by the communication connection;Wherein, first preset format and second is preset Format includes:XML or JSON formats.
Optionally, the data execution module execution SQL statement includes:The data execution module passes through jave Database of the Promise object implementatio8s based on the SQL statement executes function, to execute the SQL languages by asynchronous system Sentence, obtains the display data.
According to another aspect of the invention, a kind of browser page display data processing unit is provided, including:Memory; And it is coupled to the processor of the memory, the processor is configured as based on the instruction being stored in the memory, Execute method as described above.
In accordance with a further aspect of the present invention, a kind of computer readable storage medium, the computer-readable storage medium are provided Matter is stored with computer instruction, and described instruction is executed by processor method as described above.
The browser page display data processing method and processing device of the disclosure is based on display by front end Display processing module The data processing request that component is sent generates display data process instruction, and Back end data service module is handled according to display data to be referred to It enables and carries out database manipulation, obtain corresponding display data and return to front end Display processing module, front end Display processing module is logical Crossing the mode of shared drive makes display module obtain display data and is shown in a browser;It can be by the number of display module It is decoupled with the database manipulation carried out according to displaying, reduces code redundancy, improve development efficiency and the fortune of database Line efficiency and performance can improve the data more row response performance of front end browser.
Description of the drawings
In order to illustrate more clearly of the embodiment of the present disclosure or technical solution in the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only Some embodiments of the present disclosure, for those of ordinary skill in the art, without having to pay creative labor, also It can be obtain other attached drawings according to these attached drawings.
Fig. 1 is the module diagram according to one embodiment of the browser page display data processing unit of the disclosure;
Fig. 2 is to be shown according to the Data Stream Processing of one embodiment of the browser page display data processing unit of the disclosure It is intended to;
Fig. 3 is to be illustrated according to the module of another embodiment of the browser page display data processing unit of the disclosure Figure;
Fig. 4 is the flow diagram according to one embodiment of the browser page display data processing method of the disclosure;
Fig. 5 is to be illustrated according to the module of another embodiment of the browser page display data processing unit of the disclosure Figure.
Specific implementation mode
The disclosure is described more fully with reference to the accompanying drawings, wherein illustrating the exemplary embodiment of the disclosure.Under Face will combine the attached drawing in the embodiment of the present disclosure, and the technical solution in the embodiment of the present disclosure is clearly and completely described, and show So, described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Based on the reality in the disclosure Example is applied, every other embodiment obtained by those of ordinary skill in the art without making creative efforts all belongs to In the range of disclosure protection.Various descriptions are carried out to the technical solution of the disclosure with reference to each figure and embodiment.
" first ", " second " hereinafter is only used for distinguishing in description, and there is no other special meanings.
In one embodiment, as shown in Figure 1, the disclosure provides a kind of browser page display data processing unit, packet Include front end Display processing module 13 and Back end data service module 21.Front end Display processing module 13 is deployed in browser 10, Receive the display data processing request that display module 11,12 is sent.Display module can be multiple, for showing in a browser Various information, for example, commodity introduction, preferential etc..Front end Display processing module 13 is based on display data processing and requests to generate displaying Data processing instructions, display data process instruction may be used preset format and be packaged, after being sent to by communication connection End data service module 21.
Communication connection can there are many, HTTP connections established for example, between browser and server etc..Rear end number It is deployed in server 20, is received by communicating to connect the display data process instruction sent, according to displaying according to service module 21 Data processing instructions carry out database manipulation, obtain corresponding display data by accessing database 30, display data is passed through Communication connection is sent to front end Display processing module 13, and front end Display processing module 13 makes display group by way of shared drive Part obtains display data and is shown in a browser.
As shown in Fig. 2, browser page display data processing unit 01, which is display module 11 etc., provides good data branch It holds.Front end data stream can be controlled in display module 11 of fore-end etc. using the mode of pure function, it is ensured that Suo Youcao The visibility and controllability of work.Browser page display data processing unit 01 enables display module 11 equal and database 30 Decoupling carries out various operation processings to interactive data, improves runnability, the efficiency of development efficiency and database.
Front end Display processing module 13 parses display data processing request, obtains the display data obtained with needs Corresponding display data parameter generates display data process instruction according to display data parameter and based on the first preset format, First preset format is the multiple formats such as XML or JSON formats.Front end Display processing module 13 is connected using HTTP and passes through hair Send HTTP request that display data process instruction is sent to Back end data service module 21.Front end Display processing module 13 can be HTTP request is sent by AJAX modes in browser.
AJAX (Asynchronous Javascript And XML, asynchronous JavaScript and XML) is a kind of establishment wound The technology for building quick dynamic web page is exchanged by carrying out low volume data with server, and AJAX can make webpage realize asynchronous refresh, Certain part of webpage can be updated in the case where not reloading entire webpage.
In one embodiment, display module 11 etc. are Vue components, and front end Display processing module 13 uses Vuex pattern pipes Manage display data.Display data is global variable, and the display data received is put into shared by front end Display processing module 13 In depositing, so that display module reads display data from shared drive.Front end Display processing module 13 is by parsing display module The instructions transmitted such as 11 allow display module 11 of front end etc. to update the data of itself, while by way of shared drive Get the data for needing to show.For some additional asynchronous process tasks, necessary information is passed into the asynchronous behaviour in backstage Make module, and entrusts it on behalf of processing.
Front end Display processing module 13 builds page structure using Vue.js frames, creates display module, is display module Setting routing redirects and starts, and realizes carry of the display module in the page.The full name of Vue is Vue.js, is that a set of structure is used The gradual frame at family interface.Vue.js is the exploitation to carry out based on node, and node is developed based on chrome v8 engines Javascript running environment, asynchronous event processing mechanism make the service ability of javascript be greatly improved.
Before creating Vue components, node and Vue is downloaded first and is installed, while assuring for npm and node being installed Device is managed, to download third-party resource packet.During creating component, definitions component constructor notes constructor In volume to the component system of Vue, makes it at a Vue component, complete the establishment of Vue components.Vue components are specially to common Html labels (such as form, input, button, label composition) encapsulate.After component creates completion, router is created Example realizes the routing mapping of each Vue components, can access each Vue components by different URL, and routing is started simultaneously carry Onto the element of corresponding app.The main framework that Web page is built using Vue.js is route using the libraries Vuerouter control URL It redirects, global state data is managed using Vuex.
Back end data service module 21 obtains preset database manipulation configuration file, according to database manipulation configuration file Obtain database linkage information and SQL statement corresponding with display data process instruction.Back end data service module 21 is based on Database linkage information and SQL statement carry out database manipulation, to obtain display data.Static data has in database 30 The display data safeguarded in perdurable data of storage, and display module 11 in the browser of front end etc..By display data The data mode that front end displaying needs is obtained and is converted into from database.
It is carried in the data processing requests of incoming front end Display processing module 13 such as the display module 11 of front end displaying Necessary display data parameter, front end Display processing module 13 sends out corresponding Ajax requests, to obtain the display data of needs. After the data-interface of Back end data service module 21 receives Ajax requests, the processing procedure of database is carried out, it can be by different Step operates operating database to complete.
As shown in figure 3, front end Display processing module 13 can be subdivided into the part State, Actions and Mutations, After Actions obtains the asynchronous data of Back end data service module 21, there are one interact with Mutations modules.State exists Actions initiates one call back function of Ajax request rear mounts, mono- new Actions of dispatch in call back function. In the frame of Vue, the action scope between component is independent, and parent component can be belonged to the communication between sub-component by prop Property pass ginseng, but communicated between fraternal component cumbersome, Vuex solves the problems, such as this, and allowing between multiple sub-components can Easily to communicate.One event may possess several states, this event needs switch between this various states.
Vuex is a condition managing pattern for aiming at Vue.js application developments, it is answered using centralised storage management The state of all components, and by corresponding regular guarantee state by it is a kind of it is predictable in a manner of change.All Vue groups Part is all to call actions, and distribution mutation removes modification state, then in state updates to various components.State's is each The storage of kind of data is to local, data of reading and saving again when next time reopens.The state storage of Vuex is in response to formula, when Vue components read data from shared drive, are efficiently updated.The state that cannot be directly changed in shared drive, but it is aobvious (commit) mutations is submitted likes, efficient state update is carried out using the fine-grained data response mechanism of Vue.js.
Back end data service module 21 includes:Service interface module 211, data processing module 212 and data execution module 213.Service interface module 211 parses HTTP request, display data process instruction is obtained, from display data process instruction Middle extraction display data parameter.Data processing module 212 obtains database linkage information from database manipulation configuration file, from Database field mapping relations are obtained in database manipulation configuration file, are obtained according to Database field mapping relations and show number According to the corresponding Database field of parameter, SQL statement is generated based on Database field.Data execution module 213 is based on database Link information connects database and executes SQL statement in this database, to obtain display data.Database includes: MySql, SQL Server, MariaDB etc..
Database linkage information includes the host IP address of target database, port numbers, user name, password, coded format Deng.Database field mapping relations include mainly each display data parameter and the data sheet field in relevant database The one-to-one mapping that field is established.For example, display data parameter is " trade name ", " commodity price ", have in database " name ", " price " field pre-establishes " trade name " and " name ", the mapping relations of " commodity price " and " price ", And be stored in database manipulation configuration file, the format of database manipulation configuration file can be xml etc..Carrying out database When operation, the mapping of " trade name " and " name ", " commodity price " and " price " is obtained from database manipulation configuration file Relationship, acquisition and " trade name ", " commodity price " corresponding " name ", " price " field, are based on " name ", " price " Field generates the query SQL sentence for target database.
The realization of NodeJS frames may be used in Back end data service module 21.NodeJS is Google's V8 engines, libuv platforms The Package casing that level of abstraction and main body are gathered using the core library three that Javscript writes.NodeJS uses event Driving, Asynchronous Programming, are designed for network service.NodeJS is the JavaScript running environment of server end, is to apply mechanically To write the JavaScript kits of high performance network server.
Display data is based on the second preset format generation display data and passes through communication link sending and receiving by service interface module 211 Front end Display processing module 13 is given, by the display data obtained by operations such as inquiries from database according to the second default lattice Formula is packaged, and the second preset format includes the multiple formats such as XML or JSON formats.JSON(JavaScript Object Notation, JavaScript object representation) it is that one kind being based on text, independently of the lightweight data interchange format of language. XML (extensible markup language) is the subset of standard generalized markup language.
Data execution module 213 executes function by database of the jave Promise object implementatio8s based on SQL statement, uses To execute SQL statement by asynchronous system, display data is obtained.Promise is a solution of Asynchronous Programming, from grammer Upper theory, Promise are an objects, and the message of asynchronous operation can be obtained from it.Promise objects represent an asynchronous behaviour Make, there are three types of states:Pending (in progress), Resolved (being completed) and Rejected (failure).Only asynchronous operation Result, in that case it can be decided that be currently any state, any other operation can not all change this state.Once state changes, It would not become again, whenever can obtain this result.Based on Promise objects, asynchronous operation can be grasped with synchronous The flow of work is expressed, and call back function nested layer by layer is avoided.Promise objects provide unified interface so that control Asynchronous operation processed is more prone to.
Fig. 4 be according to the flow diagram of one embodiment of the browser page display data processing method of the disclosure, As shown in Figure 4:
Step 401, front end Display processing module is disposed in browser end, mould is serviced in server end deployment Back end data Block.
Step 402, front end Display processing module receives the display data processing request that display module is sent, based at data Reason requests to generate display data process instruction.
Step 403, Back end data service module is received by communicating to connect the display data process instruction sent, according to exhibition Show that data processing instructions carry out database manipulation, obtains corresponding display data.Communication connection can be in browser and service HTTP connections established between device etc..
Step 404, display data is sent to front end Display processing module by Back end data service module by communication connection.
Step 405, front end Display processing module made by way of shared drive display module obtain display data and It is shown in browser.
In one embodiment, front end Display processing module parses display data processing request, obtains and needs The corresponding display data parameter of display data of acquisition.Front end Display processing module is according to display data parameter and is based on first Preset format generates display data process instruction.Front end Display processing module uses HTTP connections and will by sending HTTP request Display data process instruction is sent to Back end data service module.Front end Display processing module can pass through AJAX in a browser Mode sends HTTP request.
Front end Display processing module builds page structure using Vue.js frames, creates display module, is set for display module It sets routing to redirect and start, realizes carry of the display module in the page.Display module is Vue components, front end display processing mould Block uses Vuex schema management display datas.The display data received is put into shared drive by front end Display processing module, So that display module reads display data from shared drive, wherein display data is global variable.
Back end data service module obtains preset database manipulation configuration file, is obtained according to database manipulation configuration file Take database linkage information and SQL statement corresponding with display data process instruction.Back end data service module is based on data Library link information and SQL statement carry out database manipulation, to obtain display data.
In one embodiment, Back end data service module includes:Service interface module, data processing module and data are held Row module.Service interface module parses HTTP request, display data process instruction is obtained, from display data process instruction Middle extraction display data parameter.Data processing module obtains database linkage information from database manipulation configuration file.Data Processing module obtains Database field mapping relations from database manipulation configuration file, is obtained according to Database field mapping relations Database field corresponding with display data parameter is obtained, SQL statement is generated based on Database field.Data execution module is based on Database linkage information connects database and executes SQL statement in this database, to obtain display data.Database packet It includes:MySql, SQLServer, MariaDB etc..
Display data is based on the second preset format and generates display data and by communicating to connect transmission by service interface module It includes XML or JSON formats etc. to give front end Display processing module, the first preset format and the second preset format.Data execution module Function is executed by database of the jave Promise object implementatio8s based on SQL statement, to execute SQL languages by asynchronous system Sentence obtains display data.
Fig. 5 is to be illustrated according to the module of another embodiment of the browser page display data processing unit of the disclosure Figure.As shown in figure 5, the device may include memory 51, processor 52, communication interface 53 and bus 54.Memory 51 is used for Store instruction, processor 52 are coupled to memory 51, and it is real that processor 52 is configured as the instruction execution stored based on memory 51 Existing above-mentioned browser page display data processing method.
Memory 51 can be high-speed RAM memory, nonvolatile memory (non-volatile memory) etc., deposit Reservoir 51 can also be memory array.Memory 51 is also possible to by piecemeal, and block can be combined into virtually by certain rule Volume.Processor 52 can be central processor CPU or application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the one of the browser page display data processing method of the disclosure A or multiple integrated circuits.
In one embodiment, the disclosure provides a kind of computer readable storage medium, and computer readable storage medium is deposited Computer instruction is contained, is realized when instruction is executed by processor at the browser page display data in as above any one embodiment Reason method.
Browser page display data treating method and apparatus in above-described embodiment, passes through front end Display processing module base Display data process instruction is generated in the data processing request that display module is sent, Back end data service module is according to display data Process instruction carries out database manipulation, obtains corresponding display data and returns to front end Display processing module, front end display processing Module is made display module obtain display data by way of shared drive and is shown in a browser;It can will show group The data displaying of part is decoupled with the database manipulation carried out, is reduced code redundancy, is improved development efficiency and data The operational efficiency and performance in library can improve the data more row response performance of front end browser, convenient for safeguarding.
Disclosed method and system may be achieved in many ways.For example, can by software, hardware, firmware or Software, hardware, firmware any combinations realize disclosed method and system.The said sequence of the step of for method is only In order to illustrate, the step of disclosed method, is not limited to sequence described in detail above, especially says unless otherwise It is bright.In addition, in some embodiments, also the disclosure can be embodied as to record program in the recording medium, these programs include For realizing according to the machine readable instructions of disclosed method.Thus, the disclosure also covers storage for executing according to this public affairs The recording medium of the program for the method opened.
The description of the disclosure provides for the sake of example and description, and is not exhaustively or by the disclosure It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches It states embodiment and is to more preferably illustrate the principle and practical application of the disclosure, and those skilled in the art is enable to manage Solve various embodiments with various modifications of the disclosure to design suitable for special-purpose.

Claims (20)

1. a kind of browser page display data processing unit, including:
Front end Display processing module, is deployed in browser end, and the display data for receiving display module transmission handles request, base Display data process instruction is requested to generate in display data processing;
Back end data service module, is deployed in server end, for receiving the display data process instruction by communicating to connect, Database manipulation is carried out according to the display data process instruction, corresponding display data is obtained, the display data is passed through The communication connection is sent to the front end Display processing module;
The front end Display processing module is additionally operable to that the display module is made to obtain the displaying number by way of shared drive According to and be shown in a browser.
2. device as described in claim 1, wherein the communication connection includes:It is established between browser and server HTTP connections;
The front end Display processing module, for being parsed to display data processing request, obtaining and needing to obtain The corresponding display data parameter of display data generates the exhibition according to the display data parameter and based on the first preset format Show data processing instructions;It is connected using the HTTP and is sent to the display data process instruction by sending HTTP request The Back end data service module.
3. device as claimed in claim 2, wherein
The front end Display processing module, for sending the HTTP request by AJAX modes in a browser.
4. device as claimed in claim 2, wherein
The display module is Vue components, and the front end Display processing module is using display data described in Vuex schema managements;
Wherein, the display data is global variable, and the front end Display processing module puts the display data received Enter in shared drive, so that the display module reads the display data from shared drive.
5. device as claimed in claim 4, wherein
The front end Display processing module creates the display module, for institute for building page structure using Vue.js frames It states display module setting routing to redirect and start, realizes carry of the display module in the page.
6. device as claimed in claim 2, wherein
The Back end data service module, for obtaining preset database manipulation configuration file, according to the database manipulation Configuration file obtains database linkage information and SQL statement corresponding with the display data process instruction, is based on the number Database manipulation is carried out according to library link information and the SQL statement, to obtain the display data.
7. device as claimed in claim 6, wherein
The Back end data service module, including:
Service interface module obtains the display data process instruction, from the exhibition for being parsed to the HTTP request Show and extracts the display data parameter in data processing instructions;
Data processing module, for obtaining the database linkage information from the database manipulation configuration file;From described Database field mapping relations are obtained in database manipulation configuration file, according to Database field mapping relations acquisition and institute The corresponding Database field of display data parameter is stated, library field generates the SQL statement based on the data;
Data execution module connects database and in this database described in execution for library link information based on the data SQL statement, to obtain the display data;
Wherein, the database includes:MySql,SQL Server,MariaDB.
8. device as claimed in claim 7, wherein
The service interface module is additionally operable to the display data being based on the second preset format generation display data and lead to It crosses the communication connection and is sent to the front end Display processing module;
Wherein, first preset format and the second preset format include:XML or JSON formats.
9. device as claimed in claim 7, wherein
The data execution module, for being executed by database of the jave Promise object implementatio8s based on the SQL statement Function obtains the display data to execute the SQL statement by asynchronous system.
10. a kind of browser page display data processing method, including:
Front end Display processing module is disposed in browser end, Back end data service module is disposed in server end;
The front end Display processing module receives the display data processing request that display module is sent, based at the display data Reason requests to generate display data process instruction;
The Back end data service module receives the display data process instruction by communicating to connect, according to the display data Process instruction carries out database manipulation, obtains corresponding display data;
The display data is sent to the front end display processing by the Back end data service module by the communication connection Module;
The front end Display processing module made by way of shared drive the display module obtain the display data and It is shown in browser.
11. method as claimed in claim 10, wherein the communication connection includes:It is established between browser and server HTTP connections;The method further includes:
The front end Display processing module parses display data processing request, obtains the displaying number obtained with needs According to corresponding display data parameter;
The front end Display processing module generates the displaying number according to the display data parameter and based on the first preset format According to process instruction;
The front end Display processing module is connected using the HTTP and is handled the display data by sending HTTP request Instruction is sent to the Back end data service module.
12. method as claimed in claim 11, wherein
The front end Display processing module sends the HTTP request by AJAX modes in a browser.
13. method as claimed in claim 11, wherein the display module is Vue components, the front end Display processing module Using display data described in Vuex schema managements;The front end Display processing module makes the display by way of shared drive Component obtains the display data:
The display data received is put into shared drive by the front end Display processing module, so that the display module The display data is read from shared drive;
Wherein, the display data is global variable.
14. method as claimed in claim 13, wherein further include:
The front end Display processing module builds page structure using Vue.js frames, creates the display module, is described aobvious Show that component setting routing redirects and starts, realizes carry of the display module in the page.
15. method as claimed in claim 11, wherein described to carry out database behaviour according to the display data process instruction Make, obtain corresponding display data include:
The Back end data service module obtains preset database manipulation configuration file, and text is configured according to the database manipulation Part obtains database linkage information and SQL statement corresponding with the display data process instruction;
Library link information and the SQL statement carry out database manipulation to the Back end data service module based on the data, use To obtain the display data.
16. method as claimed in claim 15, wherein the Back end data service module includes:Service interface module, data Processing module and data execution module;The method further includes:
The service interface module parses the HTTP request, obtains the display data process instruction, from the exhibition Show and extracts the display data parameter in data processing instructions;
The data processing module obtains the database linkage information from the database manipulation configuration file;
The data processing module obtains Database field mapping relations from the database manipulation configuration file, according to described Database field mapping relations obtain Database field corresponding with the display data parameter, based on the data library field Generate the SQL statement;
Library link information connects database and executes the SQL in this database the data execution module based on the data Sentence, to obtain the display data;
Wherein, the database includes:MySql,SQL Server,MariaDB.
17. the method described in claim 16, wherein further include:
The display data is based on the second preset format and generates the display data and by described by the service interface module Communication connection is sent to the front end Display processing module;
Wherein, first preset format and the second preset format include:XML or JSON formats.
18. the method described in claim 16, wherein the data execution module executes the SQL statement and includes:
The data execution module executes function by database of the jave Promise object implementatio8s based on the SQL statement, To execute the SQL statement by asynchronous system, the display data is obtained.
19. a kind of browser page display data processing unit, including:
Memory;And it is coupled to the processor of the memory, the processor is configured as being based on being stored in the storage Instruction in device executes the method as described in any one of claim 9 to 18.
20. a kind of computer readable storage medium, the computer-readable recording medium storage has computer instruction, described instruction It is executed by processor the method as described in any one of claim 9 to 18.
CN201810518537.5A 2018-05-28 2018-05-28 Browser page display data processing method and processing device Pending CN108733499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810518537.5A CN108733499A (en) 2018-05-28 2018-05-28 Browser page display data processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810518537.5A CN108733499A (en) 2018-05-28 2018-05-28 Browser page display data processing method and processing device

Publications (1)

Publication Number Publication Date
CN108733499A true CN108733499A (en) 2018-11-02

Family

ID=63936329

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810518537.5A Pending CN108733499A (en) 2018-05-28 2018-05-28 Browser page display data processing method and processing device

Country Status (1)

Country Link
CN (1) CN108733499A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670130A (en) * 2018-11-28 2019-04-23 国云科技股份有限公司 A kind of long task multi-page method for refreshing of front end page
CN110377655A (en) * 2019-06-10 2019-10-25 厦门科灿信息技术有限公司 The method and terminal device that front equipment end data are shown
CN110781010A (en) * 2019-09-24 2020-02-11 贝壳技术有限公司 Method, device, equipment and medium for transmitting data between page components
CN111045990A (en) * 2019-11-07 2020-04-21 武汉融卡智能信息科技有限公司 Document management system
CN111258675A (en) * 2020-01-15 2020-06-09 平安银行股份有限公司 Rendering method, device and equipment of shared front-end component and storage medium
CN111338823A (en) * 2020-02-26 2020-06-26 山东汇贸电子口岸有限公司 System and method for realizing Angular non-parent-child component interaction based on LowDB
CN111901660A (en) * 2020-06-30 2020-11-06 视联动力信息技术股份有限公司 Image display method, terminal, electronic equipment and storage medium
WO2021068609A1 (en) * 2019-10-11 2021-04-15 苏宁云计算有限公司 Method and apparatus for automatically testing visual report tool based on vuex
CN113220720A (en) * 2021-06-08 2021-08-06 上海天旦网络科技发展有限公司 Real-time second-level data processing and query method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551882A (en) * 2008-12-31 2009-10-07 东莞市天新企业管理咨询有限公司 Engineering management monitoring system and method
CN105867948A (en) * 2016-04-26 2016-08-17 江苏物联网研究发展中心 WEB development method based on AJAX (Asynchronous JavaScript and XML) and Spring MVC (model view controller)
CN106528129A (en) * 2016-10-27 2017-03-22 南京南瑞继保电气有限公司 Web application interface generation system and method
CN107562425A (en) * 2017-08-07 2018-01-09 上海斐讯数据通信技术有限公司 Single-page application creation method and device based on Hybrid applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551882A (en) * 2008-12-31 2009-10-07 东莞市天新企业管理咨询有限公司 Engineering management monitoring system and method
CN105867948A (en) * 2016-04-26 2016-08-17 江苏物联网研究发展中心 WEB development method based on AJAX (Asynchronous JavaScript and XML) and Spring MVC (model view controller)
CN106528129A (en) * 2016-10-27 2017-03-22 南京南瑞继保电气有限公司 Web application interface generation system and method
CN107562425A (en) * 2017-08-07 2018-01-09 上海斐讯数据通信技术有限公司 Single-page application creation method and device based on Hybrid applications

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670130A (en) * 2018-11-28 2019-04-23 国云科技股份有限公司 A kind of long task multi-page method for refreshing of front end page
CN110377655A (en) * 2019-06-10 2019-10-25 厦门科灿信息技术有限公司 The method and terminal device that front equipment end data are shown
CN110781010A (en) * 2019-09-24 2020-02-11 贝壳技术有限公司 Method, device, equipment and medium for transmitting data between page components
WO2021068609A1 (en) * 2019-10-11 2021-04-15 苏宁云计算有限公司 Method and apparatus for automatically testing visual report tool based on vuex
CN111045990A (en) * 2019-11-07 2020-04-21 武汉融卡智能信息科技有限公司 Document management system
CN111045990B (en) * 2019-11-07 2023-08-15 无锡融卡科技有限公司 Document management system
CN111258675A (en) * 2020-01-15 2020-06-09 平安银行股份有限公司 Rendering method, device and equipment of shared front-end component and storage medium
CN111338823A (en) * 2020-02-26 2020-06-26 山东汇贸电子口岸有限公司 System and method for realizing Angular non-parent-child component interaction based on LowDB
CN111901660A (en) * 2020-06-30 2020-11-06 视联动力信息技术股份有限公司 Image display method, terminal, electronic equipment and storage medium
CN113220720A (en) * 2021-06-08 2021-08-06 上海天旦网络科技发展有限公司 Real-time second-level data processing and query method and system

Similar Documents

Publication Publication Date Title
CN108733499A (en) Browser page display data processing method and processing device
CN108279932B (en) Method and device for dynamically configuring user interface of mobile terminal
JP5089684B2 (en) Technology for generating service programs
US5999948A (en) Dynamic configuration forms in network management software
TW526429B (en) Graphical editor for defining and creating a computer system
CN101364236B (en) Data processing apparatus and processing method of WEB page
CN110400196A (en) A kind of page processing method, device and computer readable storage medium
US7870482B2 (en) Web browser extension for simplified utilization of web services
US20120317504A1 (en) Automated user interface object transformation and code generation
US9720715B2 (en) Extending legacy scripting languages with graphical references
CN109634598A (en) A kind of page display method, device, equipment and storage medium
CN111143729B (en) Optimization method, device, equipment and storage medium based on single page application
US8838627B2 (en) Systems and methods for providing template based output management
CN110109659A (en) A kind of system that realizing front end applications scaffold and server
US8839192B2 (en) System and method for presentation of cross organizational applications
US7805464B2 (en) Web viewer setup dialog and grammar for generating web addresses
CN107181679A (en) A kind of port binding implementation method and device
CN110324169A (en) A kind of method and apparatus of interface management
JP2009543166A (en) Computer-implemented method, computer program, and data processing system for defining page layout by page
JPH08339355A (en) Method and apparatus for access to processing task executionin distributed system
CN110297636A (en) A kind of automatic production of HTML page and parameter management method based on page configuration file, system and device
CN109189380A (en) Algorithm integration frame and method
EP1909170B1 (en) Method and system for automatically generating a communication interface
CN106582013A (en) Game service system and method and device for updating data of online games
CN110909290B (en) Method and system for combining multiple systems into large single-page application

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
CB02 Change of applicant information

Address after: Room 221, 2nd floor, C Block, 18 Kechuang 11th Street, Beijing Daxing District, Beijing

Applicant after: Jingdong Digital Technology Holding Co., Ltd.

Address before: Room 221, 2nd floor, C Block, 18 Kechuang 11th Street, Beijing Daxing District, Beijing

Applicant before: Beijing Jingdong Financial Technology Holding Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20181102

RJ01 Rejection of invention patent application after publication