CN108123970A - Method for exhibiting data and relevant apparatus - Google Patents

Method for exhibiting data and relevant apparatus Download PDF

Info

Publication number
CN108123970A
CN108123970A CN201611065943.8A CN201611065943A CN108123970A CN 108123970 A CN108123970 A CN 108123970A CN 201611065943 A CN201611065943 A CN 201611065943A CN 108123970 A CN108123970 A CN 108123970A
Authority
CN
China
Prior art keywords
data
page
mobile terminal
dynamic
request
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
CN201611065943.8A
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 Shenzhou Taiyue Software Co Ltd
Original Assignee
Beijing Shenzhou Taiyue Software 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 Shenzhou Taiyue Software Co Ltd filed Critical Beijing Shenzhou Taiyue Software Co Ltd
Priority to CN201611065943.8A priority Critical patent/CN108123970A/en
Publication of CN108123970A publication Critical patent/CN108123970A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present application provides a kind of method for exhibiting data and relevant apparatus, the fixed data of the page to be visited is stored in mobile terminal local by it in advance, when mobile terminal is in each access or each refresh page, it only needs to generate dynamic data acquisition request according to the fixed data, to download the relevant dynamic data of the fixed data from server-side, repeated downloads fixed data is not required, so as to reduce network data transmission pressure, reduces the data traffic consumption of user.Asynchronous cross-domain request is completed by JSONP requests, realizes the dynamic data of the fixed data request server-side based on mobile terminal local.In the embodiment of the present application, the fixed data of the page to be visited is not downloaded immediately with page load request, only when the fixed data sends and changes, it is updated and prompted by server-side propelling data, it is downloaded to trigger mobile terminal and updates the fixed data of itself storage, ensure that fixed data or dynamic data are all consistent with server-side in the page that mobile terminal loads.

Description

Method for exhibiting data and relevant apparatus
Technical field
This application involves network communication technology field more particularly to a kind of method for exhibiting data and relevant apparatus.
Background technology
Recently as the fast development of network system, mobile network is increasingly becoming enterprises and individuals must in Working Life A kind of mode of indispensable acquisition information accesses the server page by mobile terminal (e.g., mobile phone, tablet computer etc.) and obtains The mode of information is also gradually popular.
Inventor has found that in the prior art, mobile terminal can all be asked for the page of every secondary displaying in the course of the research And all data of the page are downloaded, including js (i.e. JavaScript) script data, css (Cascading Style Sheets, cascading style sheets) data, picture etc..And in a page, often some data is to immobilize, be not required to Want real-time update;In the page as shown in Figure 1, " homepage ", " video " " it was found that " etc. be with the relevant control data of page layout Constant.And the above-mentioned prior art is based on, when the same page of user's repeated accesses, in the mobile terminal meeting repeated downloads page Changeless data not only increase network data transmission pressure, also waste the limited data traffic of user.Therefore, have Necessity provides a kind of new method for exhibiting data, to avoid the repeated downloads to same page data in the same page, reduces net Network data transmission pressure reduces the data traffic consumption of user.
The content of the invention
This application provides a kind of method for exhibiting data and relevant apparatus, to solve the prior art to identical in the same page The problem of repeated downloads of page data, so as to reduce network data transmission pressure, reduces the data traffic consumption of user.
In order to solve the above-mentioned technical problem, the embodiment of the present application discloses following technical solution:
The embodiment of the present application in a first aspect, provide a kind of method for exhibiting data, applied to mobile terminal, including:
The fixed data of the page to be visited is obtained under the specified directory of the mobile terminal;
Corresponding dynamic data is generated according to the fixed data and obtains request, and the dynamic data is obtained into request hair It send to server-side;
It receives the dynamic data and obtains the corresponding response data of request;The response data includes the page to be visited The dynamic data in face;
The page to be visited is loaded according to the fixed data and dynamic data.
Optionally, dynamic data is generated according to the fixed data and obtains request, including:
The dynamic number of default entry file generation cross-domain data interaction protocol JSONP forms in the fixed data It is asked according to obtaining.
Optionally, the default entry file, including:The entry file of hypertext markup language HTML forms.
Optionally, the method further includes:
When receiving the data update prompting of server-side push, download to obtain new fixation from the specified path of server-side Data;
Fixed data under the specified directory is replaced with into the new fixed data.
The second aspect of the embodiment of the present application provides a kind of method for exhibiting data applied to server-side, including:
It receives the dynamic data that mobile terminal is sent and obtains request;
The dynamic data of the acquisition request page to be visited is obtained according to the dynamic data;
The dynamic data is encapsulated as response data packet, and the response data packet is sent to the mobile terminal.
Optionally, the dynamic data obtains request and includes:The dynamic data of JSONP forms obtains request;
The dynamic data is encapsulated as response data packet, including:
The dynamic data is encapsulated as to the response data packet of JSONP forms.
Optionally, the method further includes:
It updates and prompts to the mobile terminal propelling data, so that mobile terminal is downloaded and updates the page to be visited Fixed data;
Before the dynamic data acquisition request for receiving mobile terminal and sending, the method further includes:
According to the form and property of the resource data that the webpage to be visited includes, the fixation of the page to be visited is determined Data, and it is sent to the mobile terminal.
The third aspect of the embodiment of the present application provides a kind of data display device, including:
Fixed data acquiring unit, for obtaining the fixed number of the page to be visited under the specified directory of the mobile terminal According to;
Dynamic data request unit obtains request for generating corresponding dynamic data according to the fixed data, and will The dynamic data obtains request and is sent to server-side;
Dynamic data receiving unit obtains the corresponding response data of request for receiving the dynamic data;The response Data include the dynamic data of the page to be visited;
Data display unit, for loading the page to be visited according to the fixed data and dynamic data.
Optionally, described device further includes:
Fixed data updating block, for when receive server-side push data update prompting when, from the finger of server-side Determine path to download to obtain new fixed data, and the fixed data under the specified directory is replaced with into the new fixed number According to.
The fourth aspect of the embodiment of the present application provides a kind of data display device, including:
Request reception unit, the dynamic data for receiving mobile terminal transmission obtain request;
Data capture unit, for obtaining the dynamic data of the acquisition request page to be visited according to the dynamic data, and The dynamic data is encapsulated as response data packet;
Transmitting element is responded, for the response data packet to be sent to the mobile terminal.
From above technical scheme, the fixed data of the page to be visited is stored in mobile whole by the embodiment of the present application in advance End is local, when mobile terminal is in each access or each refresh page, it is only necessary to generate dynamic data according to the fixed data Request is obtained, to download the relevant dynamic data of the fixed data from server-side, repeated downloads fixed data is not required, so as to subtract Small network data transmission pressure reduces the data traffic consumption of user.In the embodiment of the present application, the fixed data of the page is not with page Face load request and download immediately, only the fixed data send change when, by server-side propelling data update prompt, to touch The fixed data itself stored is downloaded and updated to hair mobile terminal, ensure in the page that mobile terminal loads no matter fixed number It is all consistent with server-side according to still dynamic data.
It should be appreciated that above general description and following detailed description are only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing 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 this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also To obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of page presentation effect diagram;
Fig. 2 is a kind of flow chart of method for exhibiting data applied to mobile terminal provided by the embodiments of the present application;
Fig. 3 is the flow chart of another method for exhibiting data for being applied to mobile terminal provided by the embodiments of the present application;
Fig. 4 is a kind of flow chart of method for exhibiting data applied to server-side provided by the embodiments of the present application;
Fig. 5 is a kind of signal flow diagram of method for exhibiting data provided by the embodiments of the present application;
Fig. 6 is a kind of structure diagram of data display device provided by the embodiments of the present application;
Fig. 7 is the structure diagram of another data display device provided by the embodiments of the present application.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the technical solution in the embodiment of the present application, and make the application real Apply the above-mentioned purpose of example, feature and advantage can be more obvious understandable, below in conjunction with the accompanying drawings to technical side in the embodiment of the present application Case is described in further detail.
Fig. 2 is a kind of flow chart of method for exhibiting data provided by the embodiments of the present application, and this method can be used for arbitrary tool There is the terminal device of page access demand, be particularly suitable for the mobile terminal using mobile communications network such as mobile phone, tablet computer.
With reference to Fig. 2, which comprises the following steps:
S11, the fixed data that the page to be visited is obtained under the specified directory of the mobile terminal.
In the embodiment of the present application, the corresponding server of the page advance (e.g., during page development) to be visited is according to page The form of face resource data, property (such as showing time, replacement cycle), the resource data of each page is divided into and is compared It is relatively fixed, need not ask immediately and newer fixed data (such as js, css, picture etc.);It asks and updates immediately with needs Dynamic data, and the fixed data is stored in the mobile terminal for having requirements for access to the page together.It is specifically as follows When mobile terminal accesses for the first time, the fixed data and the dynamic data are sent to mobile terminal together, and indicate to move The fixed data is individually stored reservation by terminal, for example, the fixed data to be stored in the specified mesh of mobile terminal local Under record, when user accesses the page using the mobile terminal request, which then can be under the specified directory directly The fixed data of the page to be visited is read, the fixed data need not be downloaded immediately from server-side again.
It should be noted that the page to be visited described in the embodiment of the present application had both included the webpage by browser-presented, Also the interior page of each application program is included.
Optionally, after isolating fixed data in the various resource datas from the page, can consolidate the page is all Fixed number is according to a static packet is packaged as, so that the corresponding fixed data of the same page is not omitted in transmission process.For example, It can be made as the compressed file bag of the forms such as zip.
S12, corresponding dynamic data acquisition request is generated according to the fixed data, and the dynamic data is obtained and is asked It asks and is sent to server.
S13, the corresponding response data of the dynamic data acquisition request is received;The response data is waited to visit described in including Ask the dynamic data of the page.
S14, the page to be visited is loaded according to the fixed data and dynamic data.
All data in the page are considered as an entirety by the prior art, are accessed or during refresh page, are all directly asked every time The corresponding server address of the page is sought, to download the corresponding all data of the page from the address.It is different from the prior art, In the embodiment of the present application, the data of the page to be visited are divided into fixed data and dynamic data two parts, wherein the fixed data Mobile terminal local is stored in, need not ask to download immediately, can be multiplexed;And for the dynamic data, it need to only access Or it is asked immediately during refresh page and is downloaded to local;The fixed data and the dynamic data downloaded to immediately are shown jointly Out, you can realize the immediate updating of full page.
As it can be seen that using method for exhibiting data provided by the embodiments of the present application, fixed data is stored in mobile terminal in advance It is local, when mobile terminal is in each access or each refresh page, it is only necessary to generate dynamic data according to the fixed data and obtain Request is taken, to download the relevant dynamic data of the fixed data from server-side, repeated downloads fixed data is not required, so as to reduce Network data transmission pressure reduces the data traffic consumption of user.
In the embodiment of the present application, the implementation method that the fixed data of the page to be visited pre-deposits mobile terminal is had very It is more, it is including but not limited to following two:
1) in the development process of Page Service end, the fixed data of the page is stored under the specified path of server-side, when Arbitrary mobile terminal for the first time accession page when, can the fixed data of the page be downloaded to by shifting according to the specified path immediately Dynamic terminal local.
Optionally, the fixed data can be stored in the finger of server-side in the form of compressed file bag (e.g., zip forms) It makes under path, after mobile terminal downloads the compressed package, is first decompressed, then the fixed data for solving extrusion is stored in and is locally referred to Determine under catalogue.
2) in page client development process, the corresponding client application of the page (appl ication, APP under the specified directory in), the fixed data of the preset page;When user downloads the APP of the page, the fixation of the page Data also download in the mobile terminal of user therewith.
From above technical scheme, method for exhibiting data provided by the embodiments of the present application, fixed data is stored in movement In terminal, only dynamic data is asked and downloaded immediately;But the fixed data of any page also not immobilizes always, It is very low to be simply updated frequency;For example, when page layout is changed, then need to update for recording the fixed data of page layout. In view of this, to prevent the update of the fixed data at Page Service end from causing the fixed data stored in mobile terminal and server-side not Unanimously, as shown in figure 3, method for exhibiting data provided by the embodiments of the present application, in addition to above-mentioned steps S11 to S14, further includes following Step:
S15, when receive server-side push data update prompting when, download to obtain from the specified path of server-side new Fixed data;
S16, the fixed data under the specified directory is replaced with into the new fixed data.
With reference to above-mentioned implementation method 1), in the embodiment of the present application, when needing to change the fixed data of the page, it can will repair Fixed data after changing is packaged, and obtains new edition data packet, and is stored under the specified path of server-side, and is pushed to mobile terminal Data update prompting (specified path that the server-side can be included in data update prompting).Mobile terminal receives the number After being prompted according to update, you can the specified path of new edition data packet from the server-side is downloaded to local, and with the new edition Fixed data in data packet replaces the fixed data stored originally under the specified directory of mobile terminal, that is, realizes in mobile terminal The update of fixed data, ensure in the page that mobile terminal loads fixed data or dynamic data all with server-side Unanimously.
Optionally, with reference to above-mentioned implementation method 2), mobile terminal can receive respective service by local mounted APP The data update prompting that end is sent, after new edition data packet is downloaded to according to data update prompting, by fixed data therein It is stored in specified directory, and original fixed data in the specified directory is deleted.
In one feasible embodiment of the application, for ease of in time and being properly generated corresponding dynamic with fixed data State data acquisition request can preset an entry file in fixed data, and record has corresponding dynamic in the default entry file Data acquisition request or record have the code that can generate corresponding dynamic data acquisition request;So as to get fixed number It, can be by accessing the default entry file in the fixed data, generation and the corresponding dynamic data of the fixed data according to rear Obtain request.
Optionally, above-mentioned default entry file can be HTML (HyperText Markup Language, hypertext mark Remember language) form entry file.
In one feasible embodiment of the application, it can be JSONP (JavaScript that the dynamic data, which obtains request, Object Notation with Padding, a kind of cross-domain data interaction protocol) form request.
According to above technical scheme, the embodiment of the present application is really the fixed data request being locally stored based on mobile terminal The dynamic data of server-side storage is cross-domain request, and original based on AJAX (Asynchronous Javascript And Extensible Markup Language, asynchronous Javascript and XML) request can not complete cross-domain data request behaviour Make, thus the embodiment of the present application using can with the JSONP request methods of asynchronous cross-domain request data to the dynamic data of server-side into Row request.
In the embodiment of the present application, the default entry file in fixed data is accessed to generate dynamic data and obtains request, i.e., The JSONP codes in default entry file is called to obtain request to generate the dynamic data;According to mobile terminal to page to be visited The data display in face and difference of upgrading demand can be passed to different parameters when accessing the default entry file, so that The different dynamic data of JSONP code buildings obtains request, gets different dynamic datas, and the reality for meeting mobile terminal should Use demand.
Corresponding to above application in the method for exhibiting data of mobile terminal, the embodiment of the present application also provides a kind of applied to clothes The method for exhibiting data at business end;With reference to Fig. 4, this method comprises the following steps:
S21, the dynamic data acquisition request that mobile terminal is sent is received.
S22, the corresponding dynamic data of acquisition request is obtained according to the dynamic data;
S23, the dynamic data is encapsulated as to response data packet, and the response data packet is sent to the movement eventually End.
In the embodiment of the present application, the dynamic data that server-side can receive and identify mobile terminal transmission obtains request, and Corresponding dynamic data is back to by mobile terminal rather than as in the prior art according to the request, returns to the page to be visited All resource datas;Correspondingly, mobile terminal, at displayed page data (loading page), the fixed data of the page is pre- It is first stored under the specified directory of mobile terminal, need to only download the dynamic data of the page, you can complete the data of full page Displaying (above-mentioned fixed data and the set of dynamic data are all resource datas of the page).As it can be seen that the embodiment of the present application Network data transmission pressure can be reduced to avoid the repeated downloads of fixed data, reduce the data traffic consumption of user.
The dynamic number sent based on the previously described method for exhibiting data embodiment applied to mobile terminal, mobile terminal Can be the request of JSONP forms according to request is obtained;Therefore, in one feasible embodiment of the application, server-side can be known The dynamic data of the JSONP forms does not obtain request, and accordingly returns to the response data packet of JSONP forms (i.e. by dynamic data The response data packet of JSONP forms is encapsulated as, and the dynamic data for being sent to the JSONP forms obtains and asks corresponding movement Terminal).
In practical application, it is commonly since the page data in the prior art between mobile terminal and server-side obtains request The request of AJAX forms, the data-interface of server-side are also commonly the interface of identification AJAX request, therefore the embodiment of the present application can be with It is changed in server-side or increases data-interface so that it can identify that JSONP is asked.
In one feasible embodiment of the application, above application can also include in the method for exhibiting data of server-side: It updates and prompts to the mobile terminal propelling data.
Further, before the dynamic data acquisition request for receiving mobile terminal and sending, the method further includes:
According to the form and property of the resource data that the webpage to be visited includes, the fixation of the page to be visited is determined Data, and it is sent to the mobile terminal.
It is specifically as follows when mobile terminal accesses for the first time, fixed data and dynamic data is sent to together mobile whole End, and indicate that mobile terminal retains and store the fixed data.
In the embodiment of the present application, since fixed data prestores in the terminal, it need not download immediately, therefore to protect Demonstrate,prove mobile terminal in server-side fixed data it is consistent, when in server-side fixed data update after, can be pushed away to mobile terminal Data update is sent to prompt, download path (the i.e. server-side of updated fixed data can be included in data update prompting Specified path) so that mobile terminal upgrades in time the fixed data that is locally stored according to data update prompting, ensure it is mobile eventually Fixed data or dynamic data are all consistent with server-side in the page that end loading obtains, and thereby may be ensured that page data Correct displaying.
The signal flow diagram with reference to shown in Fig. 5, is different from the prior art and directly asks the corresponding server address of the page to be visited, Immediately all resource datas of the page to be visited are downloaded, the embodiment of the present application stores under the specified directory of mobile terminal in advance The fixed data of the page to be visited;On the one hand, when receive treat accession page data display request when (for example, user perform Access or refresh operation reach the default page automatic refresh cycle), mobile terminal is then generated according to the fixed data The dynamic data of JSONP forms obtains request (step S311), and request is obtained from service by the dynamic data of the JSONP forms End gets the dynamic data (step S312 to S314) of the page to be visited, so as to according to the dynamic data downloaded immediately and in advance The fixed data first stored loads the page (step S315) to be visited, i.e., completes mobile terminal by way of asynchronous cross-domain request The update of middle dynamic data;On the other hand, when because page layout change when factors need update fixed data when, can first will newly Fixed data be stored under the specified path of server-side, and generate data update prompting be sent to mobile terminal (step S321, S322), mobile terminal is after data update prompting is received, you can request server-side downloads new consolidate from its specified path Determine data value mobile terminal local, and the original fixed number stored under mobile terminal specified directory is replaced with the new fixed data According to (step S323 to S325), that is, complete the update of mobile terminal fixed data.
As it can be seen that the embodiment of the present application by mobile terminal page data displaying needed for resource data be divided into dynamic data and Two parts of fixed data, are downloaded update under different conditions respectively:For dynamic data, shown according to page data (page load request) is asked to carry out downloading update immediately, and for fixed data, only (server-side is received when changing Data update is prompted) update is downloaded, so as to avoid the repeated downloads of the fixed data of change frequency very little, reduce net Network data transmission pressure reduces the data traffic consumption of user.
Correspondingly, the embodiment of the present application also provides a kind of data display device, which is specifically as follows mobile phone, tablet electricity The mobile terminals such as brain.The structure diagram with reference to shown in Fig. 6, the device include:
Fixed data acquiring unit 610, for obtaining consolidating for the page to be visited under the specified directory of the mobile terminal Fixed number evidence;
Dynamic data request unit 620 obtains request for generating corresponding dynamic data according to the fixed data, and The dynamic data is obtained into request and is sent to server-side;
Dynamic data receiving unit 630 obtains the corresponding response data of request for receiving the dynamic data;The sound Data is answered to include the dynamic data of the page to be visited;
Data display unit 640, for loading the page to be visited according to the fixed data and dynamic data.
From above technical scheme, fixed data is stored in mobile terminal local by the embodiment of the present application in advance, is being moved Dynamic terminal is in each access or each refresh page, it is only necessary to and dynamic data is generated according to the fixed data and obtains request, with The relevant dynamic data of the fixed data is downloaded from server-side, repeated downloads fixed data is not required, so as to reduce network data Pressure is transmitted, reduces the data traffic consumption of user.
Optionally, above-mentioned dynamic data request unit can be specifically configured as:In the fixed data preset into The dynamic data of mouth file generated cross-domain data interaction protocol JSONP forms obtains request.
Optionally, above-mentioned default entry file can be the entry file of hypertext markup language HTML forms.
The embodiment of the present application realizes asynchronous cross-domain request, the i.e. fixed number based on mobile terminal local based on JSONP requests According to the dynamic data of request server-side, avoid mobile terminal and the multiplicating of fixed data is downloaded.
Optionally, above device further includes:Fixed data updating block, for the data of server-side push ought to be received more During new prompting, download to obtain new fixed data from the specified path of server-side, and by the fixed data under the specified directory Replace with the new fixed data.
In the embodiment of the present application, the fixed data of the page is not downloaded immediately with page load request, and only in the fixed number According to send change when, by server-side propelling data update prompt, come trigger mobile terminal downloads and update itself store consolidate Fixed number evidence ensures that fixed data or dynamic data are all consistent with server-side in the page that mobile terminal loads.
Based on Fig. 6 described devices, also by a kind of mobile terminal, which includes the embodiment of the present application:At least one A processor;And the memory being connected at least one processor communication;Wherein, have can quilt for the memory storage The instruction that one processor performs, described instruction is performed by least one processor, so that described at least one Processor is able to carry out following steps:
The fixed data of the page to be visited is obtained under the specified directory of the mobile terminal;
Corresponding dynamic data is generated according to the fixed data and obtains request, and the dynamic data is obtained into request hair It send to server-side;
It receives the dynamic data and obtains the corresponding response data of request;The response data includes the page to be visited The dynamic data in face;
The page to be visited is loaded according to the fixed data and dynamic data.
The embodiment of the present application also provides a kind of data display device, which is specifically as follows server.With reference to shown in Fig. 7 Structure diagram, the device include:
Request reception unit 710, the dynamic data for receiving mobile terminal transmission obtain request;
Data capture unit 720, for obtaining the dynamic data of the acquisition request page to be visited according to the dynamic data, And the dynamic data is encapsulated as response data packet;
Transmitting element 730 is responded, for the response data packet to be sent to the mobile terminal.
As it can be seen that in the embodiment of the present application, the dynamic data acquisition that server-side can receive and identify mobile terminal transmission please It asks, and corresponding dynamic data is back to by mobile terminal rather than as in the prior art according to the request, return to be visited All resource datas of the page so as to avoid the repeated downloads of fixed data, reduce network data transmission pressure, reduce and use The data traffic consumption at family.
Optionally, in Fig. 7 shown devices, the dynamic data acquisition request that request reception unit 710 receives can be The dynamic data of JSONP forms obtains request;Correspondingly, data capture unit 720 can specifically obtain the dynamic data Corresponding dynamic data is asked to be encapsulated as the response data packet of JSONP forms, is realized asynchronous between mobile terminal and server-side Cross-domain request.
Optionally, Fig. 7 shown devices can also include:Update prompting push unit, for being pushed to the mobile terminal Data update is prompted, so that mobile terminal is downloaded and updates the fixed data of the page to be visited, ensures mobile terminal loading Obtained page fixed data or dynamic data is all consistent with server-side.
The update prompting push unit is additionally operable to, and request is obtained in the dynamic data that the reception mobile terminal is sent Before, according to the form and property of the resource data that the webpage to be visited includes, determine the fixed data of the page to be visited, And it is sent to the mobile terminal.
Based on Fig. 7 described devices, the embodiment of the present application also provides a kind of server, which includes:At least one place Manage device;And the memory being connected at least one processor communication;Wherein, have can be described for the memory storage The instruction that one processor performs, described instruction is performed by least one processor, so that at least one processing Device is able to carry out following steps:
It receives the dynamic data that mobile terminal is sent and obtains request;
The dynamic data of the acquisition request page to be visited is obtained according to the dynamic data;
The dynamic data is encapsulated as response data packet, and the response data packet is sent to the mobile terminal.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are the differences with other embodiments.It is real especially for system For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.

Claims (10)

1. a kind of method for exhibiting data, which is characterized in that applied to mobile terminal, including:
The fixed data of the page to be visited is obtained under the specified directory of the mobile terminal;
Corresponding dynamic data is generated according to the fixed data and obtains request, and the dynamic data is obtained into request and is sent to Server-side;
It receives the dynamic data and obtains the corresponding response data of request;The response data includes the page to be visited Dynamic data;
The page to be visited is loaded according to the fixed data and dynamic data.
2. it according to the method described in claim 1, is asked it is characterized in that, generating dynamic data according to the fixed data and obtaining It asks, including:
The dynamic data of default entry file generation cross-domain data interaction protocol JSONP forms in the fixed data obtains Take request.
3. according to the method described in claim 2, it is characterized in that, the default entry file, including:Hypertext markup language The entry file of HTML forms.
4. method according to any one of claims 1 to 3, which is characterized in that further include:
When receiving the data update prompting of server-side push, download to obtain new fixed number from the specified path of server-side According to;
Fixed data under the specified directory is replaced with into the new fixed data.
5. a kind of method for exhibiting data, which is characterized in that applied to server-side, including:
It receives the dynamic data that mobile terminal is sent and obtains request;
The dynamic data of the acquisition request page to be visited is obtained according to the dynamic data;
The dynamic data is encapsulated as response data packet, and the response data packet is sent to the mobile terminal.
6. according to the method described in claim 5, it is characterized in that, dynamic data acquisition request includes:JSONP forms Dynamic data obtains request;
The dynamic data is encapsulated as response data packet, including:
The dynamic data is encapsulated as to the response data packet of JSONP forms.
7. method according to claim 5 or 6, which is characterized in that further include:
It updates and prompts to the mobile terminal propelling data, so that mobile terminal is downloaded and updates the fixation of the page to be visited Data;
Before the dynamic data acquisition request for receiving mobile terminal and sending, the method further includes:
According to the form and property of the resource data that the webpage to be visited includes, the fixed number of the page to be visited is determined According to, and it is sent to the mobile terminal.
8. a kind of data display device, which is characterized in that including:
Fixed data acquiring unit, for obtaining the fixed data of the page to be visited under the specified directory of the mobile terminal;
Dynamic data request unit obtains request for generating corresponding dynamic data according to the fixed data, and by described in Dynamic data obtains request and is sent to server-side;
Dynamic data receiving unit obtains the corresponding response data of request for receiving the dynamic data;The response data Include the dynamic data of the page to be visited;
Data display unit, for loading the page to be visited according to the fixed data and dynamic data.
9. device according to claim 8, which is characterized in that further include:
Fixed data updating block, for when receive server-side push data update prompting when, from the specified circuit of server-side Footpath downloads to obtain new fixed data, and the fixed data under the specified directory is replaced with the new fixed data.
10. a kind of data display device, which is characterized in that including:
Request reception unit, the dynamic data for receiving mobile terminal transmission obtain request;
Data capture unit, for obtaining the dynamic data of the acquisition request page to be visited according to the dynamic data, and by institute It states dynamic data and is encapsulated as response data packet;
Transmitting element is responded, for the response data packet to be sent to the mobile terminal.
CN201611065943.8A 2016-11-28 2016-11-28 Method for exhibiting data and relevant apparatus Pending CN108123970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611065943.8A CN108123970A (en) 2016-11-28 2016-11-28 Method for exhibiting data and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611065943.8A CN108123970A (en) 2016-11-28 2016-11-28 Method for exhibiting data and relevant apparatus

Publications (1)

Publication Number Publication Date
CN108123970A true CN108123970A (en) 2018-06-05

Family

ID=62223826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611065943.8A Pending CN108123970A (en) 2016-11-28 2016-11-28 Method for exhibiting data and relevant apparatus

Country Status (1)

Country Link
CN (1) CN108123970A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965389A (en) * 2018-06-13 2018-12-07 连尚(新昌)网络科技有限公司 Method for showing information
CN109471695A (en) * 2018-10-31 2019-03-15 北京字节跳动网络技术有限公司 Method and apparatus for more new data
CN110874445A (en) * 2018-08-31 2020-03-10 ***通信集团浙江有限公司 Webpage loading method, client and business service center
CN112887362A (en) * 2021-01-08 2021-06-01 重庆锐明信息技术有限公司 Equipment access method, equipment access device and server

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930037A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Page loading method and device
CN102938776A (en) * 2012-09-28 2013-02-20 方正国际软件有限公司 Dynamic page processing system based on Asynchronous JavaScript and XML (ajax) technique
CN103023941A (en) * 2011-09-26 2013-04-03 腾讯科技(深圳)有限公司 Terminal application program updating method and system based on Web page
CN104216695A (en) * 2013-06-03 2014-12-17 阿里巴巴集团控股有限公司 Method and system for providing webpage information to be displayed on webpage and displaying webpage information
CN105404622A (en) * 2014-08-20 2016-03-16 阿里巴巴集团控股有限公司 Client page display method, apparatus and system
CN105488078A (en) * 2014-10-10 2016-04-13 阿里巴巴集团控股有限公司 Web page data caching method and equipment
CN105653933A (en) * 2016-01-06 2016-06-08 北京京东尚科信息技术有限公司 Plugin loading method and device
CN106033361A (en) * 2015-03-13 2016-10-19 阿里巴巴集团控股有限公司 Method and device for showing application page, and method and device for updating application page data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023941A (en) * 2011-09-26 2013-04-03 腾讯科技(深圳)有限公司 Terminal application program updating method and system based on Web page
CN102938776A (en) * 2012-09-28 2013-02-20 方正国际软件有限公司 Dynamic page processing system based on Asynchronous JavaScript and XML (ajax) technique
CN102930037A (en) * 2012-11-09 2013-02-13 北京奇虎科技有限公司 Page loading method and device
CN104216695A (en) * 2013-06-03 2014-12-17 阿里巴巴集团控股有限公司 Method and system for providing webpage information to be displayed on webpage and displaying webpage information
CN105404622A (en) * 2014-08-20 2016-03-16 阿里巴巴集团控股有限公司 Client page display method, apparatus and system
CN105488078A (en) * 2014-10-10 2016-04-13 阿里巴巴集团控股有限公司 Web page data caching method and equipment
CN106033361A (en) * 2015-03-13 2016-10-19 阿里巴巴集团控股有限公司 Method and device for showing application page, and method and device for updating application page data
CN105653933A (en) * 2016-01-06 2016-06-08 北京京东尚科信息技术有限公司 Plugin loading method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108965389A (en) * 2018-06-13 2018-12-07 连尚(新昌)网络科技有限公司 Method for showing information
CN108965389B (en) * 2018-06-13 2021-07-06 南京尚网网络科技有限公司 Method for displaying information
CN110874445A (en) * 2018-08-31 2020-03-10 ***通信集团浙江有限公司 Webpage loading method, client and business service center
CN109471695A (en) * 2018-10-31 2019-03-15 北京字节跳动网络技术有限公司 Method and apparatus for more new data
CN112887362A (en) * 2021-01-08 2021-06-01 重庆锐明信息技术有限公司 Equipment access method, equipment access device and server
CN112887362B (en) * 2021-01-08 2023-03-10 重庆锐明信息技术有限公司 Equipment access method, equipment access device and server

Similar Documents

Publication Publication Date Title
CN106528432B (en) The construction method and device of test scene data bury a test method
JP4857349B2 (en) Method, system, and computer program for providing asynchronous portal pages within a portal system
CN108132814A (en) Page loading method, device, computer equipment and the storage medium of application program
CN110519401A (en) Improve method, apparatus, equipment and the storage medium of network Access Success Rate
CN106648712A (en) Incremental updating packet generating method and device, and server
US20230308504A9 (en) Method and system of application development for multiple device client platforms
CN108123970A (en) Method for exhibiting data and relevant apparatus
CN110096660A (en) Method, apparatus and electronic equipment for loading page picture
CN102109989A (en) Method, device and system for controlling browser cache
CN106446174A (en) Method for page loading in application
CN104111944A (en) Page processing method and device and page generating method and device
CN102098327A (en) Method and device for downloading online video sniffer
CN103475744A (en) Resource downloading method, device and system on basis of Web application
CN112579928A (en) Page jump method, page jump device, computer equipment and computer readable storage medium
CN103634393A (en) IVR (interactive voice response) and realization method thereof
CN113064685A (en) H5 page loading method and device
CN106649581B (en) Webpage repairing method and client
CN109101429B (en) Method and device for debugging browser page of set top box
CN114327453B (en) Page display method, device, equipment and storage medium
CN105975296A (en) Mobile application upgrading method and device
KR20180007483A (en) A dynamic ui distributing system using terminal native ui and a method thereof
CN107391132B (en) Method, device and equipment for target App to execute preset action
CN108804088A (en) protocol processing method and device
KR100732134B1 (en) Table display switching method, text data conversion program, and tag program
CN113467776A (en) Access method and device of equipment, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 818, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Applicant after: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building block A Room 601

Applicant before: BEIJING ULTRAPOWER SOFTWARE Co.,Ltd.

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

Application publication date: 20180605

RJ01 Rejection of invention patent application after publication